@korial29/tiny-fps 0.202.3 → 0.202.4
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.
|
@@ -98,6 +98,8 @@ export declare const FINGER_SIDES = 10;
|
|
|
98
98
|
type Ring = [c: Vec3, x: Vec3, y: Vec3];
|
|
99
99
|
/** The curl the xenomorph's fingers close to at most. */
|
|
100
100
|
export declare const RAKE = 0.35;
|
|
101
|
+
export declare const HUNTER_HAND: Vec3;
|
|
102
|
+
type Claws = boolean | 'short';
|
|
101
103
|
/** The ring of a finger from which on it is bare: the glove's fingers end 60 % along the middle phalanx. */
|
|
102
104
|
export declare const BARE = 8;
|
|
103
105
|
/**
|
|
@@ -140,7 +142,7 @@ lite?: boolean,
|
|
|
140
142
|
/** The marine's: lit buttons on the strap round the wrist (WRIST_LIGHTS). */
|
|
141
143
|
lights?: boolean,
|
|
142
144
|
/** The xenomorph's claws on the fingertips (Grip). */
|
|
143
|
-
claws?:
|
|
145
|
+
claws?: Claws,
|
|
144
146
|
/** Its size: the xenomorph's grows from the wrist over 4 cm, hers is smaller (hands()). */
|
|
145
147
|
grow?: number) => void;
|
|
146
148
|
/** What a hand does besides closing (hand()): the left index pointing, the right thumb pushing toward `to`, the left thumb cupped. */
|
|
@@ -152,7 +154,7 @@ export interface Grip {
|
|
|
152
154
|
/** The marine's lit buttons on the wrists' straps. */
|
|
153
155
|
lights?: boolean;
|
|
154
156
|
/** The xenomorph's: a hooked claw of bone on each fingertip, for the nail. */
|
|
155
|
-
claws?:
|
|
157
|
+
claws?: Claws;
|
|
156
158
|
}
|
|
157
159
|
/**
|
|
158
160
|
* Both hands of the skeleton `s` on its wrists, left then right, each closed `curls[i]` (hand()), in
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
import type { Vec3 } from './mesh';
|
|
1
2
|
export declare function hunter(lod: 0 | 1 | 2): Record<string, number[]>;
|
|
3
|
+
/** Model-space cut trail on the same scaled mount as the baked blades. */
|
|
4
|
+
export declare const hunterWristEnds: () => Vec3[];
|
|
2
5
|
export declare const hunterHarpoon: (lod: 0 | 1 | 2) => number[];
|
|
@@ -15,11 +15,9 @@ export declare const S: number, C: number;
|
|
|
15
15
|
* rounded-square guard, a grip wrapped in a violet check and a pommel with a glowing bead.
|
|
16
16
|
*/
|
|
17
17
|
export declare const katana: (lod: number) => number[];
|
|
18
|
-
/**
|
|
18
|
+
/** Right wrist space: +x over the knuckles, -y along the fingers, z across the hand. */
|
|
19
19
|
export declare const wristBlade: (lod: number) => number[];
|
|
20
|
-
/** Places the wrist blade at the Hunter's right wrist. */
|
|
21
20
|
export declare const heldWrist: (out: Out, pos: Vec3, q: Quat, lod: number, k?: number, list?: Pieces) => void;
|
|
22
|
-
/** The blade's sweep endpoints for the Hunter's cut trail. */
|
|
23
21
|
export declare const wristEnds: (pos: Vec3, q: Quat) => Vec3[];
|
|
24
22
|
/** Appends arcs of lightning flickering along the blade at the clock `t` (s): a few zigzags of thin crossed ribbons, each new every 70 ms. */
|
|
25
23
|
export declare const arcs: (out: Out, at: Vec3, [r, u, f]: Vec3[], t: number, lod: number, k?: number) => void;
|
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.202.
|
|
5
|
+
"version": "0.202.4",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|