@korial29/tiny-fps 0.109.1 → 0.110.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.
@@ -47,13 +47,24 @@ export declare const rockOf: (s: number, R: number, H: number) => {
47
47
  reach: (u: V3) => number;
48
48
  tops: number[][];
49
49
  };
50
+ /** A pit: PIT_R in radius, cut in a square of half side PIT_S of its crater's terrace, its floor at PIT_FLOOR, 7 m over the kill floor; a flight of PIT_STEPS steps up its east wall. */
51
+ export declare const PIT_R: number, PIT_S: number, PIT_FLOOR: number, PIT_STEPS: number;
50
52
  export declare const LAYOUT: {
51
53
  /** Outside the arena: the boulders (x, z, radius), the dishes, the ramps (the middle of the lip and the unit way up it), the wreck. */
52
54
  rocks: number[][];
53
55
  dishes: number[][];
54
56
  ramps: number[][];
55
57
  wreck: number[];
58
+ /** The pits, both sides: the middle, the terrace's level and the rows (z0, z1, the void's reach west and east). */
59
+ pits: {
60
+ x: number;
61
+ z: number;
62
+ level: number;
63
+ rows: number[][];
64
+ }[];
56
65
  /** Red's boulders along its walls and the field's stones; blue's are their mirrors, drawn by the scenery's flip. */
66
+ /** The craters of the relief, both sides: x, z, radius, depth as a share of it. */
67
+ bowls: number[][];
57
68
  boulders: number[][];
58
69
  /** Red's rocks, in the arena and in the boulder field: blue's are their mirrors. */
59
70
  crags: {
@@ -28,6 +28,8 @@ export interface Relief {
28
28
  /** The definition's pits and the box round them all (none: an empty box). */
29
29
  pits: Quad[];
30
30
  box: Quad;
31
+ /** 1 for each lattice square a pit touches or is next to, by its low node. */
32
+ pitted: Uint8Array;
31
33
  bound: Quad;
32
34
  /** The highest node: a ray above it meets no ground. */
33
35
  top: number;
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.109.1",
5
+ "version": "0.110.0",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"