@korial29/tiny-fps 0.130.0 → 0.130.2

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.
@@ -14,15 +14,17 @@ interface Region {
14
14
  swell?: (x: number, y: number) => number;
15
15
  /** Where its angles are measured from, degrees (0 the front): 180 for a plate on the back. */
16
16
  face?: number;
17
- /** Its bottom and top at each angle (degrees from the front, + outward), when not level: a leg's opening. */
18
- low?: (a: number) => number;
19
- high?: (a: number) => number;
17
+ /** Its bottom and top at each angle (degrees from the front, + outward) or rest point, when not level: a leg's opening. */
18
+ low?: (a: number, c: Corner) => number;
19
+ high?: (a: number, c: Corner) => number;
20
20
  /** Only on the woman's skin. */
21
21
  fem?: boolean;
22
22
  /** Only on the man's. */
23
23
  man?: boolean;
24
24
  /** A round plate: its outline an ellipse in (angle, height), [half the angle, middle height, half height]. */
25
25
  round?: [number, number, number];
26
+ /** Moulded: a smooth shell round the trunk rather than the skin's facets (moulding()). */
27
+ mould?: boolean;
26
28
  }
27
29
  /**
28
30
  * The chest plate's pecs (the user, 2026-11-10: fuller toward the bottom, then the round part too
@@ -52,6 +54,30 @@ export declare const SHOULDER: {
52
54
  y: number;
53
55
  h: number;
54
56
  };
57
+ /**
58
+ * The briefs (the user, 2026-11-10: round the hips under the belt, the leg's opening rising from the
59
+ * crotch to the hip and lower behind, never between the thighs; 2026-11-12: thinner on the sides,
60
+ * and no glitches). One opening line for all their pieces, the band on the trunk and the piece on
61
+ * each thigh, by the angle of the rest point round the trunk (0 the front, 180 the back, either
62
+ * side): the pieces met at the border of the trunk's skin and the legs' (0.93 m) on two lines that
63
+ * did not agree, and left gaps, overlaps and slivers there. Lowest at the crotch, before and
64
+ * behind, it rises to `side`, under the band's top (0.982), between the angles `at`.
65
+ */
66
+ export declare const BRIEFS: {
67
+ front: number;
68
+ back: number;
69
+ side: number;
70
+ at: number[];
71
+ };
72
+ /**
73
+ * The chest plate's outer corners go round under the armpits (the user, 2026-11-12: a triangle came
74
+ * through the plate under the armpit): the shoulder's skin stands out of the trunk's at the split
75
+ * (1.41 m, skin.ts), and the plate over it was pierced. Its top falls to `y` between the angles `a`.
76
+ */
77
+ export declare const ARMPIT: {
78
+ a: number[];
79
+ y: number;
80
+ };
55
81
  /**
56
82
  * The man's shoulder piece (the user, 2026-11-11: no pad standing over the shoulder, a light and
57
83
  * simple piece that covers its shape, joining the collar piece in front to the shoulder blade's
@@ -67,8 +93,21 @@ export declare const BAND: {
67
93
  /** The gap the user asked between the chest plate and the belly's plates, and between those. */
68
94
  export declare const GAP = 0.02;
69
95
  export declare const REGIONS: Region[];
96
+ /** 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). */
97
+ type Corner = number[];
70
98
  /** The scratches' colours on coloured plates: the white under the paint, and paler. */
71
99
  export declare const SCRATCHED: number[][];
100
+ /**
101
+ * Her breasts on the shell (the user, 2026-11-12: a uniform dome each, a little bigger): a round
102
+ * dome each side, `h` out at its middle (x, y) and falling to nothing `r` away, smooth at its rim;
103
+ * it stands in for the skin's bust and bust()'s cups.
104
+ */
105
+ export declare const DOME: {
106
+ x: number;
107
+ y: number;
108
+ r: number;
109
+ h: number;
110
+ };
72
111
  /**
73
112
  * Appends the armour cut out of the skin `s` drawn into `out` from the float `from` on (skin()
74
113
  * writes three vertices per triangle of s.t, in order). Not `fine` (a runner not close by), curved
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.130.0",
5
+ "version": "0.130.2",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"