@korial29/tiny-fps 0.163.0 → 0.164.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.
|
@@ -54,5 +54,7 @@ drawn?: (id: number) => Vec3 | undefined,
|
|
|
54
54
|
/** The pitch of a player's voice (voiceOf()). */
|
|
55
55
|
voice?: (id: number) => number,
|
|
56
56
|
/** A player's own voice in the players' sprite (speakerOf()). */
|
|
57
|
-
speaker?: (id: number) => number
|
|
57
|
+
speaker?: (id: number) => number,
|
|
58
|
+
/** Whether a player is a xenomorph: its own cries, its acid, its hiss and shriek at a pounce. */
|
|
59
|
+
beast?: (id: number) => boolean) => Combat;
|
|
58
60
|
export {};
|
|
@@ -26,4 +26,6 @@ export interface Foley {
|
|
|
26
26
|
export declare const BREATH: number[];
|
|
27
27
|
/** The rover: a sideways slide from this speed (m/s) skids, and is at its loudest this much over it. */
|
|
28
28
|
export declare const SKID_FROM = 2.5;
|
|
29
|
-
export declare const createFoley: (a: Audio
|
|
29
|
+
export declare const createFoley: (a: Audio,
|
|
30
|
+
/** Whether a player is a xenomorph: chitin feet that click, and a shriek for its pounce. */
|
|
31
|
+
beast?: (id: number) => boolean) => Foley;
|
|
@@ -118,6 +118,21 @@ export declare const SOUND: {
|
|
|
118
118
|
/** The orbital station's mission: the alarm of a strike armed, and the strike's lasers from the sky. */
|
|
119
119
|
readonly ALARM: 58;
|
|
120
120
|
readonly STRIKE: 59;
|
|
121
|
+
/**
|
|
122
|
+
* The xenomorph's own (the user, 2026-11-16: not a runner's): a hiss with a growl under it as it
|
|
123
|
+
* charges a pounce, a shriek as it leaps, its claws' swipe and the whip of its tail, a screech of
|
|
124
|
+
* pain and a big roar going down, the light tick of its claws at each step, the sizzle of its acid
|
|
125
|
+
* blood, and a roar after a kill.
|
|
126
|
+
*/
|
|
127
|
+
readonly XENO_HISS: 60;
|
|
128
|
+
readonly SHRIEK: 61;
|
|
129
|
+
readonly CLAW: 62;
|
|
130
|
+
readonly STING: 63;
|
|
131
|
+
readonly XENO_PAIN: 64;
|
|
132
|
+
readonly XENO_DEATH: 65;
|
|
133
|
+
readonly CHITIN: 66;
|
|
134
|
+
readonly ACID: 67;
|
|
135
|
+
readonly ROAR: 68;
|
|
121
136
|
};
|
|
122
137
|
/**
|
|
123
138
|
* The sounds of the game: one entry per sound, its voices layered, in SOUND order. A low-passed
|
|
@@ -40,8 +40,10 @@ export interface Taunts {
|
|
|
40
40
|
*/
|
|
41
41
|
frame(now: number, where: (id: number) => Vec3 | undefined): Said[];
|
|
42
42
|
}
|
|
43
|
-
export declare const createTaunts: (audio: Pick<Audio, "speak"
|
|
43
|
+
export declare const createTaunts: (audio: Pick<Audio, "speak"> & Partial<Pick<Audio, "play">>,
|
|
44
44
|
/** A player's build (BODY) from the roster. */
|
|
45
45
|
body: (id: number) => number | undefined,
|
|
46
46
|
/** A player's team from the roster. */
|
|
47
|
-
team?: (id: number) => number | undefined
|
|
47
|
+
team?: (id: number) => number | undefined,
|
|
48
|
+
/** Whether a player is a xenomorph: it roars (ROAR), with no words and no radio. */
|
|
49
|
+
beast?: (id: number) => boolean) => Taunts;
|
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.164.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|