@korial29/tiny-fps 0.206.0 → 0.207.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 +2 -2
- package/dist/types/client/hud.d.ts +5 -2
- package/dist/types/client/sfx.d.ts +16 -0
- package/package.json +1 -1
|
@@ -80,8 +80,11 @@ export interface Hud {
|
|
|
80
80
|
marks(list: Mark[]): void;
|
|
81
81
|
/** The orbital station's mission line (mission.ts), `hot` when urgent; none hides it. */
|
|
82
82
|
mission(text?: string, hot?: boolean): void;
|
|
83
|
-
/**
|
|
84
|
-
|
|
83
|
+
/**
|
|
84
|
+
* The Hunter's current local vision mode, `text` empty for the plain view; with `hint`, the V key
|
|
85
|
+
* is shown with it, blinking in the plain view.
|
|
86
|
+
*/
|
|
87
|
+
hunterVision(text?: string, scoped?: boolean, hint?: boolean): void;
|
|
85
88
|
/** The Predator-style shoulder-laser sight, at a screen point and progressing to a lock. */
|
|
86
89
|
hunterAim(at?: [number, number], progress?: number): void;
|
|
87
90
|
/** The dark rim of a space helmet's visor around the screen: on while the own player wears one, off otherwise. */
|
|
@@ -166,6 +166,13 @@ export declare const SOUND: {
|
|
|
166
166
|
readonly HUNTER_LASER: 86;
|
|
167
167
|
/** The harpoon's next bolt racked in from behind: a servo's whine, the slide, the lock home. */
|
|
168
168
|
readonly HARPOON_RELOAD: 87;
|
|
169
|
+
/**
|
|
170
|
+
* The Hunter's views (the user, 2026-11-23): the flash of a view switched with V, then, while a
|
|
171
|
+
* special one is on, a heart beating and a radio that barely holds its station, both looped.
|
|
172
|
+
*/
|
|
173
|
+
readonly HUNTER_FLASH: 88;
|
|
174
|
+
readonly HEARTBEAT: 89;
|
|
175
|
+
readonly STATIC: 90;
|
|
169
176
|
};
|
|
170
177
|
/**
|
|
171
178
|
* The sounds of the game: one entry per sound, its voices layered, in SOUND order. A low-passed
|
|
@@ -213,6 +220,15 @@ export type Cry = {
|
|
|
213
220
|
};
|
|
214
221
|
/** Renders a Cry as mono samples at RATE, peaking at its `vol`. */
|
|
215
222
|
export declare const scream: (c?: Cry) => Float32Array;
|
|
223
|
+
/**
|
|
224
|
+
* A radio that barely holds its station, under the Hunter's special views (the user, 2026-11-23:
|
|
225
|
+
* close to the film's, subtle, and no high tone over and over but a deep, unsettling and slightly
|
|
226
|
+
* distorted one coming back slowly, then rarer and slower still): once a loop a low growl swells in
|
|
227
|
+
* and sinks away, overdriven,
|
|
228
|
+
* over a faint hiss that fades and drops out, a crackle now and then and a slow tuning whistle.
|
|
229
|
+
* 6.1 s, for a 6 s loop (seam): the swell's envelope repeats every 6 s, so the seam joins it.
|
|
230
|
+
*/
|
|
231
|
+
export declare const radio: () => Float32Array;
|
|
216
232
|
/**
|
|
217
233
|
* A sound made loopable: the last `x` samples are cross-faded into the first, the length drops by
|
|
218
234
|
* `x`, and the end joins the start. For a stationary sound (a loop's voice is held at full
|
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.207.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|