@korial29/tiny-fps 0.123.0 → 0.125.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +13 -13
- package/dist/local.js +1 -1
- package/dist/server.js +8 -8
- package/dist/types/client/armor.d.ts +29 -2
- package/dist/types/client/craft.d.ts +37 -6
- package/dist/types/client/helm.d.ts +19 -2
- package/dist/types/client/pack.d.ts +1 -19
- package/dist/types/client/render.d.ts +2 -0
- package/dist/types/client/skin.d.ts +2 -7
- package/dist/types/client/soldier.d.ts +4 -4
- package/dist/types/shared/ship.d.ts +2 -2
- package/package.json +1 -1
|
@@ -73,6 +73,8 @@ export interface Skin {
|
|
|
73
73
|
}
|
|
74
74
|
/** How far out the woman's bust stands at its fullest, on the man's rest mesh, metres. */
|
|
75
75
|
export declare const BUST = 0.028;
|
|
76
|
+
/** Where it is fullest, metres up (the user, 2026-11-11: a little higher; it was 1.345). */
|
|
77
|
+
export declare const BUST_Y = 1.37;
|
|
76
78
|
/**
|
|
77
79
|
* The skin at a level of detail: 0 far, 1 near (see DETAIL in mesh.ts), 2 near, headless and
|
|
78
80
|
* handless, for the eye, 3 close (CLOSE in render.ts), twice the rings and half more sides, the
|
|
@@ -86,13 +88,6 @@ export declare const body: (lod: number, build?: number) => Skin;
|
|
|
86
88
|
export declare const cut: (lod: number, limb: number, build?: number) => Skin[];
|
|
87
89
|
/** A build's joints at rest (solve() of its rest pose), for what is placed on its body. */
|
|
88
90
|
export declare const bindOf: (build?: number) => Vec3[];
|
|
89
|
-
/**
|
|
90
|
-
* The turn of the shoulder plate of shoulder joint `j`: on the collarbone, it goes with a share of
|
|
91
|
-
* the upper arm's swing, all of it as the arm comes up over the shoulder, and with none of its
|
|
92
|
-
* turn about itself, as a plate strapped to the trunk does (the user, 2026-11-10: it rode a
|
|
93
|
-
* reaching arm round to the front of the chest).
|
|
94
|
-
*/
|
|
95
|
-
export declare const capped: (rot: Quat[], j: number, build?: number) => Quat;
|
|
96
91
|
/**
|
|
97
92
|
* Appends the skin in the pose `solved` (see solve()) to `out` as triangles in the renderer's
|
|
98
93
|
* vertex format, each in its palette colour: a vertex goes where the two joints it hangs on would
|
|
@@ -4,7 +4,7 @@ import type { Gait, Seat } from './gait';
|
|
|
4
4
|
import type { Tracer } from './beams';
|
|
5
5
|
import type { Piece } from './limbs';
|
|
6
6
|
import type { Vec3 } from './mesh';
|
|
7
|
-
import type { Pose
|
|
7
|
+
import type { Pose } from './rig';
|
|
8
8
|
import type { Face } from './expression';
|
|
9
9
|
import type { Trail } from './trail';
|
|
10
10
|
/** What a runner keeps between frames. */
|
|
@@ -93,7 +93,7 @@ export declare const dissolve: (out: number[], from: number, k: number) => void;
|
|
|
93
93
|
export declare const stance: (r: Runner) => {
|
|
94
94
|
s: {
|
|
95
95
|
pos: Vec3[];
|
|
96
|
-
rot: Quat[];
|
|
96
|
+
rot: import("./rig").Quat[];
|
|
97
97
|
};
|
|
98
98
|
sink: number;
|
|
99
99
|
yaw: number;
|
|
@@ -101,7 +101,7 @@ export declare const stance: (r: Runner) => {
|
|
|
101
101
|
} | {
|
|
102
102
|
s: {
|
|
103
103
|
pos: Vec3[];
|
|
104
|
-
rot: Quat[];
|
|
104
|
+
rot: import("./rig").Quat[];
|
|
105
105
|
};
|
|
106
106
|
sink: number;
|
|
107
107
|
yaw: number;
|
|
@@ -110,5 +110,5 @@ export declare const stance: (r: Runner) => {
|
|
|
110
110
|
/** Draws the runner and gives back its solved skeleton, or nothing once a bolt has burnt it away. */
|
|
111
111
|
export declare const soldier: (out: number[], r: Runner, color: number[], lod?: number, helmets?: boolean, armored?: boolean) => {
|
|
112
112
|
pos: Vec3[];
|
|
113
|
-
rot: Quat[];
|
|
113
|
+
rot: import("./rig").Quat[];
|
|
114
114
|
} | undefined;
|
|
@@ -66,10 +66,10 @@ export declare const SHIP: {
|
|
|
66
66
|
readonly BOLT_HP: 1;
|
|
67
67
|
readonly BALL_HP: 2;
|
|
68
68
|
};
|
|
69
|
-
/** The lasers' muzzles
|
|
69
|
+
/** The lasers' muzzles under the wings, the missiles' pods under the wings: right of the centre, above it, ahead of it. */
|
|
70
70
|
export declare const SHIP_GUNS: number[][];
|
|
71
71
|
export declare const PODS: number[][];
|
|
72
|
-
/** The pilot's seat in the cockpit: right of the centre, above it (the feet), ahead of it. */
|
|
72
|
+
/** The pilot's seat in the cockpit, behind the long nose: right of the centre, above it (the feet), ahead of it. */
|
|
73
73
|
export declare const COCKPIT: number[];
|
|
74
74
|
/** Where who gets out stands, beside the cockpit: clear of the hull, ahead of the wings. */
|
|
75
75
|
export declare const OUT: number;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@korial29/tiny-fps",
|
|
3
3
|
"description": "Tiny multiplayer first-person rooftop game for the browser: raw WebGL, zero runtime dependencies, WebSocket or same-browser multi-tab play.",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.125.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|