@korial29/tiny-fps 0.229.0 → 0.229.2
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.
- package/dist/assets/{room-mXBznA8G.js → room-DUpusYYH.js} +62 -1
- package/dist/index.js +5 -5
- package/dist/local.js +1 -1
- package/dist/room.js +1 -1
- package/dist/server.js +1 -1
- package/dist/types/client/smoke.d.ts +6 -8
- package/dist/types/shared/beach.d.ts +11 -0
- package/dist/types/shared/constants.d.ts +5 -0
- package/dist/types/shared/room.d.ts +2 -0
- package/dist/types/shared/world.d.ts +2 -0
- package/package.json +1 -1
package/dist/room.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as MAPS, r as RULES, t as Room } from "./assets/room-
|
|
1
|
+
export { n as MAPS, r as RULES, t as Room } from "./assets/room-DUpusYYH.js";
|
package/dist/server.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { FIRES } from '../shared/beach';
|
|
1
2
|
import type { WorldDef } from '../shared/world';
|
|
3
|
+
export { FIRES };
|
|
2
4
|
/**
|
|
3
5
|
* The smoke's layer: under -2.5 it casts no shadow, and the shader draws all of it. c.x is how far
|
|
4
6
|
* up its column a point is (0 its foot, 1 its top; up its flame for a fire), c.y a number of its
|
|
@@ -7,13 +9,6 @@ import type { WorldDef } from '../shared/world';
|
|
|
7
9
|
export declare const SMOKE = -6;
|
|
8
10
|
/** A ball's bands and slices: its outline fades to nothing in the shader, so few are enough. */
|
|
9
11
|
export declare const BANDS: number, SLICES: number;
|
|
10
|
-
/**
|
|
11
|
-
* Where it burns: the foot of each column (x, y, z), how high it rises, and its radius at the
|
|
12
|
-
* foot and at the top. On the rear of each nacelle's back and on the far end of each engine in
|
|
13
|
-
* the lagoon, both halves; and high against each of the hull's four broken ends, thinner, so the way
|
|
14
|
-
* through the gaps and over the back stays in sight.
|
|
15
|
-
*/
|
|
16
|
-
export declare const FIRES: number[][];
|
|
17
12
|
/**
|
|
18
13
|
* The smoke's and the fires' vertices, in the renderer's format: drawn after the sky, blended
|
|
19
14
|
* (render.ts). A column's balls grow as they rise and lean inland, each overlapping the last;
|
|
@@ -27,6 +22,9 @@ export declare const plumes: (def: WorldDef) => number[];
|
|
|
27
22
|
* is a noise in the world, the same through every ball, that climbs and drifts with the wind. The
|
|
28
23
|
* smoke thins as it rises, is lit on the sun's side and from under by its fire, and fades out
|
|
29
24
|
* within three metres of the eye. A flame is the same noise, faster, cut ever narrower up its
|
|
30
|
-
* height (C.x), white-yellow at its heart and bright enough to bloom.
|
|
25
|
+
* height (C.x), white-yellow at its heart and bright enough to bloom. C.x is clamped to [0, 1]:
|
|
26
|
+
* where a small ball's face only grazes a pixel's samples it is extrapolated far out, and
|
|
27
|
+
* exp(-h * 22) overflowed to infinity; the NaN it made came out as white squares in the bloom
|
|
28
|
+
* (the user, 2026-11-25), as the fog's did on Tranquility (render.ts).
|
|
31
29
|
*/
|
|
32
30
|
export declare const PLUME: (fog: string) => string;
|
|
@@ -72,6 +72,17 @@ export declare const WING: {
|
|
|
72
72
|
* One on the sand by the wing, run through; one in the lagoon off the tail's end, stood on.
|
|
73
73
|
*/
|
|
74
74
|
export declare const ENGINES: number[][];
|
|
75
|
+
/**
|
|
76
|
+
* Where it burns, both halves: the foot of each column of smoke (x, y, z), how high it rises, and
|
|
77
|
+
* its radius at the foot and at the top (client/smoke.ts draws them). Their flames burn (FLAME), so
|
|
78
|
+
* none stands on a way across (the user, 2026-11-25): on the sand east of the rear of each nacelle,
|
|
79
|
+
* clear of its roof and of the way through it; on the south-west corner of each engine in the
|
|
80
|
+
* lagoon, clear of the jumps over its north half (routes.ts LAGOON); and high against each of the
|
|
81
|
+
* hull's four broken ends, thinner, over the heads of those who cross the gaps.
|
|
82
|
+
*/
|
|
83
|
+
export declare const FIRES: number[][];
|
|
84
|
+
/** Metres the flames at a fire's foot reach out from its middle and up from it: smoke.ts stands three balls of 0.55 m within 0.6 of the foot's radius, up to 2.3 m. */
|
|
85
|
+
export declare const FLAME: number[];
|
|
75
86
|
/** Red's camp: the escape pod its flag stands by (x, z, radius). */
|
|
76
87
|
export declare const POD: number[];
|
|
77
88
|
/** The camp's ground, level. */
|
|
@@ -538,6 +538,11 @@ export declare const RING_COST: number, RING_R: number, RING_H: number;
|
|
|
538
538
|
export declare const RAIL_TICKS = 180;
|
|
539
539
|
export declare const RAIL_DRAIN = 60;
|
|
540
540
|
export declare const SLOW_SPEED = 3;
|
|
541
|
+
/**
|
|
542
|
+
* Landfall's fires (WorldDef.fires, the user, 2026-11-25): a body in the flames takes FIRE_HP at
|
|
543
|
+
* once, then again each FIRE_TICKS while it stays in them. Nobody's hit, as a hard landing.
|
|
544
|
+
*/
|
|
545
|
+
export declare const FIRE_HP: number, FIRE_TICKS: number;
|
|
541
546
|
/**
|
|
542
547
|
* The laser rifle (the user, 2026-11-08), held in both hands, after Halo's assault rifle: taken at
|
|
543
548
|
* the team's fourth rack with RIFLE_MAX rounds, it fires while FIRE is held, one round each
|
|
@@ -208,6 +208,8 @@ export declare class Room {
|
|
|
208
208
|
*/
|
|
209
209
|
private ring;
|
|
210
210
|
/** 1 hp of the bolt's drain to `foe`, as his railer deals it; if it puts him down he is disintegrated (`fried`). */
|
|
211
|
+
/** The map's flames (WorldDef.fires) burn a body in them: FIRE_HP on the first tick, then each FIRE_TICKS, nobody's hit. */
|
|
212
|
+
private scorch;
|
|
211
213
|
private fry;
|
|
212
214
|
/**
|
|
213
215
|
* E pressed by `p`: the nearest enemy who is up, within GLORY_ARC of its look where `p` drew him,
|
|
@@ -82,6 +82,8 @@ export interface WorldDef {
|
|
|
82
82
|
doors?: Door[];
|
|
83
83
|
/** The height of the edge of space (ORBIT.SEAM): a shot that crosses it either way bursts there. Absent: none. */
|
|
84
84
|
seam?: number;
|
|
85
|
+
/** Flames that burn whoever's body is in them (FIRE_HP each FIRE_TICKS): the foot's middle x, y, z, their radius and height, a cylinder. Absent: none. */
|
|
86
|
+
fires?: [x: number, y: number, z: number, r: number, h: number][];
|
|
85
87
|
/** The orbital station's command post and inside (station.ts), its brushes among the others. Absent: none. */
|
|
86
88
|
station?: StationDef;
|
|
87
89
|
}
|
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.229.
|
|
5
|
+
"version": "0.229.2",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|