@korial29/tiny-fps 1.8.0 → 1.9.1

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.
Files changed (102) hide show
  1. package/dist/cast-art-DbwsToaQ.js +1 -0
  2. package/dist/index.js +8 -7
  3. package/dist/landfall-CSZGx2iA.js +21 -0
  4. package/dist/types/client/armor/clip.d.ts +22 -0
  5. package/dist/types/client/armor/cooking.d.ts +14 -0
  6. package/dist/types/client/armor/details.d.ts +65 -0
  7. package/dist/types/client/armor/fit.d.ts +8 -0
  8. package/dist/types/client/armor/regions.d.ts +304 -0
  9. package/dist/types/client/armor/scratches.d.ts +4 -0
  10. package/dist/types/client/armor/shell.d.ts +46 -0
  11. package/dist/types/client/armor/types.d.ts +37 -0
  12. package/dist/types/client/armor/wear.d.ts +22 -0
  13. package/dist/types/client/armor.d.ts +9 -393
  14. package/dist/types/client/body/constants.d.ts +35 -0
  15. package/dist/types/client/body/create.d.ts +3 -0
  16. package/dist/types/client/body/fingers.d.ts +112 -0
  17. package/dist/types/client/body/glove.d.ts +27 -0
  18. package/dist/types/client/body/hands.d.ts +28 -0
  19. package/dist/types/client/body/hunter.d.ts +26 -0
  20. package/dist/types/client/body/motion.d.ts +42 -0
  21. package/dist/types/client/body/reach.d.ts +65 -0
  22. package/dist/types/client/body/types.d.ts +39 -0
  23. package/dist/types/client/body/wield.d.ts +30 -0
  24. package/dist/types/client/body.d.ts +10 -207
  25. package/dist/types/client/cast-art.d.ts +2 -0
  26. package/dist/types/client/gait/constants.d.ts +34 -0
  27. package/dist/types/client/gait/create.d.ts +3 -0
  28. package/dist/types/client/gait/fists.d.ts +55 -0
  29. package/dist/types/client/gait/maths.d.ts +38 -0
  30. package/dist/types/client/gait/moves.d.ts +129 -0
  31. package/dist/types/client/gait/types.d.ts +59 -0
  32. package/dist/types/client/gait.d.ts +6 -146
  33. package/dist/types/client/gun/ammo.d.ts +21 -0
  34. package/dist/types/client/gun/display.d.ts +32 -0
  35. package/dist/types/client/gun/held.d.ts +75 -0
  36. package/dist/types/client/gun/kinds.d.ts +12 -0
  37. package/dist/types/client/gun/loft.d.ts +16 -0
  38. package/dist/types/client/gun/paint.d.ts +30 -0
  39. package/dist/types/client/gun/railgun.d.ts +34 -0
  40. package/dist/types/client/gun/reload.d.ts +112 -0
  41. package/dist/types/client/gun/rifle.d.ts +54 -0
  42. package/dist/types/client/gun/sidearm.d.ts +32 -0
  43. package/dist/types/client/gun.d.ts +10 -308
  44. package/dist/types/client/hulk/cabin.d.ts +36 -0
  45. package/dist/types/client/hulk/common.d.ts +55 -0
  46. package/dist/types/client/hulk/debris.d.ts +16 -0
  47. package/dist/types/client/hulk/hull.d.ts +81 -0
  48. package/dist/types/client/hulk/inside.d.ts +5 -0
  49. package/dist/types/client/hulk/parts.d.ts +16 -0
  50. package/dist/types/client/hulk/types.d.ts +7 -0
  51. package/dist/types/client/hulk/wings.d.ts +4 -0
  52. package/dist/types/client/hulk.d.ts +8 -18
  53. package/dist/types/client/hunter/animation.d.ts +113 -0
  54. package/dist/types/client/hunter/constants.d.ts +53 -0
  55. package/dist/types/client/hunter/disc.d.ts +33 -0
  56. package/dist/types/client/hunter/harpoon.d.ts +68 -0
  57. package/dist/types/client/hunter/marine.d.ts +14 -0
  58. package/dist/types/client/hunter/model.d.ts +4 -0
  59. package/dist/types/client/hunter/rest.d.ts +7 -0
  60. package/dist/types/client/hunter.d.ts +7 -164
  61. package/dist/types/client/render/camera.d.ts +58 -0
  62. package/dist/types/client/render/constants.d.ts +63 -0
  63. package/dist/types/client/render/scene.d.ts +58 -0
  64. package/dist/types/client/render/shader.d.ts +69 -0
  65. package/dist/types/client/render/shots.d.ts +61 -0
  66. package/dist/types/client/render/types.d.ts +74 -0
  67. package/dist/types/client/render.d.ts +9 -277
  68. package/dist/types/client/sfx/air.d.ts +46 -0
  69. package/dist/types/client/sfx/anthem.d.ts +27 -0
  70. package/dist/types/client/sfx/layers.d.ts +6 -0
  71. package/dist/types/client/sfx/music.d.ts +96 -0
  72. package/dist/types/client/sfx/render.d.ts +10 -0
  73. package/dist/types/client/sfx/sounds.d.ts +180 -0
  74. package/dist/types/client/sfx/synth.d.ts +24 -0
  75. package/dist/types/client/sfx/voices.d.ts +59 -0
  76. package/dist/types/client/sfx.d.ts +8 -325
  77. package/dist/types/client/skin/head.d.ts +120 -0
  78. package/dist/types/client/skin/lofts.d.ts +145 -0
  79. package/dist/types/client/skin/pose.d.ts +102 -0
  80. package/dist/types/client/skin/shape.d.ts +2 -0
  81. package/dist/types/client/skin.d.ts +4 -179
  82. package/dist/types/client/soldier/animate.d.ts +12 -0
  83. package/dist/types/client/soldier/carry.d.ts +28 -0
  84. package/dist/types/client/soldier/common.d.ts +8 -0
  85. package/dist/types/client/soldier/draw.d.ts +12 -0
  86. package/dist/types/client/soldier/grasp.d.ts +28 -0
  87. package/dist/types/client/soldier/hunter.d.ts +38 -0
  88. package/dist/types/client/soldier/runner.d.ts +58 -0
  89. package/dist/types/client/soldier/stance.d.ts +20 -0
  90. package/dist/types/client/soldier/types.d.ts +107 -0
  91. package/dist/types/client/soldier.d.ts +9 -236
  92. package/dist/types/client/xeno/back.d.ts +113 -0
  93. package/dist/types/client/xeno/body.d.ts +63 -0
  94. package/dist/types/client/xeno/common.d.ts +28 -0
  95. package/dist/types/client/xeno/head.d.ts +109 -0
  96. package/dist/types/client/xeno/limbs.d.ts +62 -0
  97. package/dist/types/client/xeno/mouth.d.ts +23 -0
  98. package/dist/types/client/xeno/parts.d.ts +40 -0
  99. package/dist/types/client/xeno/tail.d.ts +107 -0
  100. package/dist/types/client/xeno.d.ts +8 -246
  101. package/package.json +1 -1
  102. package/dist/landfall-CXJnap8w.js +0 -21
@@ -1,393 +1,9 @@
1
- import type { Skin } from './skin';
2
- import type { Out } from './verts';
3
- /**
4
- * A plate's region on the body at rest (metres, -z the front, +x the right): the part it is on,
5
- * the heights it spans, and the angles round
6
- * the part it spans (degrees from the front, + outward on a limb, toward +x on the trunk), round
7
- * the part's middle line at `cx` across (mirrored on the left).
8
- */
9
- interface Region {
10
- part: number;
11
- cx: number;
12
- y: [number, number];
13
- a: [number, number];
14
- /** How much further out the plate swells at the rest point (x, y): the chest plate's pecs. */
15
- swell?: (x: number, y: number, z: number) => number;
16
- /** Where its angles are measured from, degrees (0 the front): 180 for a plate on the back. */
17
- face?: number;
18
- /** Its bottom and top at each angle (degrees from the front, + outward) or rest point, when not level: a leg's opening. */
19
- low?: (a: number, c: Corner) => number;
20
- high?: (a: number, c: Corner) => number;
21
- /** Only on the woman's skin. */
22
- fem?: boolean;
23
- /** Only on the man's. */
24
- man?: boolean;
25
- /** A round plate: its outline an ellipse in (angle, height), [half the angle, middle height, half height]. */
26
- round?: [number, number, number];
27
- /** Cast: the forearm's straight plate rather than the skin's shape (casting()). */
28
- cast?: boolean;
29
- /** Moulded: a smooth shell round the trunk rather than the skin's facets (moulding()). */
30
- mould?: boolean;
31
- /** The ninja's own armour (the user, 2026-11-13), worn by him alone; he wears no other plate. */
32
- alone?: boolean;
33
- /** How far it stands off the skin, when not OFF. */
34
- off?: number;
35
- /** On the trunk, its angles are measured round the leg of that side, as a leg's plate's. */
36
- legs?: boolean;
37
- /** No plate: the suit's dark ribbed cloth, a hair off the skin, with no wall (the gusset). */
38
- thin?: boolean;
39
- /** No plate: the ninja's sash, cloth in its own grey (SASH) off the skin (beltOff()), with no wall. */
40
- belt?: boolean;
41
- }
42
- /**
43
- * The chest plate's pecs (the user, 2026-11-10: fuller toward the bottom, then the round part too
44
- * low, flattened): a lobe each side of the sternum, high on the chest, rising from the line under
45
- * the pecs and fading to the collar, the plate flat below; `PEC` metres at most.
46
- */
47
- export declare const PEC = 0.011;
48
- /**
49
- * The woman's chest plate (the user, 2026-11-11: a more feminine armour, with the chest; until then
50
- * one moulded piece with the sternum filled): a cup each side over the bust skin.ts shapes, `CUP`
51
- * metres out at most, fullest low with a firm line under it, the sternum left hollow between them.
52
- */
53
- export declare const CUP = 0.014;
54
- /** The cups' fullest height, 3 mm under the bust's (BUST_Y, skin.ts). */
55
- export declare const CUP_Y = 1.367;
56
- export declare const bust: (x: number, y: number) => number;
57
- /**
58
- * The forearm's plate (the user, 2026-11-13: its shape worked, after a trooper's armour, and down
59
- * to the wrist, `wrist`, the hand's joint being at 0.92 m): its top is
60
- * cut low in the crook of the elbow, at `y`, and rises by `rise` round to the elbow's point behind,
61
- * between the angles `a` round the arm; it flares by `flare` toward the elbow; and a flat ridge
62
- * `ridge` high runs down its outer side, from `x` out from the body's middle, fading to the wrist.
63
- * It stands `off` the arm, half a chest plate's thickness (the user, 2026-11-14: thinner).
64
- */
65
- export declare const CUFF: {
66
- wrist: number;
67
- y: number;
68
- rise: number;
69
- a: number[];
70
- flare: number;
71
- ridge: number;
72
- x: number;
73
- off: number;
74
- };
75
- /**
76
- * The forearm's plate cast straight (the user, 2026-11-14: rectilinear, aggressive, not in rolls
77
- * over the muscles, still flared): its section a rounded square (`n`, a superellipse) round the
78
- * arm's line at `cx`, its half sizes across (`x`) and front to back (`z`) in straight lines between
79
- * the heights `y`: a steep taper from the wrist, then an angular break and the long run to the elbow
80
- * (the user, 2026-11-14: thin, an angular slope toward the hands, aggressive, down to the end of the
81
- * wrist, kept thin by its shape: a bevel pressed onto the skin lay on the arm in a tongue), at least
82
- * `floor` off the skin; then the flare and the ridge. Its end is cut to a point over the back of the
83
- * hand, an arrow (the user liked it: more), `cut` higher on the inside of the arm, in straight lines.
84
- */
85
- export declare const CAST: {
86
- cx: number;
87
- y: number[];
88
- x: number[];
89
- z: number[];
90
- floor: number;
91
- n: number;
92
- cut: number;
93
- };
94
- /**
95
- * The biceps' plate (the user, 2026-11-13: worked too, and thinner; 2026-11-14: thinner again): the
96
- * heights of its edges' middles, how far they slant (`cut`), and how far it stands off the arm, not
97
- * OFF.
98
- */
99
- export declare const BICEPS: {
100
- y: number[];
101
- cut: number;
102
- off: number;
103
- };
104
- /**
105
- * The briefs (the user, 2026-11-10: round the hips under the belt, the leg's opening rising from the
106
- * crotch to the hip and lower behind, never between the thighs; 2026-11-12: thinner on the sides,
107
- * and no glitches; 2026-11-14: their sides up higher toward the hips, then a little less). One opening line for all
108
- * their pieces, the band on the trunk and the piece on each thigh, by the angle of the rest point
109
- * round the trunk (0 the front, 180 the back, either side): the pieces met at the border of the
110
- * trunk's skin and the legs' (0.93 m) on two lines that did not agree, and left gaps, overlaps and
111
- * slivers there. Their top is at `top` before and behind and climbs to `hip` over the hip between
112
- * the angles `rise`; the opening, lowest at the crotch, before and behind, rises between the angles
113
- * `at` to a strap `strap` high under that top.
114
- */
115
- export declare const BRIEFS: {
116
- front: number;
117
- back: number;
118
- top: number;
119
- hip: number;
120
- strap: number;
121
- at: number[];
122
- rise: number[];
123
- };
124
- /**
125
- * The seat (the user, 2026-11-14: one piece, rounded, no breach in the middle, then one block): behind,
126
- * the opening rises over the cleft in a small round arch to `top`, `r` either side of the middle,
127
- * where the legs' insides rose in a V and parted the seat in two points.
128
- */
129
- export declare const SEAT: {
130
- top: number;
131
- r: number;
132
- fill: number;
133
- w: number;
134
- y: number[];
135
- };
136
- /**
137
- * The thigh plates' top (the user, 2026-11-13, on a picture of a trooper's hips: a slant from the
138
- * hip down to the inside of the thigh, a crescent of dark ribbed suit between it and the briefs):
139
- * a line of its own by the angle round the trunk, on the thighs and up the hips' sides alike, so one
140
- * line across the border too. Lowest at the inside of the thigh, `front` and `back`, under the
141
- * crotch; `hip` at the hip, where the briefs' strap climbs on over it; between the angles `at`.
142
- */
143
- export declare const THIGH: {
144
- front: number;
145
- back: number;
146
- hip: number;
147
- at: number[];
148
- };
149
- /**
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`).
158
- */
159
- export declare const BELT: {
160
- y: number;
161
- rise: number;
162
- back: number;
163
- h: number;
164
- off: number;
165
- lip: number;
166
- thin: number;
167
- };
168
- /** The dark grey of the ninja's sash, and of his face guard and shoulder pads (mask.ts, pads.ts). */
169
- export declare const SASH: number[];
170
- /**
171
- * The chest plate's armholes (the user, 2026-11-12: a triangle came through the plate under the
172
- * armpit; 2026-11-13: small triangles on its sides): the shoulder's skin stands out of the trunk's
173
- * at the split (1.41 m, skin.ts), and a plate's edge across the two was cut in steps. Its top falls
174
- * from the neckline's to `low` between the two angles `a`, in one round curve with no corner at
175
- * either end (the user, 2026-11-17: it fell in two steps, a block and a ledge with walls under the
176
- * bell), steep enough to be under the split before the shoulder's skin starts (52 degrees). The
177
- * shoulder's bell (pads.ts) is over what is left bare. The breach that ran across the plate by the
178
- * armpits (2026-11-13) was the rim of the arm's hole in the trunk's skin: see TURN in cooking().
179
- */
180
- export declare const ARMPIT: {
181
- a: number[];
182
- low: number;
183
- round: number[];
184
- r: number;
185
- };
186
- /** The marine's shoulder blade plates: ovals `at` degrees either side of the spine, `a` degrees and `h` metres half wide and high, their middle at `y`. */
187
- export declare const BLADE: {
188
- at: number;
189
- a: number;
190
- y: number;
191
- h: number;
192
- };
193
- /** The gap the user asked between the chest plate and the belly's plate. */
194
- export declare const GAP = 0.02;
195
- /**
196
- * The belly's plate (the user, 2026-11-13: worked, rounder; 2026-11-14: its shape to fit the chest
197
- * plate's as puzzle pieces fit): its bottom at the middle, how far it goes round each side
198
- * (degrees: out to under the chest plate's corners), how much its bottom rises to its corners,
199
- * rounding them off, and how far it domes at its middle.
200
- */
201
- export declare const BELLY: {
202
- y: number;
203
- a: number;
204
- round: number;
205
- dome: number;
206
- };
207
- /**
208
- * The chest plate's bottom (the user, 2026-11-13: dipped at the middle; 2026-11-14: the belly's
209
- * plate to lock into it): a tab hangs down the middle to `y`, flat out to the first angle of `tab`
210
- * and rounding up by `drop` to the second; beside it the bottom rises by `rise` more to the sides.
211
- * The belly's top follows it GAP under, so the tab sits in a notch of the belly's plate.
212
- */
213
- export declare const CHEST: {
214
- y: number;
215
- drop: number;
216
- tab: number[];
217
- rise: number;
218
- };
219
- /**
220
- * The ninja's vest: the bottom of its chest piece at the sides, how far its chevron dips at the
221
- * middle (and the lames' under it), how far its neckline dips at the middle, its top over the chest
222
- * on him and on her, the lames' height and the gap between two pieces.
223
- */
224
- export declare const VEST: {
225
- y: number;
226
- dip: number;
227
- neck: number;
228
- top: number[];
229
- lame: number;
230
- gap: number;
231
- };
232
- /**
233
- * The vest's armholes (the user, 2026-11-13: a crack in the chest piece by the armpit): over the
234
- * trunk's split (1.41 m) the skin is the shoulder's and goes with the arm, away from the piece under
235
- * it. Its top is down to `y`, under the split, at the angle `a` on him and on her; from the top over
236
- * the pec it falls there from the angle `fall` (hers sooner, round over each breast); its outer
237
- * corner rounds off by `corner` between the angles `round`. His holds its height out to the
238
- * shoulders, over all of the pecs, under the pads (the user, 2026-11-13: it fell from 22 to 42
239
- * degrees and left their top bare); the skin there is the chest's and the collarbone's, not yet
240
- * the arm's.
241
- */
242
- export declare const ARMHOLE: {
243
- a: number[];
244
- y: number;
245
- fall: number[];
246
- corner: number;
247
- round: number[][];
248
- };
249
- /**
250
- * The ninja's back piece (the user, 2026-11-17: one piece as the front's, where plates by halves
251
- * stood each side of a spine of blocks, with a plate on each flank): its top is at `top` at the
252
- * spine and rises by `rise` beside it, before it falls (SHIELD).
253
- */
254
- export declare const BACK: {
255
- top: number;
256
- rise: number;
257
- };
258
- /** How far round the lames go, from the front and from the back (degrees): they meet at the flank, a seam between them. */
259
- export declare const FLANK = 88.5;
260
- /** The back piece's shield: the angles off the spine between which its top falls. */
261
- export declare const SHIELD: number[];
262
- /** How far the ninja's bracers stand off the forearm: half a plate's thickness. */
263
- export declare const BRACER = 0.006;
264
- export declare const REGIONS: Region[];
265
- /** A corner being clipped: its place at rest, its weights of its skin triangle's corners, its normal at rest, then the limits it lies on (BITS). */
266
- type Corner = number[];
267
- /** The scratches' colours on coloured plates: the white under the paint, and paler. */
268
- export declare const SCRATCHED: number[][];
269
- /**
270
- * A recipe: triangles of corners, each [skin triangle, its three weights, how far off the skin,
271
- * the slope of the swell at rest (x, y, z), the normal at rest (x, y, z)], and per triangle its
272
- * colour, layer, whether it is a wall (its normal its own, flat) and its region (-1: a scratch).
273
- */
274
- export interface Recipe {
275
- c: number[];
276
- t: number[];
277
- /** The triangles each kind of wearer has (armor()'s `ninja`, astronaut and `bare` bits), listed on first use. */
278
- k?: Int32Array[];
279
- /** Their corners, each distinct one once (shared()), by the same wearer. */
280
- s?: Shared[];
281
- }
282
- /**
283
- * A wearer's corners, each distinct one once: its first number in the recipe's `c` and its turned
284
- * weights (TURN bits) in `u`, two numbers a corner; in `x` the three of each triangle of its list.
285
- * Next to each other, triangles share their corners, two or three times over on the marine.
286
- */
287
- interface Shared {
288
- u: Int32Array;
289
- x: Int32Array;
290
- rest: Float64Array;
291
- }
292
- export declare const CORNER = 11;
293
- export declare const TRI = 6;
294
- /**
295
- * Her breasts on the shell (the user, 2026-11-12: a uniform dome each, a little bigger): a round
296
- * dome each side, `h` out at its middle (x, y) and falling to nothing `r` away, smooth at its rim;
297
- * it stands in for the skin's bust and bust()'s cups.
298
- */
299
- export declare const DOME: {
300
- x: number;
301
- y: number;
302
- r: number;
303
- h: number;
304
- };
305
- /** The ninja's vest has them a little smaller (the user, 2026-11-13): this much of their height. */
306
- export declare const SLIM = 0.65;
307
- /** The cut down the sternum of his chest piece: how deep at the middle, how far round each side (degrees), and how hollow its sides. */
308
- export declare const NOTCH: {
309
- deep: number;
310
- a: number;
311
- curve: number;
312
- };
313
- /**
314
- * The marine's chest shell swells toward the shoulders (the user, 2026-11-13: the plate on over the
315
- * top of the pecs, near the shoulders): there the shoulder's skin stands out of the trunk's, and a
316
- * plate held off it stood a step over the plate under the split. `out` more, from the first angle
317
- * `a` (degrees) to the second and the first height `y` to the second, so the two are one surface;
318
- * less again up to the collar piece (`top`), which it would cover.
319
- */
320
- export declare const SWELL: {
321
- out: number;
322
- a: number[];
323
- y: number[];
324
- top: number[];
325
- };
326
- /**
327
- * The plates' details (the user, 2026-11-13, on a picture of a trooper's armour: discreet, on the
328
- * chest plate and the forearms): dark strokes drawn as the scratches are. Each is [the part, its
329
- * middle line across, the angle round it (degrees, 0 the front, + outward), its height, its tilt
330
- * from upright (degrees), its length, its half width, the side it is on (0: both)].
331
- */
332
- export declare const DETAILS: number[][];
333
- /**
334
- * 忍 on the left pec of the ninja's chest piece (the user, 2026-11-13: the hood's ideogram on the
335
- * chest too), dark, over the vents and read from the front, on him and on her: its middle across
336
- * (m, - the left) and up, its size, and the trunk's half width and depth there that turn a place
337
- * across into an angle round it. Hers in the middle of her left breast, in place of its vents
338
- * (VENTS): her piece is moulded over the dome and set where the skin's normal meets it, so a stroke
339
- * over the top of the breast landed past the piece's top and was dropped.
340
- */
341
- export declare const SIGN: {
342
- x: number;
343
- y: number;
344
- size: number;
345
- w: number;
346
- d: number;
347
- }[];
348
- /**
349
- * The ninja's details (the user, 2026-11-13: more detail on his armour), as DETAILS on his own
350
- * pieces: a seam down the chest piece, what its cut down the sternum leaves of it (NOTCH); a rivet
351
- * each side of each lame; a groove down each side of the back piece, a rivet each side of each back
352
- * lame, as the belly's; a band at each end of the bracers with three slits between them; a groove
353
- * down each shin guard, a rivet each side of its top. And by build, the vents (VENTS) and 忍 on the
354
- * left pec (SIGNS).
355
- */
356
- export declare const NINJA_DETAILS: number[][];
357
- /**
358
- * The astronaut's details (the user, 2026-11-13: more detail on his armour), as DETAILS, then 1 for
359
- * the team's colour (ACCENT) or 0 dark: three rank bars on the left of the chest; a band of the
360
- * team's colour round each wrist; a patch on the left biceps; a dark control panel on the left
361
- * forearm with a row of keys beside it; a rivet at each corner of the belly's plate; two grooves
362
- * down the front of each thigh plate.
363
- */
364
- export declare const ASTRO_DETAILS: number[][];
365
- /**
366
- * The marine's details (the user, 2026-11-14: coloured buttons, boxes, grooves), as DETAILS, then
367
- * how far it stands over the plate (a box, walled, when not 0) and its look in `KIT`: a control box
368
- * on the left of the chest with three lit buttons (none on the belly: smooth, the user); a
369
- * power box on the back with two lights, two
370
- * grooves across the small of the back; a box on the outside of each thigh with a light; three
371
- * lit buttons alone on the left forearm by the wrist (the user: no black box there).
372
- */
373
- export declare const MARINE_DETAILS: number[][];
374
- /** A triangle's kind bit: in its own colour on any plate (the marine's details). */
375
- export declare const OWN = 64;
376
- /**
377
- * Takes the recipe of the armour on `s` a slice further (cooking()): true while there is more to
378
- * do. A step of the renderer's warm-up (render.ts warmSteps()), a task each.
379
- */
380
- export declare const preparing: (s: Skin, fine: boolean) => boolean;
381
- /** The armour's recipe on the skin `s`, `fine` or not (armor()), made now if it is not yet (the rest of it, if preparing() began it): the close one takes a third of a second. */
382
- export declare const prepare: (s: Skin, fine: boolean) => Recipe;
383
- /**
384
- * Appends the armour cut out of the skin `s` drawn into `out` from the float `from` on (skin()
385
- * writes three vertices per triangle of s.t, in order). Not `fine` (a runner not close by), curved
386
- * outlines follow the skin's own triangles, unrefined, and there are no scratches. `plate` is the
387
- * plates' colour (their walls a shade darker): white when absent, the astronaut's, who has his own
388
- * details in his team's colour `accent` too. The `ninja` wears his own armour.
389
- */
390
- /** The recipe on the skin `s` (`fine` or not) and the triangles of it a wearer has (armor()'s rules): its first numbers' indices. */
391
- export declare const wornOf: (s: Skin, fine: boolean, ninja: boolean, astro: boolean, bare: boolean) => [Recipe, Int32Array];
392
- export declare const armor: (out: Out, from: number, s: Skin, fine?: boolean, plate?: number[], ninja?: boolean, accent?: number[], bare?: boolean) => void;
393
- export {};
1
+ export * from './armor/types';
2
+ export * from './armor/regions';
3
+ export * from './armor/clip';
4
+ export * from './armor/shell';
5
+ export * from './armor/fit';
6
+ export * from './armor/cooking';
7
+ export * from './armor/details';
8
+ export * from './armor/scratches';
9
+ export * from './armor/wear';
@@ -0,0 +1,35 @@
1
+ import type { Vec3 } from '../mesh';
2
+ import type { Quat } from '../rig';
3
+ import type { Part } from '../xeno';
4
+ import type { Out } from '../verts';
5
+ /** The xenomorph's feet: each foot's joint and its toes'. */
6
+ export declare const FEET: ((16 | 15)[] | (20 | 19)[])[];
7
+ /** What mesh() makes of a part: the part at the origin. */
8
+ export declare const made: ({ make }: Part) => (o: Out) => void;
9
+ /** Metres the camera may be from the eye of the body and still show it: the bob is centimetres, a crouch's ease under a metre. */
10
+ export declare const AWAY = 1;
11
+ /** On a ledge the camera sits this far behind the head and below it, so that the arms reach the ledge. */
12
+ export declare const BEHIND: number, DROP: number;
13
+ export declare const X: Vec3, Y: Vec3, Z: Vec3;
14
+ export declare const POLE: Vec3;
15
+ export declare const clamp: (v: number, lo?: number, hi?: number) => number;
16
+ /**
17
+ * The own Hunter's disc throw, seconds from the click: the hand winds back across the chest until
18
+ * `wound`, sweeps out to the right until `swept` and lets the disc go at `release` on the way,
19
+ * then is back at the hold at `back`. Its arc round `centre` (camera space), `radius` metres.
20
+ */
21
+ export declare const THROW: {
22
+ wound: number;
23
+ release: number;
24
+ swept: number;
25
+ back: number;
26
+ centre: Vec3;
27
+ radius: number;
28
+ /** The arc's angle from straight ahead, radians: wound back to the left, swept out to the right. */
29
+ from: number;
30
+ to: number;
31
+ };
32
+ /** The weight of the throw's pose over the hold, and the hand's angle on its arc, `t` seconds after the click. */
33
+ export declare const throwOf: (t: number) => [number, number];
34
+ export declare const inv: ([x, y, z, w]: Quat) => Quat;
35
+ export declare const dist: (a: Vec3, b: Vec3) => number;
@@ -0,0 +1,3 @@
1
+ import type { World } from '../../shared/world';
2
+ import type { Body } from './types';
3
+ export declare const createBody: (world?: World) => Body;
@@ -0,0 +1,112 @@
1
+ import type { PlayerState } from '../../shared/types';
2
+ import type { Vec3 } from '../mesh';
3
+ /** The unit vector toward a wall on each SIDE, on the floor plane. */
4
+ export declare const TOWARD: number[][];
5
+ /** Finger thicknesses against FINGER_R, index to little: the little finger is thinner. */
6
+ export declare const THICK: number[];
7
+ /** The xenomorph's, as the fingers were before the man's were reworked (2026-11-17): its hand was tuned on them. */
8
+ export declare const THICK_X: number[];
9
+ export declare const LENGTH_X: number[];
10
+ /** Finger lengths against 4 cm, index to little. */
11
+ export declare const LENGTH: number[];
12
+ /** The thumb's two segments when the palm carries the rifle's handguard: closed on its near side, along it (the user, 2026-11-10). */
13
+ export declare const CUP: Vec3[];
14
+ /** The thumb's two segments open and in a fist, as directions in the hand (x toward the thumb). */
15
+ /** The thumb's two bones swung out from the palm, in the hand's space: a hand spread wide (shape()'s `spread`). */
16
+ export declare const THUMB_WIDE: Vec3[];
17
+ export declare const THUMB: [Vec3, Vec3][];
18
+ /** The woman's hand to the man's, about the wrist (SCALE in skin.ts has her glove's). */
19
+ export declare const HAND_F = 0.92;
20
+ /** The xenomorph's hands against the man's, about the wrist. */
21
+ export declare const CLAW_HAND = 1.3;
22
+ /** Sides around a finger (6 until the user, 2026-11-09: more detail on the hands). */
23
+ export declare const FINGER_SIDES = 10;
24
+ /** The wrist joint at rest: the cuff's ring is placed from it. */
25
+ export declare const WRIST: Vec3;
26
+ /** A ring of a tube: its centre and its two half axes. */
27
+ export type Ring = [c: Vec3, x: Vec3, y: Vec3];
28
+ export declare const cross: ([a, b, c]: Vec3, [d, e, f]: Vec3) => Vec3;
29
+ /**
30
+ * Appends, through `put(position, normal)`, the tube through `rings`: `sides` around, the normals
31
+ * smooth along it and around it (from the rings either side), a ring of no extent a point that
32
+ * closes the tube. The first ring's normals are its radial ones with `lean` along the tube, to meet
33
+ * the surface it grows out of.
34
+ */
35
+ export declare const tube: (rings: Ring[], sides: number, put: (p: Vec3, n: Vec3, r: number) => void, lean?: number) => void;
36
+ /** The xenomorph's fingers against a man's: long (the user's picture, 2026-11-17). */
37
+ export declare const LANK = 1.28;
38
+ /** The curl the xenomorph's fingers close to at most. */
39
+ export declare const RAKE = 0.35;
40
+ /** How far each of the xenomorph's claws reaches past the root of its last phalanx, metres. */
41
+ export declare const CLAW_L = 0.042;
42
+ export declare const HUNTER_HAND: Vec3;
43
+ /** Where the back of the Hunter's right wrist faces, in the view, with the blades out: up and well over to the right. */
44
+ export declare const CLAW_ROLL: Vec3;
45
+ /**
46
+ * A claw's rake in the own view, by its share of the swing: the striking hand (x out on its own
47
+ * side, y up, z ahead, metres from the eye) raised high and out, then slashed down and across to
48
+ * the other side, low and further out: up over the swing's first fifth, across by two fifths.
49
+ */
50
+ export declare const RAKE_UP: Vec3, RAKE_DOWN: Vec3;
51
+ /** The Hunter's left hand in its guard while the blades are out (view space, mirrored): low left, ahead. */
52
+ export declare const GUARD: Vec3;
53
+ /**
54
+ * The Hunter's left wrist with the shoulder cannon out (view space, mirrored): low on the left,
55
+ * close, the arm bent toward the eye, the computer on the forearm facing up, the view above it
56
+ * clear (the user, 2026-11-24, after a reference shot).
57
+ */
58
+ export declare const COMPUTER: Vec3;
59
+ /** The right forearm and hand's line to the key (view space): in from the right, nearly level, a little ahead. */
60
+ export declare const POKE: Vec3;
61
+ /** How much of a stride's sway the trunk and the shoulders lose with the cannon out. */
62
+ export declare const CANNON_STEADY = 0.8;
63
+ /** Where its elbow goes then (view space, mirrored): out to the left, down and back. */
64
+ export declare const COMPUTER_POLE: Vec3;
65
+ /** How closed that guard hand is: open, the fingers a little bent. */
66
+ export declare const GUARD_CURL = 0.15;
67
+ /** The guard hand thrown out ahead through a cut's wind-up, and pulled in to the belly on its strike. */
68
+ export declare const LUNGE_L: Vec3;
69
+ export declare const TUCK: Vec3;
70
+ /**
71
+ * How far the Hunter's left hand is out ahead (LUNGE_L) and in at the belly (TUCK), 0 to 1 each, at
72
+ * `prog` of his cut (-1: none): out through the wind-up to the strike, then in within a tenth of
73
+ * the cut, held, and back to the guard over its last quarter.
74
+ */
75
+ export declare const counter: (p: Pick<PlayerState, "cut">, prog: number) => [number, number];
76
+ export declare const HUNTER_CLAW: Vec3;
77
+ export type Claws = boolean | 'short';
78
+ /** A finger's half thickness at its root (11.2 mm until the fingers closed round a grip, 2026-11-09). */
79
+ export declare const FINGER_R = 0.01;
80
+ /** The lengths of a finger's three phalanges against `l`, the root one first. */
81
+ export declare const BONES: number[];
82
+ /** The ring of a finger from which on it is bare: the glove's fingers end 60 % along the middle phalanx. */
83
+ export declare const BARE = 8;
84
+ /** The rings of a finger a near runner's hand keeps past its root (hand()'s `lite`): the knuckle's bend, the glove's edge, the last bend, the tip. */
85
+ export declare const LITE: number[];
86
+ /**
87
+ * The rings of a finger, in the hand's space: from `p` along `d1`, `d2` then `d3`, its three
88
+ * phalanges (BONES of `l`), `r` thick at the root, the first ring across `t`. Each bend is a curve
89
+ * through the joint, not a corner, so that a fist keeps a round knuckle. The glove ends at ring
90
+ * BARE in a rolled edge; the skin goes on to the tip.
91
+ */
92
+ /** How far a joint's curve reaches along each bone (finger()'s `knee`): a wide, soft knuckle. */
93
+ export declare const KNEE = 0.6;
94
+ /** A spread hand's (the Hunter's disc, the user 2026-11-23): sharper joints. */
95
+ export declare const KNEE_SHARP = 0.25;
96
+ export declare const finger: (p: Vec3, d1: Vec3, d2: Vec3, d3: Vec3, l: number, r: number, t: Vec3,
97
+ /** 0 to 1: a skeleton's finger (the xenomorph's), thin bones between swollen knuckles, a fine tip. */
98
+ bony?: number,
99
+ /** How far each joint's curve reaches along the bones, a share of them: less, a sharper joint. */
100
+ knee?: number) => Ring[];
101
+ /** A spread hand's thumb mound, from its foot on the palm to the thumb's root, in this many steps (others 2). */
102
+ export declare const MOUND_RINGS = 4;
103
+ export declare const phalanges: (curl: number, i: number, spread?: number, hook?: number) => [Vec3, Vec3, Vec3];
104
+ /** The knuckles' shell and the strap's buckle: near-black hard plastic. */
105
+ export declare const SHELL: number[];
106
+ /** The strap round the wrist (the user, 2026-11-14: finer): its width, and how far it stands out of the palm's ring. */
107
+ export declare const STRAP: {
108
+ w: number;
109
+ k: number;
110
+ };
111
+ /** The marine's lit buttons on it, in place of the buckle (the user, 2026-11-14: no black box): across (toward the thumb), and colour. */
112
+ export declare const WRIST_LIGHTS: [number, number[]][];
@@ -0,0 +1,27 @@
1
+ import type { Vec3 } from '../mesh';
2
+ import type { Out } from '../verts';
3
+ import type { Claws } from './fingers';
4
+ /**
5
+ * A gloved hand at the wrist `end`: the fingers along `f`, the back of the hand along `u`, the thumb
6
+ * toward `th` (unit vectors). `curl` runs from 0, a flat open hand with the fingers spread, to 1, a
7
+ * fist. The palm is one tube that starts as the sleeve's cuff ends and spreads to the knuckles,
8
+ * and each finger and the thumb one tube from there, bent at its joints: no solid meets another
9
+ * in a line, and the normals are smooth all over. A tactical glove (the user, 2026-11-09: more
10
+ * detail): fingerless from halfway along the middle phalanx, the bare tips in `bare` with a nail
11
+ * each; a hard shell over the knuckles, a padded plate on the back, a strap round the wrist.
12
+ */
13
+ export declare const hand: (out: Out, end: Vec3, f: Vec3, u: Vec3, th: Vec3, curl: number, tint: number[], point?: number, push?: number, to?: Vec3, bare?: number[],
14
+ /** 0 to 1: the thumb out of the fist to CUP, up the side of what the palm carries. */
15
+ cup?: number,
16
+ /** A near runner's hand: fewer sides, on the near sleeve's cuff, and none of the glove's small parts. */
17
+ lite?: boolean,
18
+ /** The marine's: lit buttons on the strap round the wrist (WRIST_LIGHTS). */
19
+ lights?: boolean,
20
+ /** The xenomorph's claws on the fingertips (Grip). */
21
+ claws?: Claws,
22
+ /** Its size: the xenomorph's grows from the wrist over 4 cm, hers is smaller (hands()). */
23
+ grow?: number,
24
+ /** How far the fingers fan out, times an open hand's (phalanges()). */
25
+ spread?: number,
26
+ /** How far the fingers' last bones bend further, radians (phalanges()). */
27
+ hook?: number) => void;
@@ -0,0 +1,28 @@
1
+ import type { Vec3 } from '../mesh';
2
+ import type { Out } from '../verts';
3
+ import type { Claws } from './fingers';
4
+ import type { Solved } from './types';
5
+ /** What a hand does besides closing (hand()): the left index pointing, the right thumb pushing toward `to`, the left thumb cupped. */
6
+ export interface Grip {
7
+ point?: number;
8
+ push?: number;
9
+ to?: Vec3;
10
+ cup?: number;
11
+ /** The marine's lit buttons on the wrists' straps. */
12
+ lights?: boolean;
13
+ /** The xenomorph's: a hooked claw of bone on each fingertip, for the nail. */
14
+ claws?: Claws;
15
+ /** The right hand's fingers fanned out this many times an open hand's (the Hunter's disc). */
16
+ spread?: number;
17
+ /** The right hand's fingers' last bones bent further, radians: gripping an edge. */
18
+ hook?: number;
19
+ /** The right index straightened out of the fist as `point` the left (the Hunter's wrist computer). */
20
+ poke?: number;
21
+ }
22
+ /**
23
+ * Both hands of the skeleton `s` on its wrists, left then right, each closed `curls[i]` (hand()), in
24
+ * the glove `glove` with the bare fingertips `bare`; hers smaller about the wrist (HAND_F). The own
25
+ * body and the runners share it, so a runner's fist closes on a grip as the own one does. `lite` is
26
+ * a near runner's hand, `skip` a hand not drawn (the one a cut took off with its arm).
27
+ */
28
+ export declare const hands: (out: Out, s: Solved, build: number, curls: number[], glove: number[], bare: number[], { point, push, to, cup, lights, claws, spread, hook, poke, }?: Grip, lite?: boolean, skip?: number) => void;
@@ -0,0 +1,26 @@
1
+ import type { Vec3 } from '../mesh';
2
+ import type { Quat } from '../rig';
3
+ import type { Out } from '../verts';
4
+ import type { Pieces } from '../store';
5
+ import type { Solved } from './types';
6
+ type HunterViewPart = {
7
+ key: string;
8
+ joint: number;
9
+ orientation: number;
10
+ vertices: number[];
11
+ };
12
+ export declare const hunterView: (build: number) => HunterViewPart[];
13
+ export declare const cannonVertices: () => number[];
14
+ /** The post's turn in the model's axes when folded out by `f` (0 to 1): its +y to the hinge. */
15
+ export declare const armTurn: (f: number) => Quat;
16
+ export declare const postVertices: () => number[];
17
+ /** A direction in the camera's space (right, up, forward) in the model's axes (right, up, back). */
18
+ export declare const model: ([a, b, c]: Vec3) => Vec3;
19
+ /**
20
+ * The own shoulder cannon, folded out by `k`: its hinge in the camera's space and its turn from
21
+ * the camera's frame. Out, it points from its hinge at what the look meets (`target`).
22
+ */
23
+ export declare const cannonInView: (k: number, target: Vec3) => [Vec3, Quat];
24
+ /** Draws one rigid Hunter part from its rest joint onto the first-person pose. */
25
+ export declare const drawHunterPart: (out: Out, part: HunterViewPart, s: Solved, pieces?: Pieces) => void;
26
+ export {};