@korial29/tiny-fps 0.187.0 → 0.188.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.
@@ -106,7 +106,9 @@ export declare const BARE = 8;
106
106
  * through the joint, not a corner, so that a fist keeps a round knuckle. The glove ends at ring
107
107
  * BARE in a rolled edge; the skin goes on to the tip.
108
108
  */
109
- export declare const finger: (p: Vec3, d1: Vec3, d2: Vec3, d3: Vec3, l: number, r: number, t: Vec3) => Ring[];
109
+ export declare const finger: (p: Vec3, d1: Vec3, d2: Vec3, d3: Vec3, l: number, r: number, t: Vec3,
110
+ /** 0 to 1: a skeleton's finger (the xenomorph's), thin bones between swollen knuckles, a fine tip. */
111
+ bony?: number) => Ring[];
110
112
  /**
111
113
  * The directions of the three phalanges of the finger i (index to little) at `curl`, in the hand's
112
114
  * space. At 0.9, the curl of every grip, they go round a handle 2.5 cm thick 7.8 cm along the
@@ -48,6 +48,25 @@ interface Solved {
48
48
  pos: Vec3[];
49
49
  rot: Quat[];
50
50
  }
51
+ /**
52
+ * The blade out of the top of each vertebra (the user's picture, 2026-11-17: a comb of thin curved
53
+ * blades down the column): metres high at the skull, at the coccyx and at its highest on the tail,
54
+ * how far along the tail that is and where the blades stop before the stinger; its lean toward the
55
+ * tail's tip at its root and how much more at its point, radians; half its chord as a share of a
56
+ * vertebra's length, half its thickness as a share of the column's radius; rings by level of detail.
57
+ */
58
+ export declare const FIN: {
59
+ skull: number;
60
+ coccyx: number;
61
+ high: number;
62
+ at: number;
63
+ end: number;
64
+ lean: number;
65
+ bend: number;
66
+ chord: number;
67
+ thick: number;
68
+ steps: number[];
69
+ };
51
70
  /**
52
71
  * Geometry baked into the beast's skin (shape() in skin.ts), posed with it by flesh() at no cost a
53
72
  * frame: places and normals at rest, six numbers a vertex, its two joints and its weight on the
@@ -80,9 +99,9 @@ export declare const PIPE: number[];
80
99
  export declare const backOf: (lod: number) => Back;
81
100
  /**
82
101
  * Its tail, in the world, from the solved skeleton `s`, in the pose `lash` (lashOf()): the column's
83
- * free part, from the pelvis on (the back's is in the skin, backOf()), thick, each vertebra a bead
84
- * pinched at its joints (the user, 2026-11-16: a spine), with a spine standing out of its top and,
85
- * close, a process out of each side swept back, but near the tip; its rings follow the curve's own
102
+ * free part, from the pelvis on (the back's is in the skin, backOf()), thick, each vertebra a spool
103
+ * pinched at its joints (BEAD), with a blade standing out of its top (FIN, fin()) and, close, a
104
+ * process out of each side swept back, but near the tip; its rings follow the curve's own
86
105
  * up, so a tail turned round the hip stays round. The stinger at its end: a curved knife's blade
87
106
  * (blade()), glowing in the team's `color`. Written straight into `out`. `lod` 0 far, 1 near, 3 close.
88
107
  * `fours` (0 to 1): how far the body is on all fours (fours.ts).
@@ -90,15 +109,10 @@ export declare const backOf: (lod: number) => Back;
90
109
  export declare const tail: (out: Out, s: Solved, t: number, run: number, lash: Lash, color: number[], lod: number, fours?: number) => void;
91
110
  /** Bone: its claws and teeth, nothing else. */
92
111
  export declare const BONE: number[];
112
+ /** Its claws, hands and feet (the user, 2026-11-17: less white): a dull horn, darker than bone. */
113
+ export declare const CLAW: number[];
93
114
  /** Where the metatarsal (the foot) ends, from the ankle, in the foot joint's frame: longer than the rig's foot. */
94
115
  export declare const FOOT_TIP: Vec3;
95
- /**
96
- * Its foot on a foot joint (the user, 2026-11-15: an arched sole, tendons and toes): a round ankle
97
- * over the joint, which the shin's end sinks into, then the bone bowing up along its top into an
98
- * arch, a pad under the heel and one under the ball at its end (FOOT_TIP); three tendons stand out
99
- * over the instep from the ankle to the toes, where toes() carries them on to the claws. The pose
100
- * stands it near upright (prowl() in soldier.ts): a third segment to the leg.
101
- */
102
116
  export declare const metatarsal: (out: Out, at: Vec3, q: Quat, lod: number) => void;
103
117
  /**
104
118
  * Its toes at the end of the foot (FOOT_TIP), level: three long digits splayed forward and a fourth,
@@ -108,6 +122,17 @@ export declare const metatarsal: (out: Out, at: Vec3, q: Quat, lod: number) => v
108
122
  export declare const toes: (out: Out, at: Vec3, q: Quat, lod: number) => void;
109
123
  /** Its tendons on a shin joint: the heel's cord down the back of the shin, and one down each side of its front. */
110
124
  export declare const sinews: (out: Out, at: Vec3, q: Quat, lod: number) => void;
125
+ /**
126
+ * A thigh's open flesh, on the thigh joint of side `s` (-1 left): its window (WINDOWS).
127
+ */
128
+ export declare const thigh: (out: Out, at: Vec3, q: Quat, lod: number, s: number) => void;
129
+ /**
130
+ * Its hips, on the pelvis joint (the user's picture, 2026-11-17): each side a ribbed tube down the
131
+ * groin from the hip bone to the crotch, the two a V, a cord along it, and a ribbed tube round the
132
+ * hip's socket from the front over the side to the back. High on the pelvis (the user, 2026-11-17),
133
+ * clear of the thighs as they swing.
134
+ */
135
+ export declare const hips: (out: Out, at: Vec3, q: Quat, lod: number) => void;
111
136
  export declare const ribs: (out: Out, at: Vec3, q: Quat, lod: number, low?: boolean) => void;
112
137
  /**
113
138
  * Its collarbones on the chest joint (the user, 2026-11-15: standing out, an exoskeleton), in the
@@ -125,6 +150,12 @@ export declare const horns: (out: Out, at: Vec3, q: Quat, lod: number, base: Vec
125
150
  export declare const HORNS: [number, Vec3, number, number][];
126
151
  /** Its spurs: one out of the back of each elbow (a forearm joint), one out of the back of each ankle (a shin joint). */
127
152
  export declare const elbow: (out: Out, at: Vec3, q: Quat, lod: number) => void;
153
+ /**
154
+ * A forearm's window (the user's picture, 2026-11-17: only on the forearm's visible face), on the
155
+ * forearm joint of side `s` (1 the right): one down its outside, elbow to wrist, 26 cm, a little
156
+ * sunk in the skin's rough shape so no gap shows (a little clipping is fine).
157
+ */
158
+ export declare const forearm: (out: Out, at: Vec3, q: Quat, lod: number, s: number) => void;
128
159
  export declare const heel: (out: Out, at: Vec3, q: Quat, lod: number) => void;
129
160
  /**
130
161
  * The disc at the top of its arm (the user, 2026-11-16: where the shoulder ends and the arm
@@ -195,6 +226,11 @@ export declare const PART: {
195
226
  CUFF_R: number;
196
227
  HEAD: number;
197
228
  FINE: number;
229
+ THIGH_L: number;
230
+ THIGH_R: number;
231
+ HIPS: number;
232
+ FOREARM_L: number;
233
+ FOREARM_R: number;
198
234
  };
199
235
  /** The xenomorph's rigid pieces at `lod`, in PART's order; render.ts makes them all at the map's load. */
200
236
  export declare const partsOf: (lod: number) => Part[];
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.187.0",
5
+ "version": "0.188.0",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"