@korial29/tiny-fps 0.143.0 → 0.144.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.
- package/dist/index.js +15 -15
- package/dist/types/client/audio.d.ts +1 -1
- package/dist/types/client/sfx.d.ts +9 -0
- package/package.json +1 -1
|
@@ -37,7 +37,7 @@ export interface Audio {
|
|
|
37
37
|
* then MP3 where the browser cannot decode the first (older Safari).
|
|
38
38
|
*/
|
|
39
39
|
export declare const SPRITES: (() => Promise<string>)[];
|
|
40
|
-
export declare const createAudio: (layers?: Voice[][], sprites?: (() => Promise<string>)[]) => Audio;
|
|
40
|
+
export declare const createAudio: (layers?: Voice[][], sprites?: (() => Promise<string>)[], song?: () => Float32Array) => Audio;
|
|
41
41
|
/** The mute choice of the last visit. Storage throws when blocked: no memory then. */
|
|
42
42
|
export declare const savedMute: () => boolean;
|
|
43
43
|
/** Flips mute, remembers it, and returns the new state. */
|
|
@@ -137,3 +137,12 @@ export declare const MUSIC_RATE: number;
|
|
|
137
137
|
* under the sounds.
|
|
138
138
|
*/
|
|
139
139
|
export declare const music: () => Float32Array;
|
|
140
|
+
/**
|
|
141
|
+
* The moon's music, 8-bit: thirty-two bars in D minor at 126 bpm, a pulse lead, a fast arpeggio
|
|
142
|
+
* in a thin pulse, an octave bass on the triangle and noise drums. The second sixteen bars play
|
|
143
|
+
* the lead thinner with an echo and the arpeggio an octave up. Like music(): mono at MUSIC_RATE,
|
|
144
|
+
* deterministic, its end joining its start.
|
|
145
|
+
*/
|
|
146
|
+
export declare const moon: () => Float32Array;
|
|
147
|
+
/** The music of each map by its key; the others play music(). */
|
|
148
|
+
export declare const SONGS: Record<string, () => Float32Array>;
|
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.
|
|
5
|
+
"version": "0.144.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|