@korial29/tiny-fps 0.149.1 → 0.150.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.
@@ -35,8 +35,8 @@ export declare const SHIP: {
35
35
  readonly SLIDE: 0.3;
36
36
  readonly RMAX: 0.8;
37
37
  readonly RRESP: 5;
38
- /** The ceiling's height (y), the crater's bound shrunk to EDGE, and the depth over which the warning grows. */
39
- readonly CEIL: 120;
38
+ /** The ceiling's height (y): the top of space; the crater's bound shrunk to EDGE, and the depth over which the warning grows. */
39
+ readonly CEIL: 960;
40
40
  readonly EDGE: 0.88;
41
41
  readonly WARN: 20;
42
42
  /** Past a limit: the push back (m/s² per metre past it) and the brake on the speed out (1/s). */
@@ -95,6 +95,11 @@ export declare const shipHull: (r: Rover) => Body;
95
95
  export declare const wings: (r: Rover) => Body[];
96
96
  /** Every solid of the ship: its hull, then its wings. */
97
97
  export declare const shipBodies: (r: Rover) => Body[];
98
+ /**
99
+ * The height `y` as it is drawn and shown: itself up to the seam, then growing as a power of the
100
+ * height over it, to ORBIT.ALT at ORBIT.TOP. Space is small to fly through and looks high.
101
+ */
102
+ export declare const altitude: (y: number) => number;
98
103
  /**
99
104
  * How near the ship is to its limits, each 0 inside and 1 at the limit (more past it): the ceiling
100
105
  * and the edge of the crater. For the HUD.
@@ -79,6 +79,8 @@ export interface WorldDef {
79
79
  ships?: Spawn[];
80
80
  /** The automatic doors (doors.ts). Absent: none. */
81
81
  doors?: Door[];
82
+ /** The height of the edge of space (ORBIT.SEAM): a shot that crosses it either way bursts there. Absent: none. */
83
+ seam?: number;
82
84
  }
83
85
  /** A world ready for physics and drawing: the definition and a grid of brushes on the floor plane. */
84
86
  export interface World {
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.149.1",
5
+ "version": "0.150.0",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"