@korial29/tiny-fps 0.105.0 → 0.106.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.
@@ -5,8 +5,8 @@ export declare const UP: Vec3[];
5
5
  export declare const cross: (u: Vec3, v: Vec3) => Vec3;
6
6
  /** A convex polygon of one colour, wound so that it faces away from `away` when given. */
7
7
  export declare const face: (o: number[], p: Vec3[], rgb: number[], away?: Vec3) => void;
8
- /** A box of one colour between two corners, its faces outward. */
9
- export declare const box: (o: number[], lo: Vec3, hi: Vec3, rgb: number[]) => void;
8
+ /** A box of one colour between two corners, its faces outward, less those whose bit is in `skip`: 1 and 2 its low and high z, 4 and 8 y, 16 and 32 x. */
9
+ export declare const box: (o: number[], lo: Vec3, hi: Vec3, rgb: number[], skip?: number) => void;
10
10
  /** Carries a model's vertices to (x, y, z), turned by `yaw` about y. */
11
11
  export declare const put: (o: number[], v: number[], [x, y, z]: Vec3, yaw?: number) => void;
12
12
  /** What `make` adds to `o` glows, k times its colour. */
@@ -20,6 +20,8 @@ export declare const LINTELS: Brush[];
20
20
  * three axes: the shader's relief needs a normal out of the face's plane.
21
21
  */
22
22
  export declare const INDOORS: number[];
23
+ /** The openings of the drawn drum, as angles about the centre and a height: the door, and the tubes' boxes where they come through. */
24
+ export declare const GAPS: number[][];
23
25
  /** Red's half of the base: the dome, its hall, the tubes and the modules, a metal floor in the last two, a lit frame in each of their doorways. */
24
26
  export declare const moonbase: (o: number[]) => void;
25
27
  /**
@@ -0,0 +1,10 @@
1
+ /** How high the beacon of the dome's aerial is. */
2
+ export declare const TIP = 25.4;
3
+ /**
4
+ * The portholes: the middle (x, y, z), the way out (x, z), the radius, and whether the wall is one
5
+ * to see through (a module's: it gets a pane inside too). On the drum over every other window but
6
+ * at its openings, two on each end wall of a module but where a tube comes in.
7
+ */
8
+ export declare const PORTHOLES: number[][];
9
+ /** The outside of red's half of the base, on what moonbase() draws. */
10
+ export declare const hull: (o: number[]) => void;
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.105.0",
5
+ "version": "0.106.0",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"