@korial29/tiny-fps 0.185.1 → 0.186.1
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 +25 -25
- package/dist/local.js +1 -1
- package/dist/server.js +31 -21
- package/dist/types/client/feast.d.ts +75 -0
- package/dist/types/client/gloryfx.d.ts +7 -0
- package/dist/types/client/hud.d.ts +1 -1
- package/dist/types/client/limbs.d.ts +1 -1
- package/dist/types/client/sfx.d.ts +2 -0
- package/dist/types/client/soldier.d.ts +9 -0
- package/dist/types/shared/constants.d.ts +7 -2
- package/dist/types/shared/room.d.ts +6 -6
- package/dist/types/shared/tackle.d.ts +3 -2
- package/dist/types/shared/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -195,7 +195,8 @@ var XENO_DASH = 1.4;
|
|
|
195
195
|
var [POUNCE_HP, POUNCE_STUN] = [2, 60];
|
|
196
196
|
/**
|
|
197
197
|
* The glory kill (the user, 2026-11-16, after DOOM 2016): an enemy with GLORY_HP health or less, up,
|
|
198
|
-
* flashes to
|
|
198
|
+
* flashes to anyone but the xenomorph, who executes him on E within GLORY_REACH metres (the user,
|
|
199
|
+
* 2026-11-17: the fists for everyone, the katana with it in hand; EXEC). The
|
|
199
200
|
* xenomorph's takes any enemy up, with no flash (the user, 2026-11-16): E within GLORY_REACH metres
|
|
200
201
|
* of him too (the user, 2026-11-17: only very close; 8 m before), in sight, and GLORY_ARC radians
|
|
201
202
|
* of its look locks the two (`lock`, `foe`, as a saber
|
|
@@ -215,11 +216,15 @@ var [GLORY_HP, GLORY_REACH, GLORY_ARC, GLORY_TICKS] = [
|
|
|
215
216
|
* to EXEC.REACH metres, over GLORY_DASH ticks, cuts down (CUT.SLASH) at EXEC.CUTS[0] and drops him
|
|
216
217
|
* to his knees, then spins into a cut across (CUT.RIGHT) at EXEC.CUTS[1], whose strike is the
|
|
217
218
|
* lock's last tick: his head goes (LIMB.HEAD) and the body, still on its knee, tips over where it
|
|
218
|
-
* is (feast.ts topple()).
|
|
219
|
+
* is (feast.ts topple()). Without the katana in hand it is the fists' (the user, 2026-11-17): the
|
|
220
|
+
* same lock, dashing to EXEC.FIST metres, a punch in the belly on the cut down's strike drops him on
|
|
221
|
+
* his knee the same, and a punch down on his head on the lock's last tick bursts it (LIMB.BURST).
|
|
222
|
+
* The fists strike nothing on the host: their blows are drawn (feast.ts pummel()).
|
|
219
223
|
*/
|
|
220
224
|
var EXEC = {
|
|
221
225
|
TICKS: 88,
|
|
222
226
|
REACH: 1.3,
|
|
227
|
+
FIST: .7,
|
|
223
228
|
CUTS: [20, 74],
|
|
224
229
|
KILLER: 1,
|
|
225
230
|
VICTIM: 2
|
|
@@ -636,7 +641,9 @@ var LIMB = {
|
|
|
636
641
|
LEG_L: 4,
|
|
637
642
|
LEG_R: 5,
|
|
638
643
|
/** The head a xenomorph's glory kill ate (GLORY_HP): gone, not thrown. */
|
|
639
|
-
EATEN: 6
|
|
644
|
+
EATEN: 6,
|
|
645
|
+
/** The head the fists' glory kill burst with its punch down (EXEC): gone in blood, not thrown. */
|
|
646
|
+
BURST: 7
|
|
640
647
|
};
|
|
641
648
|
/**
|
|
642
649
|
* How a player went down (bits 5-6 of PlayerState.fell), for the clients' fall: PLAIN as before,
|
|
@@ -6329,8 +6336,9 @@ var reaches = (a, b) => Math.hypot(a.x - b.x, a.z - b.z) < 1.1 && a.y < b.y + he
|
|
|
6329
6336
|
/**
|
|
6330
6337
|
* The enemy `me` would glory kill with E (room.ts feast()), of `foes` as it sees them: the nearest
|
|
6331
6338
|
* one up, in no lock and not seated, within GLORY_REACH on the floor plane, a body's height above or
|
|
6332
|
-
* below and GLORY_ARC of its look.
|
|
6333
|
-
* xenomorph's in sight through the world `w`, at any health (the user,
|
|
6339
|
+
* below and GLORY_ARC of its look. An execution, the katana's or the fists' (`w` undefined), with
|
|
6340
|
+
* GLORY_HP health or less; the xenomorph's in sight through the world `w`, at any health (the user,
|
|
6341
|
+
* 2026-11-16).
|
|
6334
6342
|
*/
|
|
6335
6343
|
var glory = (me, foes, w) => {
|
|
6336
6344
|
const [fx, fz] = forward(me.yaw);
|
|
@@ -6647,20 +6655,21 @@ var duel = (p, i) => {
|
|
|
6647
6655
|
return STRIKE.NONE;
|
|
6648
6656
|
};
|
|
6649
6657
|
/**
|
|
6650
|
-
* A step of a
|
|
6651
|
-
* their ticks of the lock (EXEC.CUTS: a
|
|
6652
|
-
*
|
|
6658
|
+
* A step of a glory kill's execution (EXEC), whatever the keys: with the katana in hand at its start
|
|
6659
|
+
* (`wield`, kept through it) the swordsman's two cuts start on their ticks of the lock (EXEC.CUTS: a
|
|
6660
|
+
* cut down, then one across whose strike is the lock's last tick), and strike no one; the fists'
|
|
6661
|
+
* start no swing (their blows are drawn). His victim holds no weapon up. Predicted, as a cut is.
|
|
6653
6662
|
*/
|
|
6654
6663
|
var execute = (p) => {
|
|
6655
6664
|
p.lock = Math.max(1, p.lock - 1);
|
|
6656
6665
|
p.away = p.pushes = 0;
|
|
6657
6666
|
const e = EXEC.TICKS - p.lock;
|
|
6658
6667
|
const at = EXEC.CUTS.indexOf(e);
|
|
6659
|
-
const
|
|
6660
|
-
p.cut =
|
|
6661
|
-
p.swing =
|
|
6668
|
+
const blade = p.exec === EXEC.KILLER && !!p.wield;
|
|
6669
|
+
p.cut = blade && at >= 0 ? [CUT.SLASH, CUT.RIGHT][at] : p.cut;
|
|
6670
|
+
p.swing = blade && at >= 0 ? CUTS[p.cut].ticks : Math.max(0, (p.swing ?? 0) - 1);
|
|
6662
6671
|
[p.wield, p.charge, p.heavy] = [
|
|
6663
|
-
|
|
6672
|
+
blade,
|
|
6664
6673
|
0,
|
|
6665
6674
|
false
|
|
6666
6675
|
];
|
|
@@ -9508,18 +9517,18 @@ var Room = class {
|
|
|
9508
9517
|
foe.state.fried = this.shot(foe, 1, foe.railer, foe.state.x - r.x, foe.state.z - r.z, FRAG.RAIL);
|
|
9509
9518
|
}
|
|
9510
9519
|
/**
|
|
9511
|
-
* E pressed by `p
|
|
9512
|
-
*
|
|
9513
|
-
*
|
|
9514
|
-
* health (the user, 2026-11-16). The two are locked (`lock`, `foe`),
|
|
9520
|
+
* E pressed by `p`: the nearest enemy who is up, within GLORY_ARC of its look where `p` drew him,
|
|
9521
|
+
* and in no lock, is glory killed (glory()): within GLORY_REACH, with GLORY_HP or less, the
|
|
9522
|
+
* xenomorph's in sight, at any health (the user, 2026-11-16). The two are locked (`lock`, `foe`),
|
|
9515
9523
|
* his flag dropped, `p` dashing in front of him: the xenomorph to a metre for GLORY_TICKS (the
|
|
9516
|
-
* user, 2026-11-16),
|
|
9517
|
-
*
|
|
9524
|
+
* user, 2026-11-16), anyone else for an execution of EXEC.TICKS (`exec`, the user 2026-11-17: no
|
|
9525
|
+
* longer at once), to EXEC.REACH with the katana in hand, else to EXEC.FIST with the fists (the
|
|
9526
|
+
* user, 2026-11-17: a glory kill for everyone); duel() ends it. True when it happened.
|
|
9518
9527
|
*/
|
|
9519
9528
|
feast(p, view) {
|
|
9520
9529
|
const me = p.state;
|
|
9521
9530
|
const xeno = this.kit(p).xeno;
|
|
9522
|
-
if (
|
|
9531
|
+
if (me.down || me.stun || me.lock || me.mode === MODE.RIDE) return false;
|
|
9523
9532
|
const seen = glory(me, this.enemies(p, view).flatMap((s) => {
|
|
9524
9533
|
const q = this.players().find((o) => o.info.id === s.id);
|
|
9525
9534
|
const { hp, down, lock, mode } = q?.state ?? s;
|
|
@@ -9536,7 +9545,7 @@ var Room = class {
|
|
|
9536
9545
|
const [dx, dz] = [seen.x - me.x, seen.z - me.z];
|
|
9537
9546
|
const d = Math.hypot(dx, dz) || 1;
|
|
9538
9547
|
this.drop(foe.info.id);
|
|
9539
|
-
const [lock, near] = xeno ? [GLORY_TICKS, 1] : [EXEC.TICKS, EXEC.REACH];
|
|
9548
|
+
const [lock, near] = xeno ? [GLORY_TICKS, 1] : [EXEC.TICKS, me.wield ? EXEC.REACH : EXEC.FIST];
|
|
9540
9549
|
for (const [a, b, exec] of [[
|
|
9541
9550
|
p,
|
|
9542
9551
|
foe,
|
|
@@ -9585,13 +9594,14 @@ var Room = class {
|
|
|
9585
9594
|
if (x !== y || exec) {
|
|
9586
9595
|
if (q.lock > 1 && o.state.lock > 1) return;
|
|
9587
9596
|
const [eater, prey] = (exec ? q.exec === EXEC.KILLER : x) ? [p, o] : [o, p];
|
|
9597
|
+
const head = !exec ? LIMB.EATEN : eater.state.wield ? LIMB.HEAD : LIMB.BURST;
|
|
9588
9598
|
Object.assign(q, FREE);
|
|
9589
9599
|
Object.assign(o.state, FREE);
|
|
9590
9600
|
eater.state.hits = eater.state.hits + 1 & 255;
|
|
9591
9601
|
const [dx, dz] = [prey.state.x - eater.state.x, prey.state.z - eater.state.z];
|
|
9592
9602
|
const d = Math.hypot(dx, dz) || 1;
|
|
9593
9603
|
this.harm(prey, Infinity, eater, FRAG.GLORY, felled(FALL$1.STRUCK, dx / d, dz / d));
|
|
9594
|
-
prey.state.lost =
|
|
9604
|
+
prey.state.lost = head;
|
|
9595
9605
|
if (!exec) eater.state.hp = Math.min(eater.state.hp + 1, this.kit(eater).hp);
|
|
9596
9606
|
return;
|
|
9597
9607
|
}
|
|
@@ -154,3 +154,78 @@ export declare const intent: (pose: Pose, prey: Vec3, w: number) => Pose;
|
|
|
154
154
|
* back, its feet where they were, its back bent forward and its head kept up, its claws ahead and low.
|
|
155
155
|
*/
|
|
156
156
|
export declare const crouch: (pose: Pose, w: number) => Pose;
|
|
157
|
+
/**
|
|
158
|
+
* The fists' execution as drawn (EXEC, the user 2026-11-17: a glory kill for everyone, the victim's
|
|
159
|
+
* kneel the katana's, the killer's blows his own), in ticks of the lock: turned to his victim over
|
|
160
|
+
* TURN, the right fist drawn back low by the hip (GUT: cocked, still cocked), driven up into his
|
|
161
|
+
* belly on the strike of the katana's cut down, so the victim kneels on it (home), buried there as he
|
|
162
|
+
* folds (held), back to the guard (back); the left hand on the back of his bowed head, holding it
|
|
163
|
+
* (GRAB: from, on); the right fist raised high over the shoulder (SMASH: from, raised), held there a
|
|
164
|
+
* beat, brought down onto his head on the lock's last tick, as it bursts. Past the lock, the punch
|
|
165
|
+
* follows through and the guard comes back (AFTER: ticks of each). The body turns behind the blows:
|
|
166
|
+
* the chest's TWIST, the trunk's BEND forward (radians) and the hips' SINK (metres) at the gut punch
|
|
167
|
+
* and at the smash, the trunk leaning back RISE as the fist is raised. Places are across, ahead and
|
|
168
|
+
* up from the killer's feet: the GUARD by the chin (right, left), the fist COCKED by the hip, RAISED
|
|
169
|
+
* over the shoulder and through, PAST, after the head; on the victim: the fist on his belly, ahead of
|
|
170
|
+
* his spine (BELLY), and on the front of his head (FACE: toward the killer, up from its joint); the
|
|
171
|
+
* left hand on the back of it (NAPE).
|
|
172
|
+
*/
|
|
173
|
+
export declare const PUMMEL: {
|
|
174
|
+
readonly TURN: 6;
|
|
175
|
+
readonly GUT: readonly [24, 31, number, 44, 54];
|
|
176
|
+
readonly GRAB: readonly [50, 60];
|
|
177
|
+
readonly SMASH: readonly [58, 74, 80, 88];
|
|
178
|
+
readonly AFTER: readonly [8, 24];
|
|
179
|
+
readonly TWIST: readonly [0.45, 0.55];
|
|
180
|
+
readonly BEND: readonly [0.35, 0.45];
|
|
181
|
+
readonly SINK: readonly [0.08, 0.16];
|
|
182
|
+
readonly RISE: 0.08;
|
|
183
|
+
readonly GUARD: readonly [readonly [0.15, 0.3, 1.36], readonly [-0.13, 0.34, 1.4]];
|
|
184
|
+
readonly COCKED: readonly [0.3, -0.1, 0.98];
|
|
185
|
+
readonly RAISED: readonly [0.26, -0.16, 1.98];
|
|
186
|
+
readonly PAST: readonly [0.1, 0.5, 0.72];
|
|
187
|
+
readonly BELLY: 0.19;
|
|
188
|
+
readonly FACE: readonly [0.12, 0.06];
|
|
189
|
+
readonly NAPE: readonly [0.02, 0.12];
|
|
190
|
+
/** Drops of blood as the head bursts, and how fast they fly; a spurt from the belly and the mouth on the gut punch. */
|
|
191
|
+
readonly BURST: readonly [140, 4.5];
|
|
192
|
+
readonly SPURT: readonly [14, 8];
|
|
193
|
+
/**
|
|
194
|
+
* His way in (the user, 2026-11-17: not a slide, and a leap that looks like one): a fighter's
|
|
195
|
+
* bound over the host's dash (GLORY_DASH ticks). He dips and pushes off the back foot, is in the
|
|
196
|
+
* air from tick OFF to ON, TOP metres up at the middle (a parabola), the left knee driven up ahead
|
|
197
|
+
* and the right leg folded behind, the left foot reaching down to land first and the right one
|
|
198
|
+
* stepping in after; the knees take the landing. Keys [tick, value] of each foot (metres ahead of
|
|
199
|
+
* his feet and up from them, the flight's lift apart), of the hips (metres down) and of the lean
|
|
200
|
+
* forward (radians); the last of each his fighting stance, the feet under him whatever the gait
|
|
201
|
+
* left behind, WIDE apart.
|
|
202
|
+
*/
|
|
203
|
+
readonly LEAP: {
|
|
204
|
+
readonly OFF: 3;
|
|
205
|
+
readonly ON: 19;
|
|
206
|
+
readonly TOP: 0.3;
|
|
207
|
+
readonly WIDE: 0.13;
|
|
208
|
+
};
|
|
209
|
+
readonly LEAD: readonly [readonly [0, 0.13, 0], readonly [3, 0.08, 0.03], readonly [8, 0.32, 0.26], readonly [14, 0.36, 0.18], readonly [19, 0.2, 0], readonly [21, 0.13, 0]];
|
|
210
|
+
readonly TRAIL: readonly [readonly [0, -0.16, 0], readonly [3, -0.36, 0], readonly [7, -0.46, 0.22], readonly [13, -0.34, 0.3], readonly [19, -0.28, 0.06], readonly [24, -0.16, 0]];
|
|
211
|
+
readonly HIPS: readonly [readonly [0, 0.05], readonly [2, 0.15], readonly [4, 0.02], readonly [11, 0.06], readonly [19, 0.04], readonly [22, 0.2], readonly [27, 0.12], readonly [34, 0.05]];
|
|
212
|
+
readonly LEAN: readonly [readonly [0, 0], readonly [2, 0.12], readonly [5, 0.3], readonly [14, 0.15], readonly [21, 0.32], readonly [30, 0.06], readonly [36, 0]];
|
|
213
|
+
};
|
|
214
|
+
/** A fists' execution's killer, in its lock: his blows are drawn (pummel()), no weapon in hand. */
|
|
215
|
+
export declare const pummeling: (p: {
|
|
216
|
+
exec?: number;
|
|
217
|
+
lock?: number;
|
|
218
|
+
wield?: boolean;
|
|
219
|
+
}) => boolean;
|
|
220
|
+
/** The victim of a fists' execution as the killer last saw him: his feet, and his belly and head when drawn. */
|
|
221
|
+
export interface Prey {
|
|
222
|
+
feet: Vec3;
|
|
223
|
+
belly?: Vec3;
|
|
224
|
+
head?: Vec3;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* The killer's `pose` in the fists' execution `e` ticks into its lock (past EXEC.TICKS after the
|
|
228
|
+
* kill, a fraction between ticks), on `prey`: turned to him, the blows of PUMMEL, his feet where
|
|
229
|
+
* they were. Faded out over the end of AFTER.
|
|
230
|
+
*/
|
|
231
|
+
export declare const pummel: (pose: Pose, e: number, prey: Prey) => Pose;
|
|
@@ -19,9 +19,16 @@ export type Cue = [
|
|
|
19
19
|
export declare const FEAST_CUES: Cue[];
|
|
20
20
|
/** The katana's, over EXEC.TICKS: the cut down bites at 36, he is on his knee at 46. */
|
|
21
21
|
export declare const EXEC_CUES: Cue[];
|
|
22
|
+
/**
|
|
23
|
+
* The fists', over EXEC.TICKS (feast.ts PUMMEL): the push off at 2 and 3, down on the left foot at 19
|
|
24
|
+
* and the right at 24, the fist driven in from 31 and home in his belly at 36, his knee at 46, the
|
|
25
|
+
* hand on his head at 58, the breath and the effort of the punch down from 76, its whoosh from 82.
|
|
26
|
+
*/
|
|
27
|
+
export declare const FIST_CUES: Cue[];
|
|
22
28
|
/** After the kill: seconds, then as a cue (on the place each stood). */
|
|
23
29
|
export declare const FEAST_AFTER: [number, number, number, number, number][];
|
|
24
30
|
export declare const EXEC_AFTER: [number, number, number, number, number][];
|
|
31
|
+
export declare const FIST_AFTER: [number, number, number, number, number][];
|
|
25
32
|
export interface GloryFx {
|
|
26
33
|
/** Plays what the glory kills of `players` (the own one among them) cue since the last frame. */
|
|
27
34
|
frame(players: PlayerState[]): void;
|
|
@@ -104,7 +104,7 @@ export interface Hud {
|
|
|
104
104
|
/**
|
|
105
105
|
* The own player's character (BODY): the face is hers when she is the woman. `c` is what the
|
|
106
106
|
* roster says he picked, shown chosen on the title screen, and `roles` the classes the map offers
|
|
107
|
-
* (ROLE): the others are
|
|
107
|
+
* (ROLE): the others are hidden.
|
|
108
108
|
*/
|
|
109
109
|
wear(body: number, c?: Choice, roles?: number[]): void;
|
|
110
110
|
/**
|
|
@@ -14,7 +14,7 @@ export type Ground = (x: number, y: number, z: number) => number;
|
|
|
14
14
|
export declare const ground: (world: World | undefined, y0: number) => Ground;
|
|
15
15
|
export interface Piece {
|
|
16
16
|
limb: number;
|
|
17
|
-
/** The head a xenomorph ate (LIMB.EATEN): the stump is drawn, raw and unlit, not the piece. */
|
|
17
|
+
/** The head a xenomorph ate (LIMB.EATEN) or a punch burst (LIMB.BURST): the stump is drawn, raw and unlit, not the piece. */
|
|
18
18
|
eaten?: boolean;
|
|
19
19
|
/** The joints in the pose of the cut, which the limb is skinned with, and its middle then. */
|
|
20
20
|
s: ReturnType<typeof solve>;
|
|
@@ -134,6 +134,8 @@ export declare const SOUND: {
|
|
|
134
134
|
readonly ACID: 67;
|
|
135
135
|
readonly ROAR: 68;
|
|
136
136
|
readonly XENO_LAND: 69;
|
|
137
|
+
/** A fist bursting a head (the fists' glory kill): a deep thump, bone cracking, a wet splatter. */
|
|
138
|
+
readonly SMASH: 70;
|
|
137
139
|
};
|
|
138
140
|
/**
|
|
139
141
|
* The sounds of the game: one entry per sound, its voices layered, in SOUND order. A low-passed
|
|
@@ -9,6 +9,7 @@ import type { Vec3 } from './mesh';
|
|
|
9
9
|
import { solve } from './rig';
|
|
10
10
|
import type { Pose, Quat } from './rig';
|
|
11
11
|
import type { Face } from './expression';
|
|
12
|
+
import type { Prey } from './feast';
|
|
12
13
|
import type { Trail } from './trail';
|
|
13
14
|
import type { Out } from './verts';
|
|
14
15
|
/** What a runner keeps between frames. */
|
|
@@ -91,6 +92,14 @@ export interface Runner {
|
|
|
91
92
|
};
|
|
92
93
|
/** The execution's victim's pose as he last knelt, or the xenomorph's prey's as it last held him: the dead body tips over from it. */
|
|
93
94
|
knelt?: Pose;
|
|
95
|
+
/**
|
|
96
|
+
* The fists' execution (feast.ts pummel()): its killer's ticks into the lock, smoothed between
|
|
97
|
+
* snapshots and running on past it after the kill, and his victim as last drawn; its victim's
|
|
98
|
+
* `fist`, set while he kneels to fists rather than a katana.
|
|
99
|
+
*/
|
|
100
|
+
pum?: number;
|
|
101
|
+
prey?: Prey;
|
|
102
|
+
fist?: boolean;
|
|
94
103
|
/** The skeleton as last drawn: a limb cut off leaves from it (limbs.ts track()). */
|
|
95
104
|
s?: ReturnType<typeof solve>;
|
|
96
105
|
}
|
|
@@ -283,7 +283,8 @@ export declare const XENO_DASH = 1.4;
|
|
|
283
283
|
export declare const POUNCE_HP: number, POUNCE_STUN: number;
|
|
284
284
|
/**
|
|
285
285
|
* The glory kill (the user, 2026-11-16, after DOOM 2016): an enemy with GLORY_HP health or less, up,
|
|
286
|
-
* flashes to
|
|
286
|
+
* flashes to anyone but the xenomorph, who executes him on E within GLORY_REACH metres (the user,
|
|
287
|
+
* 2026-11-17: the fists for everyone, the katana with it in hand; EXEC). The
|
|
287
288
|
* xenomorph's takes any enemy up, with no flash (the user, 2026-11-16): E within GLORY_REACH metres
|
|
288
289
|
* of him too (the user, 2026-11-17: only very close; 8 m before), in sight, and GLORY_ARC radians
|
|
289
290
|
* of its look locks the two (`lock`, `foe`, as a saber
|
|
@@ -305,11 +306,15 @@ export declare const XENO_FEED = 1;
|
|
|
305
306
|
* to EXEC.REACH metres, over GLORY_DASH ticks, cuts down (CUT.SLASH) at EXEC.CUTS[0] and drops him
|
|
306
307
|
* to his knees, then spins into a cut across (CUT.RIGHT) at EXEC.CUTS[1], whose strike is the
|
|
307
308
|
* lock's last tick: his head goes (LIMB.HEAD) and the body, still on its knee, tips over where it
|
|
308
|
-
* is (feast.ts topple()).
|
|
309
|
+
* is (feast.ts topple()). Without the katana in hand it is the fists' (the user, 2026-11-17): the
|
|
310
|
+
* same lock, dashing to EXEC.FIST metres, a punch in the belly on the cut down's strike drops him on
|
|
311
|
+
* his knee the same, and a punch down on his head on the lock's last tick bursts it (LIMB.BURST).
|
|
312
|
+
* The fists strike nothing on the host: their blows are drawn (feast.ts pummel()).
|
|
309
313
|
*/
|
|
310
314
|
export declare const EXEC: {
|
|
311
315
|
readonly TICKS: 88;
|
|
312
316
|
readonly REACH: 1.3;
|
|
317
|
+
readonly FIST: 0.7;
|
|
313
318
|
readonly CUTS: readonly [20, 74];
|
|
314
319
|
readonly KILLER: 1;
|
|
315
320
|
readonly VICTIM: 2;
|
|
@@ -185,13 +185,13 @@ export declare class Room {
|
|
|
185
185
|
/** 1 hp of the bolt's drain to `foe`, as his railer deals it; if it puts him down he is disintegrated (`fried`). */
|
|
186
186
|
private fry;
|
|
187
187
|
/**
|
|
188
|
-
* E pressed by `p
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
* health (the user, 2026-11-16). The two are locked (`lock`, `foe`),
|
|
188
|
+
* E pressed by `p`: the nearest enemy who is up, within GLORY_ARC of its look where `p` drew him,
|
|
189
|
+
* and in no lock, is glory killed (glory()): within GLORY_REACH, with GLORY_HP or less, the
|
|
190
|
+
* xenomorph's in sight, at any health (the user, 2026-11-16). The two are locked (`lock`, `foe`),
|
|
192
191
|
* his flag dropped, `p` dashing in front of him: the xenomorph to a metre for GLORY_TICKS (the
|
|
193
|
-
* user, 2026-11-16),
|
|
194
|
-
*
|
|
192
|
+
* user, 2026-11-16), anyone else for an execution of EXEC.TICKS (`exec`, the user 2026-11-17: no
|
|
193
|
+
* longer at once), to EXEC.REACH with the katana in hand, else to EXEC.FIST with the fists (the
|
|
194
|
+
* user, 2026-11-17: a glory kill for everyone); duel() ends it. True when it happened.
|
|
195
195
|
*/
|
|
196
196
|
private feast;
|
|
197
197
|
/**
|
|
@@ -15,7 +15,8 @@ export declare const reaches: (a: PlayerState, b: PlayerState) => boolean;
|
|
|
15
15
|
/**
|
|
16
16
|
* The enemy `me` would glory kill with E (room.ts feast()), of `foes` as it sees them: the nearest
|
|
17
17
|
* one up, in no lock and not seated, within GLORY_REACH on the floor plane, a body's height above or
|
|
18
|
-
* below and GLORY_ARC of its look.
|
|
19
|
-
* xenomorph's in sight through the world `w`, at any health (the user,
|
|
18
|
+
* below and GLORY_ARC of its look. An execution, the katana's or the fists' (`w` undefined), with
|
|
19
|
+
* GLORY_HP health or less; the xenomorph's in sight through the world `w`, at any health (the user,
|
|
20
|
+
* 2026-11-16).
|
|
20
21
|
*/
|
|
21
22
|
export declare const glory: (me: PlayerState, foes: readonly PlayerState[], w?: World) => PlayerState | undefined;
|
|
@@ -108,6 +108,8 @@ export declare const LIMB: {
|
|
|
108
108
|
readonly LEG_R: 5;
|
|
109
109
|
/** The head a xenomorph's glory kill ate (GLORY_HP): gone, not thrown. */
|
|
110
110
|
readonly EATEN: 6;
|
|
111
|
+
/** The head the fists' glory kill burst with its punch down (EXEC): gone in blood, not thrown. */
|
|
112
|
+
readonly BURST: 7;
|
|
111
113
|
};
|
|
112
114
|
/**
|
|
113
115
|
* 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.
|
|
5
|
+
"version": "0.186.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|