@korial29/tiny-fps 0.225.2 → 0.225.3
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.
|
@@ -46,6 +46,13 @@ export declare const railgun: (lod: number) => number[];
|
|
|
46
46
|
export declare const insulators: (lod: number, heat?: number) => number[];
|
|
47
47
|
/** The weapon a gun model is, from a player or a flag: 0 the gun, 2 the rail gun (or true), 3 the laser rifle. */
|
|
48
48
|
export declare const kindOf: (p: Pick<PlayerState, "railed" | "rifled"> | boolean | number) => number;
|
|
49
|
+
export declare const LONG_TILT: number[];
|
|
50
|
+
export declare const LONG_HOLD: number[];
|
|
51
|
+
export declare const LONG_CURL = 0.72;
|
|
52
|
+
/** The hold of a weapon of `kind` (kindOf()) in the hand that has its grip. */
|
|
53
|
+
export declare const holdOf: (kind?: boolean | number) => number[];
|
|
54
|
+
/** The grip's tilt in the hand for a weapon of `kind` (kindOf()): the pistol's, or a long gun's. */
|
|
55
|
+
export declare const tiltOf: (kind?: boolean | number) => number[];
|
|
49
56
|
/** The laser rifle's muzzle, the lens at the end of its shroud, and the middle of its handguard, the block under its body that the left hand carries. */
|
|
50
57
|
export declare const RIFLE_MUZZLE: Vec3;
|
|
51
58
|
export declare const RIFLE_GRIP: Vec3;
|
|
@@ -185,10 +192,10 @@ export declare const foregrip: (pos: Vec3, q: Quat, kind?: boolean | number) =>
|
|
|
185
192
|
export declare const charge: (rail: number, max?: number) => number;
|
|
186
193
|
/** The electrodes' tips of a gun whose grip is at `at` and whose axes are [right, up, forward]. */
|
|
187
194
|
export declare const electrodes: (at: Vec3, [, u, f]: Vec3[]) => Vec3[];
|
|
188
|
-
/** The gun's axes [right, up, forward] for a hand turned by `q` (see body.ts: its thumb is the hand's -z, the back of the hand its x, its fingers its -y). */
|
|
189
|
-
export declare const axes: (q: Quat) => Vec3[];
|
|
190
|
-
/** The middle of the grip, for a wrist at `pos`: 8 cm along the fingers and 2 cm toward the palm. */
|
|
191
|
-
export declare const grip: (pos: Vec3, q: Quat) => Vec3;
|
|
195
|
+
/** The gun's axes [right, up, forward] for a hand turned by `q` (see body.ts: its thumb is the hand's -z, the back of the hand its x, its fingers its -y), the grip tilted in it as a weapon of `kind` is (tiltOf()). */
|
|
196
|
+
export declare const axes: (q: Quat, kind?: boolean | number) => Vec3[];
|
|
197
|
+
/** The middle of the grip, for a wrist at `pos`: 8 cm along the fingers and 2 cm toward the palm, or as a weapon of `kind` is held (holdOf()). */
|
|
198
|
+
export declare const grip: (pos: Vec3, q: Quat, kind?: boolean | number) => Vec3;
|
|
192
199
|
/**
|
|
193
200
|
* Printed circuit tracks round the digits, inside the frame (the user, 2026-11-09): the right
|
|
194
201
|
* half's, mirrored to the left, each a run of [across, up from the middle] points ending in a pad.
|
|
@@ -175,7 +175,7 @@ export declare const brandish: (from: Pose, p: PlayerState, prog: number, ph: nu
|
|
|
175
175
|
* nothing in them (the guard), a loose fist on a run, tighter at a sprint, open in the air, flat
|
|
176
176
|
* on a ledge, a wall or the floor, limp lying down.
|
|
177
177
|
*/
|
|
178
|
-
export declare const grasp: (p: PlayerState, seat?: Seat) => number[];
|
|
178
|
+
export declare const grasp: (p: PlayerState, seat?: Seat, hunter?: boolean) => number[];
|
|
179
179
|
/** Seconds a runner the rail gun's bolt put down takes to come apart. */
|
|
180
180
|
export declare const FRY = 0.9;
|
|
181
181
|
/** How far a runner has come apart, 0 (whole, or not fried) to 1 (gone). */
|
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.225.
|
|
5
|
+
"version": "0.225.3",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|