@korial29/tiny-fps 0.162.2 → 0.162.4

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.
@@ -303,6 +303,17 @@ export interface Recipe {
303
303
  t: number[];
304
304
  /** The triangles each kind of wearer has (armor()'s `ninja`, astronaut and `bare` bits), listed on first use. */
305
305
  k?: Int32Array[];
306
+ /** Their corners, each distinct one once (shared()), by the same wearer. */
307
+ s?: Shared[];
308
+ }
309
+ /**
310
+ * A wearer's corners, each distinct one once: its first number in the recipe's `c` and its turned
311
+ * weights (TURN bits) in `u`, two numbers a corner; in `x` the three of each triangle of its list.
312
+ * Next to each other, triangles share their corners, two or three times over on the marine.
313
+ */
314
+ interface Shared {
315
+ u: Int32Array;
316
+ x: Int32Array;
306
317
  }
307
318
  export declare const CORNER = 11;
308
319
  export declare const TRI = 6;
@@ -34,6 +34,11 @@ export declare const sway: (phase: number, speed: number, t: number) => Vec3;
34
34
  * only swings), then the cards (makeCards()). The store keeps it (hair()), and so does the CPU.
35
35
  */
36
36
  export declare const closeOf: (style: number) => Float32Array<ArrayBufferLike>;
37
+ /**
38
+ * The close hair of `style` in the store (closeOf()). Built for every style when the map loads
39
+ * (createRenderer()): a style takes 50 to 110 ms, a freeze the first time she came near.
40
+ */
41
+ export declare const closeMesh: (style: number) => import("./store").Mesh;
37
42
  /**
38
43
  * Appends the hair `style` in `rgb` on the woman's head joint at `at` turned by `q` (see solve()),
39
44
  * at level of detail `lod` (0 far), its loose end moved by `swing` (sway()). Close (`lod` 3) it is
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.162.2",
5
+ "version": "0.162.4",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"