@korial29/tiny-fps 0.174.0 → 0.176.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.
@@ -1,16 +1,18 @@
1
1
  /** Voices for each body: the man's first, then the woman's. */
2
2
  export declare const VOICES = 2;
3
+ /** The ninja's voice for each body, in Japanese, after the others: the man's, then the woman's. */
4
+ export declare const NINJA = 4;
3
5
  /** Clips each voice says, in the order of KIND. */
4
6
  export declare const LINES = 17;
5
7
  /** The clips of a voice by kind: the first and one past the last. */
6
8
  export declare const KIND: {
7
- /** "Too slow." "Stay down." "Back to the spawn with you." "Is that all you've got?" "Nice try." "Get off my roof." "Who wants some more?" "Sit down." "Lights out." "You run like a tourist." */
9
+ /** "Too slow." "Stay down." "Back to the spawn with you." "Is that all you've got?" "Nice try." "Get off my roof." "Who wants some more?" "Sit down." "Lights out." "You run like a tourist." The ninja: "Osoi! (Too slow!)" "Yowai! (Weak!)" "Baka me! (You fool!)" "Shugyō ga tarin. (Not enough training.)" "Saru mo ki kara ochiru. (Even monkeys fall from trees.)" "Nana korobi ya oki. (Fall seven times, stand up eight.)" "Denaoshite koi! (Come back when you are ready!)" "Zako me! (Small fry!)" "Jūnen hayai! (Ten years too early!)" "I no naka no kawazu. (A frog in a well.)" */
8
10
  readonly TAUNT: readonly [0, 10];
9
- /** "With my bare hands!" "Slapped silly." */
11
+ /** "With my bare hands!" "Slapped silly." The ninja: "Sude de jūbun da. (Bare hands are enough.)" "Ichigeki hissatsu! (One blow, one kill!)" */
10
12
  readonly FISTS: readonly [10, 12];
11
- /** "Clean cut." "Cut down to size." */
13
+ /** "Clean cut." "Cut down to size." The ninja: "Ittō ryōdan! (Cut in two at one stroke!)" "Kirisute gomen! (Leave to cut you down!)" */
12
14
  readonly BLADE: readonly [12, 14];
13
- /** "Aaaaaargh!" "Nooooooo!" "Aaaah!" */
15
+ /** "Aaaaaargh!" "Nooooooo!" "Aaaah!" The ninja: "Guwaaah!" "Gyaaah!" "Munen... (Regret...)" */
14
16
  readonly DEATH: readonly [14, 17];
15
17
  };
16
18
  /** Where each clip lies in the sprite, voice by voice: its start and its length, seconds. */
@@ -258,16 +258,17 @@ export declare const TAIL_LEAP = 10;
258
258
  export declare const PUNCH_HITS: number, PUNCH_STUN: number, PUNCH_MEMORY: number;
259
259
  /**
260
260
  * The xenomorph (the user, 2026-11-15; kit.ts). XENO_HP health. It clings to a wall it faces with
261
- * forward and the sprint held (MODE.CLING, physics.ts; the sprint since the user, 2026-11-16): CLING_SPEED m/s up, down or along it while the wall rises
262
- * CLING_HOLD m over its feet; a jump kicks it off along the look at CLING_LEAP m/s. DASH held on a
263
- * floor or a wall charges a pounce for up to POUNCE_HOLD ticks (PlayerState.charge); let go, it
264
- * leaps POUNCE_MIN to POUNCE_MAX m/s toward the keys held (the look with none), at least POUNCE_PITCH up, and the dash timer
265
- * runs from POUNCE_COOL: the first POUNCE_FLY ticks of it in the air, an enemy it reaches is
266
- * pinned (room.ts): POUNCE_HP health, his flag dropped, a stumble of POUNCE_STUN ticks. An enemy
267
- * whose katana or fists hit it loses ACID_HP.
261
+ * forward and the sprint held (MODE.CLING, physics.ts; the sprint since the user, 2026-11-16):
262
+ * CLING_SPEED m/s up, down or along it (faster than a man runs, the user 2026-11-16: it was slow)
263
+ * while the wall rises CLING_HOLD m over its feet; a jump kicks it off along the look at CLING_LEAP
264
+ * m/s. DASH held on a floor or a wall charges a pounce for up to POUNCE_HOLD ticks
265
+ * (PlayerState.charge); let go, it leaps POUNCE_MIN to POUNCE_MAX m/s toward the keys held (the
266
+ * look with none), at least POUNCE_PITCH up, and the dash timer runs from POUNCE_COOL: the first
267
+ * POUNCE_FLY ticks of it in the air, an enemy it reaches is pinned (room.ts): POUNCE_HP health, his
268
+ * flag dropped, a stumble of POUNCE_STUN ticks. An enemy whose katana or fists hit it loses ACID_HP.
268
269
  */
269
270
  export declare const XENO_HP = 12;
270
- export declare const CLING_SPEED = 4.5;
271
+ export declare const CLING_SPEED = 8;
271
272
  export declare const CLING_FACING = 0.6;
272
273
  export declare const CLING_HOLD = 0.4;
273
274
  export declare const CLING_LEAP = 10;
@@ -275,6 +276,17 @@ export declare const POUNCE_HOLD = 36;
275
276
  export declare const POUNCE_MIN: number, POUNCE_MAX: number, POUNCE_PITCH: number;
276
277
  export declare const POUNCE_COOL: number, POUNCE_FLY: number;
277
278
  export declare const POUNCE_HP: number, POUNCE_STUN: number;
279
+ /**
280
+ * The glory kill (the user, 2026-11-16, after DOOM 2016): an enemy with GLORY_HP health or less, up,
281
+ * flashes in the xenomorph's vision and to one with the katana in hand, who beheads him on E; E (KEY.USE) within GLORY_REACH metres of him and GLORY_ARC
282
+ * radians of its look locks the two (`lock`, `foe`, as a saber lock) for GLORY_TICKS, where neither
283
+ * moves, then it eats his head: he goes down through his armour (LIMB.EATEN), a frag of FRAG.GLORY.
284
+ */
285
+ export declare const GLORY_HP: number, GLORY_REACH: number, GLORY_ARC: number, GLORY_TICKS: number;
286
+ /** The katana's glory kill (room.ts feast()): the speed it throws the beheaded body back at. */
287
+ export declare const GLORY_PUSH = 7;
288
+ /** How much faster than a man the xenomorph runs (the user, 2026-11-16: a little, not twice). */
289
+ export declare const XENO_PACE = 1.25;
278
290
  export declare const ACID_HP = 1;
279
291
  /** Shots the rack loads. */
280
292
  export declare const AMMO_MAX = 60;
@@ -34,6 +34,8 @@ export declare const FRAG: {
34
34
  readonly NADE: 4;
35
35
  readonly VEHICLE: 5;
36
36
  readonly CLAW: 6;
37
+ /** The xenomorph's pounce that ate his head (GLORY_HP). */
38
+ readonly GLORY: 7;
37
39
  };
38
40
  export type ServerText =
39
41
  /**
@@ -183,6 +183,15 @@ export declare class Room {
183
183
  private rail;
184
184
  /** 1 hp of the bolt's drain to `foe`, as his railer deals it; if it puts him down he is disintegrated (`fried`). */
185
185
  private fry;
186
+ /**
187
+ * E pressed by `p`, the xenomorph or one with the katana in hand: the nearest enemy who is up with
188
+ * GLORY_HP or less, within GLORY_REACH and GLORY_ARC of its look where `p` drew him, and in no
189
+ * lock, is glory killed. The katana takes his head at once and throws the body back GLORY_PUSH
190
+ * m/s, the follow-through of a cut across in hand (the user, 2026-11-16). The xenomorph holds
191
+ * him: the two locked (`lock`, `foe`) for GLORY_TICKS, his flag dropped, `p` brought in a metre
192
+ * from him; duel() ends it. True when it happened.
193
+ */
194
+ private feast;
186
195
  /**
187
196
  * A saber lock of `p`, after his input: it ends when a side leads by LOCK_WIN presses (the other
188
197
  * takes LOCK_HP and the katana's shock, thrown along the winner's look), when one has stepped out
@@ -11,3 +11,9 @@ export declare const pouncing: (p: PlayerState) => boolean;
11
11
  * two radii and the reach on the floor plane, and their heights (low in a slide) overlap.
12
12
  */
13
13
  export declare const reaches: (a: PlayerState, b: PlayerState) => boolean;
14
+ /**
15
+ * The enemy the xenomorph `me` would glory kill with E (room.ts feast()), of `foes` as it sees
16
+ * them: the nearest one up, in no lock and not seated, with GLORY_HP health or less, within
17
+ * GLORY_REACH on the floor plane, a body's height above or below, and GLORY_ARC of its look.
18
+ */
19
+ export declare const glory: (me: PlayerState, foes: readonly PlayerState[]) => PlayerState | undefined;
@@ -106,6 +106,8 @@ export declare const LIMB: {
106
106
  readonly ARM_R: 3;
107
107
  readonly LEG_L: 4;
108
108
  readonly LEG_R: 5;
109
+ /** The head a xenomorph's glory kill ate (GLORY_HP): gone, not thrown. */
110
+ readonly EATEN: 6;
109
111
  };
110
112
  /**
111
113
  * How a player went down (bits 5-6 of PlayerState.fell), for the clients' fall: PLAIN as before,
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.174.0",
5
+ "version": "0.176.0",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"