@korial29/tiny-fps 0.133.2 → 0.135.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.
@@ -29,6 +29,10 @@ interface Region {
29
29
  alone?: boolean;
30
30
  /** How far it stands off the skin, when not OFF. */
31
31
  off?: number;
32
+ /** On the trunk, its angles are measured round the leg of that side, as a leg's plate's. */
33
+ legs?: boolean;
34
+ /** No plate: the suit's dark ribbed cloth, a hair off the skin, with no wall (the gusset). */
35
+ thin?: boolean;
32
36
  }
33
37
  /**
34
38
  * The chest plate's pecs (the user, 2026-11-10: fuller toward the bottom, then the round part too
@@ -46,17 +50,29 @@ export declare const CUP = 0.014;
46
50
  export declare const CUP_Y = 1.367;
47
51
  export declare const bust: (x: number, y: number) => number;
48
52
  /**
49
- * The woman's shoulder cap (the user, 2026-11-11: simpler, no part down the arm): one round piece
50
- * on the top of the shoulder, all of it on the trunk's skin, over the arm's (which stops at
51
- * 1.41 m): the border between the two is under no plate, so its triangles make no steps. Its middle
52
- * angle round the trunk (degrees from the front), half angle, middle height and half height; a low
53
- * dome, 4 mm more at its middle.
53
+ * The forearm's plate (the user, 2026-11-13: its shape worked, after a trooper's armour, and down
54
+ * to the wrist, `wrist`, the hand's joint being at 0.92 m): its top is
55
+ * cut low in the crook of the elbow, at `y`, and rises by `rise` round to the elbow's point behind,
56
+ * between the angles `a` round the arm; it flares by `flare` toward the elbow; and a flat ridge
57
+ * `ridge` high runs down its outer side, from `x` out from the body's middle, fading to the wrist.
54
58
  */
55
- export declare const SHOULDER: {
56
- a: number;
57
- half: number;
59
+ export declare const CUFF: {
60
+ wrist: number;
58
61
  y: number;
59
- h: number;
62
+ rise: number;
63
+ a: number[];
64
+ flare: number;
65
+ ridge: number;
66
+ x: number;
67
+ };
68
+ /**
69
+ * The biceps' plate (the user, 2026-11-13: worked too, and thinner): the heights of its edges'
70
+ * middles, how far they slant (`cut`), and how far it stands off the arm, not OFF.
71
+ */
72
+ export declare const BICEPS: {
73
+ y: number[];
74
+ cut: number;
75
+ off: number;
60
76
  };
61
77
  /**
62
78
  * The briefs (the user, 2026-11-10: round the hips under the belt, the leg's opening rising from the
@@ -74,28 +90,50 @@ export declare const BRIEFS: {
74
90
  at: number[];
75
91
  };
76
92
  /**
77
- * The chest plate's outer corners go round under the armpits (the user, 2026-11-12: a triangle came
78
- * through the plate under the armpit): the shoulder's skin stands out of the trunk's at the split
79
- * (1.41 m, skin.ts), and the plate over it was pierced. Its top falls to `y` between the angles `a`.
93
+ * The thigh plates' top (the user, 2026-11-13, on a picture of a trooper's hips: a slant from the
94
+ * hip down to the inside of the thigh, a crescent of dark ribbed suit between it and the briefs):
95
+ * a line of its own by the angle round the trunk, on the thighs and up the hips' sides alike, so one
96
+ * line across the border too. Lowest at the inside of the thigh, `front` and `back`, under the
97
+ * crotch; SIDE_GAP under the briefs at the hip; between the angles `at`.
80
98
  */
81
- export declare const ARMPIT: {
82
- a: number[];
83
- y: number;
99
+ export declare const THIGH: {
100
+ front: number;
101
+ back: number;
102
+ at: number[];
84
103
  };
85
104
  /**
86
- * The man's shoulder piece (the user, 2026-11-11: no pad standing over the shoulder, a light and
87
- * simple piece that covers its shape, joining the collar piece in front to the shoulder blade's
88
- * behind): the angles round the trunk it spans, from the collar piece's end to the shoulder blade
89
- * plate's; its bottom, over the arm's skin (which stops at 1.41 m), so no plate edge follows the
90
- * border between the two; and its top at each end, the collar's and the shoulder blade plate's.
105
+ * The chest plate's armholes (the user, 2026-11-12: a triangle came through the plate under the
106
+ * armpit; 2026-11-13: small triangles on its sides): the shoulder's skin stands out of the trunk's
107
+ * at the split (1.41 m, skin.ts), and a plate's edge across the two was cut in steps. Its top falls
108
+ * to `y`, under the split, between the first two angles `a`, before the shoulder's skin starts; it
109
+ * stays there over the pecs, then rounds down to `low` between the last two: no corner standing
110
+ * out under the arm. The shoulder's bell (pads.ts) is over what is left bare. The breach that ran
111
+ * across the plate by the armpits (2026-11-13) was the rim of the arm's hole in the trunk's skin:
112
+ * see TURN in cook().
91
113
  */
92
- export declare const BAND: {
114
+ export declare const ARMPIT: {
93
115
  a: number[];
116
+ y: number;
94
117
  low: number;
95
- top: number[];
96
118
  };
97
- /** The gap the user asked between the chest plate and the belly's plates, and between those. */
119
+ /** The gap the user asked between the chest plate and the belly's plate. */
98
120
  export declare const GAP = 0.02;
121
+ /**
122
+ * The belly's plate (the user, 2026-11-13: worked, rounder): its bottom at the middle, how far it
123
+ * goes round each side (degrees), how much its bottom rises to its corners, rounding them off, and
124
+ * how far it domes at its middle.
125
+ */
126
+ export declare const BELLY: {
127
+ y: number;
128
+ a: number;
129
+ round: number;
130
+ dome: number;
131
+ };
132
+ /** The chest plate's bottom: its height at the middle, and how much higher at the sides. */
133
+ export declare const CHEST: {
134
+ y: number;
135
+ rise: number;
136
+ };
99
137
  /**
100
138
  * The ninja's vest: the bottom of its chest piece at the sides, how far its chevron dips at the
101
139
  * middle (and the lames' under it), the bottom of the V at its neck and its top beside it on the woman, the lames' height and the gap
@@ -138,6 +176,26 @@ export declare const DOME: {
138
176
  };
139
177
  /** The ninja's vest has them a little smaller (the user, 2026-11-13): this much of their height. */
140
178
  export declare const SLIM = 0.8;
179
+ /**
180
+ * The marine's chest shell swells toward the shoulders (the user, 2026-11-13: the plate on over the
181
+ * top of the pecs, near the shoulders): there the shoulder's skin stands out of the trunk's, and a
182
+ * plate held off it stood a step over the plate under the split. `out` more, from the first angle
183
+ * `a` (degrees) to the second and the first height `y` to the second, so the two are one surface;
184
+ * less again up to the collar piece (`top`), which it would cover.
185
+ */
186
+ export declare const SWELL: {
187
+ out: number;
188
+ a: number[];
189
+ y: number[];
190
+ top: number[];
191
+ };
192
+ /**
193
+ * The plates' details (the user, 2026-11-13, on a picture of a trooper's armour: discreet, on the
194
+ * chest plate and the forearms): dark strokes drawn as the scratches are. Each is [the part, its
195
+ * middle line across, the angle round it (degrees, 0 the front, + outward), its height, its tilt
196
+ * from upright (degrees), its length, its half width, the side it is on (0: both)].
197
+ */
198
+ export declare const DETAILS: number[][];
141
199
  /**
142
200
  * Appends the armour cut out of the skin `s` drawn into `out` from the float `from` on (skin()
143
201
  * writes three vertices per triangle of s.t, in order). Not `fine` (a runner not close by), curved
@@ -27,7 +27,7 @@ export declare const pack: (out: number[], at: Vec3, q: Quat, rgb: number[], lod
27
27
  * the pack's port from above, ribbed close up. None far.
28
28
  */
29
29
  export declare const hose: (out: number[], head: Vec3, hq: Quat, chest: Vec3, cq: Quat, lod: number) => void;
30
- /** The woman's cup, scaled about its joint: flatter. */
30
+ /** The woman's panel, scaled about its joint: smaller, as far out (her briefs are where his are). */
31
31
  export declare const CUP_F: Vec3;
32
- /** Appends the crotch cup at level of detail `lod` on the pelvis joint at `at` turned by `q`, in `plate` (white when absent). */
33
- export declare const crotch: (out: number[], at: Vec3, q: Quat, lod: number, plate?: number[], scale?: number | Vec3) => void;
32
+ /** Appends the crotch panel on the pelvis joint at `at` turned by `q`, in `plate` (white when absent). */
33
+ export declare const crotch: (out: number[], at: Vec3, q: Quat, plate?: number[], scale?: number | Vec3) => void;
@@ -18,8 +18,28 @@ export declare const COLLAR: {
18
18
  back: number;
19
19
  end: number;
20
20
  };
21
- /** Appends the ninja's shoulder pads and his collar on the solved pose `s`, in the team's `color`; smaller on the woman (`build`). */
21
+ /**
22
+ * The marine's shoulder bell (the user, 2026-11-13, on a picture of a trooper's armour: a big round
23
+ * shell over each shoulder, hanging over the top of the arm): from the arm's joint at rest, its
24
+ * middle across, its radius out and fore and aft, its top, how far round it goes each side of
25
+ * straight out (rad), its length at its outer middle and how much shorter at its ends, and how much
26
+ * it flares at its rim; and her bell's size to his.
27
+ */
28
+ export declare const BELL: {
29
+ x: number;
30
+ r: number[];
31
+ top: number;
32
+ a: number;
33
+ len: number;
34
+ cut: number;
35
+ flare: number;
36
+ fem: number;
37
+ };
38
+ /**
39
+ * Appends the ninja's shoulder pads and his collar on the solved pose `s`, in the team's `color`;
40
+ * smaller on the woman (`build`). Or the `marine`'s shoulder bells, and no collar.
41
+ */
22
42
  export declare const pads: (out: number[], s: {
23
43
  pos: Vec3[];
24
44
  rot: Quat[];
25
- }, build?: number, color?: number[]) => void;
45
+ }, build?: number, color?: number[], marine?: boolean) => 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.133.2",
5
+ "version": "0.135.0",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"