@korial29/tiny-fps 0.134.0 → 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.
@@ -50,17 +50,29 @@ export declare const CUP = 0.014;
50
50
  export declare const CUP_Y = 1.367;
51
51
  export declare const bust: (x: number, y: number) => number;
52
52
  /**
53
- * The woman's shoulder cap (the user, 2026-11-11: simpler, no part down the arm): one round piece
54
- * on the top of the shoulder, all of it on the trunk's skin, over the arm's (which stops at
55
- * 1.41 m): the border between the two is under no plate, so its triangles make no steps. Its middle
56
- * angle round the trunk (degrees from the front), half angle, middle height and half height; a low
57
- * 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.
58
58
  */
59
- export declare const SHOULDER: {
60
- a: number;
61
- half: number;
59
+ export declare const CUFF: {
60
+ wrist: number;
62
61
  y: number;
63
- 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;
64
76
  };
65
77
  /**
66
78
  * The briefs (the user, 2026-11-10: round the hips under the belt, the leg's opening rising from the
@@ -90,28 +102,38 @@ export declare const THIGH: {
90
102
  at: number[];
91
103
  };
92
104
  /**
93
- * The chest plate's outer corners go round under the armpits (the user, 2026-11-12: a triangle came
94
- * through the plate under the armpit): the shoulder's skin stands out of the trunk's at the split
95
- * (1.41 m, skin.ts), and the plate over it was pierced. Its top falls to `y` between the angles `a`.
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().
96
113
  */
97
114
  export declare const ARMPIT: {
98
115
  a: number[];
99
116
  y: number;
117
+ low: number;
100
118
  };
119
+ /** The gap the user asked between the chest plate and the belly's plate. */
120
+ export declare const GAP = 0.02;
101
121
  /**
102
- * The man's shoulder piece (the user, 2026-11-11: no pad standing over the shoulder, a light and
103
- * simple piece that covers its shape, joining the collar piece in front to the shoulder blade's
104
- * behind): the angles round the trunk it spans, from the collar piece's end to the shoulder blade
105
- * plate's; its bottom, over the arm's skin (which stops at 1.41 m), so no plate edge follows the
106
- * border between the two; and its top at each end, the collar's and the shoulder blade plate's.
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.
107
125
  */
108
- export declare const BAND: {
109
- a: number[];
110
- low: number;
111
- top: number[];
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;
112
136
  };
113
- /** The gap the user asked between the chest plate and the belly's plates, and between those. */
114
- export declare const GAP = 0.02;
115
137
  /**
116
138
  * The ninja's vest: the bottom of its chest piece at the sides, how far its chevron dips at the
117
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
@@ -154,6 +176,26 @@ export declare const DOME: {
154
176
  };
155
177
  /** The ninja's vest has them a little smaller (the user, 2026-11-13): this much of their height. */
156
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[][];
157
199
  /**
158
200
  * Appends the armour cut out of the skin `s` drawn into `out` from the float `from` on (skin()
159
201
  * writes three vertices per triangle of s.t, in order). Not `fine` (a runner not close by), curved
@@ -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.134.0",
5
+ "version": "0.135.0",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"