@korial29/tiny-fps 0.213.0 → 0.215.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.
@@ -36,7 +36,7 @@ interface Region {
36
36
  legs?: boolean;
37
37
  /** No plate: the suit's dark ribbed cloth, a hair off the skin, with no wall (the gusset). */
38
38
  thin?: boolean;
39
- /** No plate: the ninja's sash, cloth in its own grey (SASH) a hair off the skin, with no wall. */
39
+ /** No plate: the ninja's sash, cloth in its own grey (SASH) off the skin (beltOff()), with no wall. */
40
40
  belt?: boolean;
41
41
  }
42
42
  /**
@@ -147,11 +147,14 @@ export declare const THIGH: {
147
147
  at: number[];
148
148
  };
149
149
  /**
150
- * The ninja's belt, a sash (the user, 2026-11-17: the thin strip in a V of 2026-11-13 did not
151
- * please): wide, nearly level, woven cloth knotted in front (buckle.ts). Its bottom at the front's
152
- * middle, rising `rise` to the hips, then down round the back to `back` over the front's; its
153
- * height, and how far it stands off the skin. Cut as the gusset is, so drawn on every map, armour
154
- * or none (armor()'s `bare`).
150
+ * The ninja's belt, a wide sash (the user, 2026-11-24, on a picture: a big cloth belt with folds; it
151
+ * was a narrow band, knotted in front, since 2026-11-17): woven cloth in his shoulder pads' grey
152
+ * (SASH; the user, 2026-11-24: grey as the pads, it was his team's colour for a day) wound
153
+ * round the waist, from the hips up over the bottom of his vest, pleated by the shader (render.ts).
154
+ * Its bottom at the front's middle, rising `rise` to the hips, then down round the back to `back`
155
+ * over the front's; its height, and how far it stands off the skin: over the vest's plates. Its top
156
+ * rolls in to `thin` off the skin over `lip`; the tabard and the skirt (sash.ts) hang from under its
157
+ * bottom. Cut as the gusset is, so drawn on every map, armour or none (armor()'s `bare`).
155
158
  */
156
159
  export declare const BELT: {
157
160
  y: number;
@@ -159,8 +162,10 @@ export declare const BELT: {
159
162
  back: number;
160
163
  h: number;
161
164
  off: number;
165
+ lip: number;
166
+ thin: number;
162
167
  };
163
- /** The sash's dark grey (the user, 2026-11-17: thinner, and black; then less black), and the face guard's (mask.ts: the same). */
168
+ /** The dark grey of the ninja's sash, and of his face guard and shoulder pads (mask.ts, pads.ts). */
164
169
  export declare const SASH: number[];
165
170
  /**
166
171
  * The chest plate's armholes (the user, 2026-11-12: a triangle came through the plate under the
@@ -224,15 +229,6 @@ export declare const VEST: {
224
229
  lame: number;
225
230
  gap: number;
226
231
  };
227
- /**
228
- * The last lame's point cut round over the belt's buckle (buckle.ts; the user, 2026-11-13: they met,
229
- * fix the armour, not the buckle): an arch `clear` over its rim, the angle turned into a place
230
- * across on the waist's front, `waist` out from the axis.
231
- */
232
- export declare const ARCH: {
233
- clear: number;
234
- waist: number;
235
- };
236
232
  /**
237
233
  * The vest's armholes (the user, 2026-11-13: a crack in the chest piece by the armpit): over the
238
234
  * trunk's split (1.41 m) the skin is the shoulder's and goes with the arm, away from the piece under
@@ -15,6 +15,11 @@ export declare const drawHarpoon: (out: Out, lod: 0 | 1 | 2, at: Vec3, axes: Vec
15
15
  feed?: number, pieces?: Pieces,
16
16
  /** How far (m, unscaled) the bolt just fired has flown out of the muzzle; drawn under HARPOON_GONE. */
17
17
  fired?: number) => void;
18
+ /**
19
+ * Seconds the harpoon takes to unfold as it comes to hand (drawHarpoon()'s `open`, eased): slow
20
+ * enough to be seen (the user, 2026-11-24), SOUND.HARPOON_OPEN timed on it.
21
+ */
22
+ export declare const HARPOON_DRAW = 1.1;
18
23
  /** Metres a fired bolt is drawn leaving the muzzle; past this the flying ball alone shows it. */
19
24
  export declare const HARPOON_GONE = 1.2;
20
25
  /** Metres behind its seat the next bolt starts as it feeds in. */
@@ -0,0 +1,67 @@
1
+ import type { Vec3 } from './mesh';
2
+ import type { Quat } from './rig';
3
+ import type { Out } from './verts';
4
+ /** The height at rest of the sash's middle, where the blades are tucked in. */
5
+ export declare const SASH_Y = 1.018;
6
+ /** Appends the blades for build b's pelvis at `at` turned by `q`. */
7
+ export declare const blades: (out: Out, at: Vec3, q: Quat, b: number) => void;
8
+ /**
9
+ * The body the cloth is kept out of, in the pelvis' frame (x across, y up, -z the front), measured
10
+ * on the skin at rest: the waist's half width, depth in front and behind, on him and on her, where
11
+ * the cloth is hung (`y` from the pelvis, under the sash's bottom); the hips' the same, `drop` under
12
+ * it, the body's ending `end` under it (the legs' capsules from there); the radii of a thigh and of
13
+ * a shin at their two ends.
14
+ */
15
+ export declare const HIPS: {
16
+ y: number;
17
+ waist: number[][];
18
+ hips: number[][];
19
+ drop: number;
20
+ end: number;
21
+ thigh: number[];
22
+ shin: number[];
23
+ };
24
+ /**
25
+ * The tabard: its width, its length, the width of its black edge, the size of a diamond of its
26
+ * quilting across and down and how far it puffs out; how far off the body it hangs, and how far
27
+ * down its top is bent round the waist (under the sash); its pieces down
28
+ * (close and near, far).
29
+ */
30
+ export declare const TABARD: {
31
+ w: number;
32
+ len: number;
33
+ edge: number;
34
+ quilt: number[];
35
+ puff: number;
36
+ off: number;
37
+ wrap: number;
38
+ rows: number[];
39
+ };
40
+ /**
41
+ * The skirt: its panels' two ends round the waist from the front (degrees: one over each hip, one
42
+ * round the back, split at the sides), its length, how far it flares in front and behind (not at
43
+ * the sides: the hands hang there, their palms 23 cm from the middle), how far off the body it is
44
+ * hung and is kept (more: a piece is straight, the body under it round), and how much less at the
45
+ * very sides, where the thigh's capsule is wider than the thigh (the user, 2026-11-24: narrower,
46
+ * clear of the hands); its columns a panel and its pieces down
47
+ * (close, near, far).
48
+ */
49
+ export declare const SKIRT: {
50
+ panels: number[][];
51
+ len: number;
52
+ flare: number;
53
+ off: number;
54
+ clear: number;
55
+ side: number;
56
+ cols: number[][];
57
+ rows: number[];
58
+ };
59
+ /**
60
+ * Appends the tabard and the skirt hung from the sash of the build `b` posed as `s`, at the clock
61
+ * `t` (s) of a runner going at `speed` (m/s), the tabard in `color`; at the level of detail `lod`
62
+ * (0 far: a flat tabard, a quarter of the skirt). Written with no allocation: every frame.
63
+ */
64
+ export declare const drape: (out: Out, s: {
65
+ pos: Vec3[];
66
+ rot: Quat[];
67
+ }, b: number, t: number, speed: number, color: number[], lod: number) => void;
@@ -183,6 +183,11 @@ export declare const SOUND: {
183
183
  readonly HUNTER_SEEK: 92;
184
184
  /** A harpoon bolt striking (the user, 2026-11-24: a shock, not a laser's splash). */
185
185
  readonly HARPOON_HIT: 93;
186
+ /**
187
+ * The harpoon unfolding as it comes to hand (HARPOON_DRAW, 1.1 s): a catch let go, the slide and
188
+ * the stock grinding out, a ratchet over them, and a heavy lock as they reach their stops.
189
+ */
190
+ readonly HARPOON_OPEN: 94;
186
191
  };
187
192
  /**
188
193
  * The sounds of the game: one entry per sound, its voices layered, in SOUND order. A low-passed
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.213.0",
5
+ "version": "0.215.0",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"
@@ -1,17 +0,0 @@
1
- import type { Vec3 } from './mesh';
2
- import type { Quat } from './rig';
3
- import type { Out } from './verts';
4
- /** The height of its middle at rest, on the middle of the sash. */
5
- export declare const BUCKLE_Y = 1.008;
6
- /** The knot's half width and its depth (m): what the vest's last lame is cut round (armor.ts). */
7
- export declare const BUCKLE: number[];
8
- /** Its ends: across from the knot's middle, lean from straight down (radians), length, half width. */
9
- export declare const ENDS: number[][];
10
- /** Appends the knot for build b's pelvis at `at` turned by `q`, its band in `team`. */
11
- export declare const buckle: (out: Out, at: Vec3, q: Quat, b: number) => void;
12
- /**
13
- * Appends the sash's two ends under the knot, at the clock `t` (s) of a runner going at `speed`
14
- * (m/s): ribbons of PIECES pieces, each leaning a little more than the one above it, by a wave that
15
- * runs down it; out of the body and wider apart, faster, the faster he goes. Two faces each.
16
- */
17
- export declare const tails: (out: Out, at: Vec3, q: Quat, b: number, t: number, speed: number) => void;