@korial29/tiny-fps 0.136.0 → 0.137.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.
- package/dist/index.js +13 -13
- package/dist/types/client/armor.d.ts +17 -5
- package/dist/types/client/mask.d.ts +6 -0
- package/dist/types/client/pads.d.ts +8 -0
- package/package.json +1 -1
|
@@ -136,25 +136,30 @@ export declare const CHEST: {
|
|
|
136
136
|
};
|
|
137
137
|
/**
|
|
138
138
|
* The ninja's vest: the bottom of its chest piece at the sides, how far its chevron dips at the
|
|
139
|
-
* middle (and the lames' under it),
|
|
140
|
-
* between two pieces.
|
|
139
|
+
* middle (and the lames' under it), how far its neckline dips at the middle, its top over the chest
|
|
140
|
+
* on him and on her, the lames' height and the gap between two pieces.
|
|
141
141
|
*/
|
|
142
142
|
export declare const VEST: {
|
|
143
143
|
y: number;
|
|
144
144
|
dip: number;
|
|
145
145
|
neck: number;
|
|
146
|
-
top: number;
|
|
146
|
+
top: number[];
|
|
147
147
|
lame: number;
|
|
148
148
|
gap: number;
|
|
149
149
|
};
|
|
150
150
|
/**
|
|
151
151
|
* The vest's armholes (the user, 2026-11-13: a crack in the chest piece by the armpit): over the
|
|
152
152
|
* trunk's split (1.41 m) the skin is the shoulder's and goes with the arm, away from the piece under
|
|
153
|
-
* it. Its top
|
|
153
|
+
* it. Its top is down to `y`, under the split, at the angle `a`, where the shoulder's skin starts;
|
|
154
|
+
* from the top over the pec it falls there from the angle `fall` on him and on her (hers sooner,
|
|
155
|
+
* round over each breast); its outer corner rounds off by `corner` between the angles `round`.
|
|
154
156
|
*/
|
|
155
157
|
export declare const ARMHOLE: {
|
|
156
|
-
a: number
|
|
158
|
+
a: number;
|
|
157
159
|
y: number;
|
|
160
|
+
fall: number[];
|
|
161
|
+
corner: number;
|
|
162
|
+
round: number[];
|
|
158
163
|
};
|
|
159
164
|
/** How far the ninja's bracers stand off the forearm: half a plate's thickness. */
|
|
160
165
|
export declare const BRACER = 0.006;
|
|
@@ -196,6 +201,13 @@ export declare const SWELL: {
|
|
|
196
201
|
* from upright (degrees), its length, its half width, the side it is on (0: both)].
|
|
197
202
|
*/
|
|
198
203
|
export declare const DETAILS: number[][];
|
|
204
|
+
/**
|
|
205
|
+
* The ninja's details (the user, 2026-11-13: more detail on his armour), as DETAILS on his own
|
|
206
|
+
* pieces: a seam down the chest piece and three vents on each pec; a rivet at each end of each lame;
|
|
207
|
+
* two grooves down the back plate, either side of the spine; a band at each end of the bracers with
|
|
208
|
+
* three slits between them; a groove down each shin guard, a rivet each side of its top.
|
|
209
|
+
*/
|
|
210
|
+
export declare const NINJA_DETAILS: number[][];
|
|
199
211
|
/**
|
|
200
212
|
* Appends the armour cut out of the skin `s` drawn into `out` from the float `from` on (skin()
|
|
201
213
|
* writes three vertices per triangle of s.t, in order). Not `fine` (a runner not close by), curved
|
|
@@ -3,6 +3,12 @@ import type { Vec3 } from './mesh';
|
|
|
3
3
|
import type { Skin } from './skin';
|
|
4
4
|
/** The suit's and the hood's black, a touch of blue in it; the guard's rim, a shade lighter; the disc's ink. */
|
|
5
5
|
export declare const CLOTH: number[];
|
|
6
|
+
/** The grooves at the mouth: their places round (radians), their bottom and top, their width (m). */
|
|
7
|
+
export declare const MOUTH: {
|
|
8
|
+
a: number[];
|
|
9
|
+
y: number[];
|
|
10
|
+
w: number;
|
|
11
|
+
};
|
|
6
12
|
/**
|
|
7
13
|
* Dresses the head of the skin `s` just drawn into `out` from `from` (skin(), in the order of its
|
|
8
14
|
* triangles' corners), on the head joint at `at` turned by `q`: the hood painted on it (the head,
|
|
@@ -18,6 +18,14 @@ export declare const COLLAR: {
|
|
|
18
18
|
back: number;
|
|
19
19
|
end: number;
|
|
20
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* The lames' front half (the user, 2026-11-13: wrap the front of the shoulders more): this much
|
|
23
|
+
* wider than their back half, and falling this much further, down over the front of the shoulder.
|
|
24
|
+
*/
|
|
25
|
+
export declare const FORE: {
|
|
26
|
+
wide: number;
|
|
27
|
+
fall: number;
|
|
28
|
+
};
|
|
21
29
|
/**
|
|
22
30
|
* The marine's shoulder bell (the user, 2026-11-13, on a picture of a trooper's armour: a big round
|
|
23
31
|
* shell over each shoulder, hanging over the top of the arm): from the arm's joint at rest, its
|
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.
|
|
5
|
+
"version": "0.137.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|