@korial29/tiny-fps 0.183.0 → 0.184.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.
@@ -26,6 +26,8 @@ export declare const GOAL: string[];
26
26
  export declare const CONTROLS: [group: string, rows: [keys: string, does: string, codes?: string][]][];
27
27
  /** Seconds the way out is shown after sitting down. */
28
28
  export declare const OUT_HINT = 4;
29
+ /** The prompt of a glory kill on offer, drawn pulsing. */
30
+ export declare const GLORY_ACT = "glory kill";
29
31
  /**
30
32
  * What E does for a player on foot: 'drive' near a rover whose wheel is free, 'ride' when only the
31
33
  * seat beside it is, or when he carries a flag (a carrier does not drive), 'fly' near a ship that
@@ -133,7 +135,7 @@ export interface Hud {
133
135
  */
134
136
  comm(name: string, team: number, s: number, face?: CanvasImageSource): void;
135
137
  /**
136
- * The rover: `act` is what E does now ('drive', 'ride', 'get out'; '' hides the prompt), and
138
+ * The rover: `act` is what E does now ('drive', 'ride', 'get out', GLORY_ACT which pulses; '' hides the prompt), and
137
139
  * `speed` the km/h shown at the wheel, where the gun and the crosshair then hide; undefined off it.
138
140
  */
139
141
  rover(act: string, speed?: number): void;
@@ -149,6 +149,13 @@ export declare const LOOPED: number[];
149
149
  * noise), silent at both ends (no click).
150
150
  */
151
151
  export declare const render: (id: number, layers?: Voice[][]) => Float32Array;
152
+ /**
153
+ * The death cry of a human (the user, 2026-11-16: "a real scream", then lower and shorter), a
154
+ * source-filter voice: a saw for the vocal folds, its pitch thrown up to a strained 380 Hz, held
155
+ * shaking a quarter of a second, then falling away an octave and a half; every other period louder (the period doubling of a torn throat, the rasp), breath riding
156
+ * each period; four vowel formants gliding from a wide "aah" to a dying "uh", then a soft clip.
157
+ */
158
+ export declare const scream: () => Float32Array;
152
159
  /**
153
160
  * A sound made loopable: the last `x` samples are cross-faded into the first, the length drops by
154
161
  * `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.183.0",
5
+ "version": "0.184.0",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"