@korial29/tiny-fps 0.228.1 → 0.229.1
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/README.md +39 -11
- package/dist/assets/room-BUfNl2LM.js +12239 -0
- package/dist/cast-opus-C6oSp1pb.js +1 -0
- package/dist/index.js +5 -5
- package/dist/local.js +1 -1
- package/dist/opus-00JxPO40.js +1 -0
- package/dist/room.js +1 -0
- package/dist/server.js +1 -12177
- package/dist/types/client/index.d.ts +6 -0
- package/dist/types/client/smoke.d.ts +6 -8
- package/dist/types/client/voice/cast-opus.d.ts +2 -2
- package/dist/types/client/voice/opus.d.ts +2 -2
- package/dist/types/room/index.d.ts +4 -0
- 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/types.d.ts +5 -0
- package/dist/types/shared/world.d.ts +2 -0
- package/package.json +5 -1
- package/dist/cast-opus-C8YPQ4KQ.js +0 -1
- package/dist/opus-C_4ZiPUd.js +0 -1
|
@@ -18,6 +18,12 @@ export interface TinyFpsOptions {
|
|
|
18
18
|
* Start is pressed, with the character picked there. Without it, the room is joined at once.
|
|
19
19
|
*/
|
|
20
20
|
cast?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* false: no spoken voice, neither the announcer's nor the players' (taunts, cries, radio). Their
|
|
23
|
+
* sprites (about 190 KB of Opus, or 465 KB of MP3) are then never downloaded. The synth's sounds,
|
|
24
|
+
* the music and the announcer's words on screen stay.
|
|
25
|
+
*/
|
|
26
|
+
voices?: boolean;
|
|
21
27
|
}
|
|
22
28
|
/**
|
|
23
29
|
* quit: the player left from the pause menu (Escape, then Quit); the page decides where he goes.
|
|
@@ -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;
|