@korial29/tiny-fps 0.148.1 → 0.149.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/server.js CHANGED
@@ -858,7 +858,7 @@ var heightOf = (p) => p.mode === MODE.SLIDE || p.mode === MODE.CROUCH ? LOW_H :
858
858
  /** The camera height above the feet in this mode. */
859
859
  var eyeHeight = (p) => p.mode === MODE.SLIDE || p.mode === MODE.CROUCH ? LOW_EYE : EYE;
860
860
  /** Horizontal speed, m/s. */
861
- var speedOf = (p) => len$1(p.vx, p.vz);
861
+ var speedOf$1 = (p) => len$1(p.vx, p.vz);
862
862
  /** Whether the brush stops a body of height h whose feet are at y when it walks sideways into it. */
863
863
  var blocks = (b, y, h) => b.max[1] > y + .5 + SKIN && b.min[1] < y + h - SKIN;
864
864
  /** The closest point of the brush footprint to (x, z), as the offset from it to (x, z). */
@@ -3057,14 +3057,8 @@ var PAD$1 = [
3057
3057
  220,
3058
3058
  13
3059
3059
  ];
3060
- var MASTS = [
3061
- [27.3, 207.3],
3062
- [52.7, 207.3],
3063
- [27.3, 232.7],
3064
- [52.7, 232.7],
3065
- [106.2, 230.4],
3066
- [103.2, 212.4]
3067
- ];
3060
+ /** By the tubes. The four at the pad's corners went (the user, 2026-11-14): a ship hit them for nothing. */
3061
+ var MASTS = [[106.2, 230.4], [103.2, 212.4]];
3068
3062
  /** Red's flag: in the hall, 2 m from the dome's centre toward the door. */
3069
3063
  var FLAG = DOME[1] - 2;
3070
3064
  var c1 = (t) => Math.min(Math.max(t, 0), 1);
@@ -4069,7 +4063,7 @@ var half = [
4069
4063
  },
4070
4064
  box(60, 0, 259, 70, 1.5, 265, STEEL, PAINT, RED),
4071
4065
  box(27, 0, 207, 53, .25, 233, METAL),
4072
- ...MASTS.map(([x, z]) => box(x - .2, x < 60 ? .25 : 0, z - .2, x + .2, x < 60 ? 10.25 : 10, z + .2, STEEL)),
4066
+ ...MASTS.map(([x, z]) => box(x - .2, 0, z - .2, x + .2, 10, z + .2, STEEL)),
4073
4067
  box(12, -30, 148 - 2.5 / 2, 24, 0, 148, PAINT, STONE, [
4074
4068
  1,
4075
4069
  .42,
@@ -4933,10 +4927,7 @@ var path = (nav, w, a, b, prefer = -1) => {
4933
4927
  edges
4934
4928
  };
4935
4929
  };
4936
- // src/shared/plasma.ts
4937
- /** Metres a ball flies in a tick, and an arc. */
4938
- var PLASMA_STEP = 40 / 60;
4939
- var ARC_STEP = ARC_SPEED / 60;
4930
+ ARC_SPEED / 60;
4940
4931
  /** How far shot `n` of the laser rifle drifts off the look, yaw and pitch: a pattern within RIFLE_DRIFT, the same for the host and every client. */
4941
4932
  var drift = (n) => [RIFLE_DRIFT * Math.sin(n * 2.4), RIFLE_DRIFT * Math.cos(n * 1.7)];
4942
4933
  /**
@@ -4981,8 +4972,10 @@ var wave = (p, team = 0) => ({
4981
4972
  power: 1,
4982
4973
  arc: p.cut
4983
4974
  });
4975
+ /** The speed of the flight `b`, m/s: an arc's, a bolt's, a rifle round's (power 0) or a ball's. A grenade has its own (`Ball.v`). */
4976
+ var speedOf = (b) => b.arc ? ARC_SPEED : b.power === 6 ? 120 : b.power === 0 ? 400 : 80;
4984
4977
  /** Metres the flight `b` goes in a tick. */
4985
- var stepOf = (b) => b.arc ? ARC_STEP : b.power === 6 ? 2 : PLASMA_STEP;
4978
+ var stepOf = (b) => speedOf(b) / 60;
4986
4979
  /**
4987
4980
  * Distance at which the ray from `o` along the unit `d` enters the upright cylinder of radius `r`
4988
4981
  * on `c`'s feet, `h` tall; Infinity on a miss.
@@ -5048,7 +5041,7 @@ var lob = (p, team = 0) => ({
5048
5041
  v: 36
5049
5042
  });
5050
5043
  /**
5051
- * One tick of the grenade `b`: the map's gravity bends its flight, then it flies on as a ball
5044
+ * One tick of the grenade `b`: the map's gravity bends its flight (not a missile's), then it flies on as a ball
5052
5045
  * (fly()) and bursts on the first brush or foe, or at the end of its range. Float32, so the
5053
5046
  * shooter's client flies the same one.
5054
5047
  */
@@ -5056,7 +5049,7 @@ var toss = (w, b, foes) => {
5056
5049
  const f = Math.fround;
5057
5050
  const [vx, vy, vz] = [
5058
5051
  b.dx * b.v,
5059
- b.dy * b.v - gravity(w) / 60,
5052
+ b.dy * b.v - (b.missile ? 0 : gravity(w)) / 60,
5060
5053
  b.dz * b.v
5061
5054
  ];
5062
5055
  const v = Math.sqrt(vx * vx + vy * vy + vz * vz) || 1;
@@ -5078,10 +5071,10 @@ var toss = (w, b, foes) => {
5078
5071
  };
5079
5072
  /**
5080
5073
  * The health a grenade bursting at `c` takes from `p`: NADE_HP at the body, less with the distance
5081
- * to its nearest point (the axis, feet to head), nothing from NADE_R on, rounded up. Nothing when
5082
- * a brush hides both that point and the chest.
5074
+ * to its nearest point (the axis, feet to head), nothing from `r` (NADE_R, a missile's MISSILE_R)
5075
+ * on, rounded up. Nothing when a brush hides both that point and the chest.
5083
5076
  */
5084
- var blast = (w, c, p) => {
5077
+ var blast = (w, c, p, r = 8) => {
5085
5078
  const h = heightOf(p);
5086
5079
  const near = [
5087
5080
  p.x,
@@ -5094,11 +5087,11 @@ var blast = (w, c, p) => {
5094
5087
  near[2] - c[2]
5095
5088
  ];
5096
5089
  const d = Math.sqrt(dx * dx + dy * dy + dz * dz);
5097
- return d >= 5 || hidden(w, c, near) && hidden(w, c, [
5090
+ return d >= r || hidden(w, c, near) && hidden(w, c, [
5098
5091
  p.x,
5099
5092
  p.y + .7 * h,
5100
5093
  p.z
5101
- ]) ? 0 : Math.ceil(5 * (1 - d / 5));
5094
+ ]) ? 0 : Math.ceil(5 * (1 - d / r));
5102
5095
  };
5103
5096
  // src/shared/bot.ts
5104
5097
  var { FORWARD, BACK, LEFT, RIGHT, JUMP, SPRINT, DASH, CROUCH, FIRE, RELOAD } = KEY;
@@ -5717,7 +5710,7 @@ var Bot = class {
5717
5710
  this.aim = norm(p.yaw + (this.rnd() < .5 ? miss : -miss));
5718
5711
  }
5719
5712
  const d = flat(p.x, p.z, q.x, q.z);
5720
- const lead = d / 40;
5713
+ const lead = d / (p.rifled ? 400 : 80);
5721
5714
  const [tx, ty, tz] = [
5722
5715
  q.x + q.vx * lead,
5723
5716
  q.y + 1.1 + q.vy * lead,
@@ -6433,7 +6426,7 @@ var encodeSnapshot = (s) => {
6433
6426
  ].forEach((c, k) => v.setInt16(o + 2 + 2 * k, clamp16(c * BALL_POS)));
6434
6427
  v.setUint8(o + 8, Math.round(Math.atan2(-b.dx, -b.dz) * YAW8) & 255);
6435
6428
  v.setInt8(o + 9, Math.round(Math.asin(Math.max(-1, Math.min(1, b.dy))) * PITCH8));
6436
- v.setUint8(o + 10, b.arc ? 128 | b.arc : b.power === 7 ? 64 | Math.min(63, Math.round(b.v)) : b.power ?? 1);
6429
+ v.setUint8(o + 10, b.arc ? 128 | b.arc : b.power === 7 ? (b.missile ? 192 : 64) | Math.min(63, Math.round(b.v)) : b.power ?? 1);
6437
6430
  o += 11;
6438
6431
  }
6439
6432
  if (gate) {
@@ -7097,6 +7090,13 @@ var ROVER = {
7097
7090
  BRAKE: 14,
7098
7091
  ROLL: .6,
7099
7092
  HB: 6,
7093
+ /**
7094
+ * The boost (the user, 2026-11-14), Shift with W as on the ship: a rocket at the back pushes
7095
+ * BOOST m/s² more along the nose, fading to nothing at VBOOST. It is not the tyres' (the moon's
7096
+ * grip already caps the engine), so it pushes with any wheel down.
7097
+ */
7098
+ BOOST: 10,
7099
+ VBOOST: 34,
7100
7100
  /** Grip sideways and in traction, as shares of the load; under the handbrake, the share left sideways and how much faster the nose comes round. */
7101
7101
  MU: 1.1,
7102
7102
  MUL: 1.2,
@@ -7347,6 +7347,7 @@ var drive = (r, i, w, fleet = [], crash) => {
7347
7347
  const keys = i ? i.keys : 0;
7348
7348
  const thr = (keys & KEY.FORWARD ? 1 : 0) - (keys & KEY.BACK ? 1 : 0);
7349
7349
  const hb = keys & KEY.JUMP;
7350
+ const boost = thr > 0 && keys & KEY.SPRINT;
7350
7351
  const [fx, fz] = forward(r.yaw);
7351
7352
  const [cp, cr] = [cos(r.pitch), cos(r.roll)];
7352
7353
  const c = corners(r, w);
@@ -7397,6 +7398,7 @@ var drive = (r, i, w, fleet = [], crash) => {
7397
7398
  r.wy += (spin - r.wy) * ROVER.YRESP * DT * min(1, load);
7398
7399
  const grip = g * load * DT;
7399
7400
  let dl = clamp((thr * vl < 0 ? thr * ROVER.BRAKE : thr * ROVER.ENGINE * max(0, 1 - abs(vl) / (thr > 0 ? ROVER.VMAX : ROVER.VREV))) * DT, -MUL * grip, MUL * grip);
7401
+ if (boost) dl += ROVER.BOOST * clamp(1 - vl / ROVER.VBOOST, 0, 1) * DT;
7400
7402
  const drag = (ROVER.ROLL + (hb || !i ? ROVER.HB : 0)) * load * DT;
7401
7403
  dl -= clamp(vl + dl, -drag, drag);
7402
7404
  const side = MU * grip * (hb ? ROVER.HBG : 1);
@@ -7637,8 +7639,8 @@ var bolts = (r, by, team, yaw, pitch, id, sight) => {
7637
7639
  };
7638
7640
  /**
7639
7641
  * A ship's missile from its pod `k` (0 left, 1 right) toward where its lasers cross: a grenade
7640
- * (plasma.ts's toss() flies it, blast() is its burst) launched at MISSILE_SPEED plus the ship's own
7641
- * speed along the way, 63 m/s at most (the wire's six bits).
7642
+ * (plasma.ts's toss() flies it, straight, blast() to MISSILE_R is its burst) launched at
7643
+ * MISSILE_SPEED plus the ship's own speed along the way, 63 m/s at most (the wire's six bits).
7642
7644
  */
7643
7645
  var missile = (r, by, team, yaw, pitch, id, k, sight) => {
7644
7646
  const o = muzzle(r, PODS[k]);
@@ -7657,7 +7659,8 @@ var missile = (r, by, team, yaw, pitch, id, k, sight) => {
7657
7659
  left: 2 * SHIP.GUN_RANGE,
7658
7660
  burst: false,
7659
7661
  power: 7,
7660
- v: Math.min(63, SHIP.MISSILE_SPEED + Math.max(0, own))
7662
+ v: Math.min(63, SHIP.MISSILE_SPEED + Math.max(0, own)),
7663
+ missile: true
7661
7664
  };
7662
7665
  };
7663
7666
  // src/shared/room.ts
@@ -8127,7 +8130,7 @@ var Room = class {
8127
8130
  const hit = this.rewind(p.info.id, view).find((seen) => reaches(me, seen) && foes.some((q) => q.info.id === seen.id && this.ctf.carrying(q.info.id) >= 0));
8128
8131
  const foe = foes.find((q) => q.info.id === hit?.id);
8129
8132
  if (!foe || !this.drop(foe.info.id)) return;
8130
- const v = speedOf(me);
8133
+ const v = speedOf$1(me);
8131
8134
  const [dx, dz] = v > .001 ? [me.vx / v, me.vz / v] : forward(me.yaw);
8132
8135
  stumble(foe.state, dx, dz);
8133
8136
  foe.state.zap = false;
@@ -8247,11 +8250,12 @@ var Room = class {
8247
8250
  if (b.power === 7) {
8248
8251
  toss(this.world, b, foes.map((f) => f.state));
8249
8252
  this.ram(b, o);
8253
+ const r = b.missile ? 14 : 8;
8250
8254
  if (b.burst && this.boom([
8251
8255
  b.x,
8252
8256
  b.y,
8253
8257
  b.z
8254
- ], b.by, b.team) && by) by.state.hits = by.state.hits + 1 & 255;
8258
+ ], b.by, b.team, r) && by) by.state.hits = by.state.hits + 1 & 255;
8255
8259
  return;
8256
8260
  }
8257
8261
  const hit = fly(this.world, b, m, foes.map((f) => f.state));
@@ -8720,26 +8724,27 @@ var Room = class {
8720
8724
  /**
8721
8725
  * A blast at `c`, the grenade's rule, of player `by` of `team`: every enemy on foot who is up,
8722
8726
  * and `by` himself, lose what blast() gives where they stand now; every enemy vehicle loses
8723
- * NADE_HP at its hull, less with the distance to it, nothing from NADE_R on or behind a brush.
8727
+ * NADE_HP at its hull, less with the distance to it, nothing from `w` (NADE_R, a missile's
8728
+ * MISSILE_R) on or behind a brush.
8724
8729
  * Who is seated is behind his hull: the blast takes nothing from him. True when it hurt an enemy
8725
8730
  * or his vehicle.
8726
8731
  */
8727
- boom(c, by, team) {
8732
+ boom(c, by, team, w = 8) {
8728
8733
  let hit = false;
8729
8734
  for (const r of this.targets(team)) {
8730
8735
  const d = reach(r, c);
8731
- if (d < 5 && !hidden(this.world, c, [
8736
+ if (d < w && !hidden(this.world, c, [
8732
8737
  r.x,
8733
8738
  r.y,
8734
8739
  r.z
8735
8740
  ])) {
8736
- this.hurt(r, Math.ceil(5 * (1 - d / 5)), by, team);
8741
+ this.hurt(r, Math.ceil(5 * (1 - d / w)), by, team);
8737
8742
  hit = true;
8738
8743
  }
8739
8744
  }
8740
8745
  for (const q of this.players()) {
8741
8746
  const own = q.info.id === by;
8742
- const hp = !q.state.down && q.state.mode !== MODE.RIDE && (own || q.info.team !== team) ? blast(this.world, c, q.state) : 0;
8747
+ const hp = !q.state.down && q.state.mode !== MODE.RIDE && (own || q.info.team !== team) ? blast(this.world, c, q.state, w) : 0;
8743
8748
  if (hp) {
8744
8749
  this.shot(q, hp, this.players().find((o) => o.info.id === by), q.state.x - c[0], q.state.z - c[2], FRAG.NADE);
8745
8750
  hit ||= !own;
@@ -16,7 +16,7 @@ export interface Balls {
16
16
  */
17
17
  frame(now: number, muzzle: (id: number) => Vec3 | undefined): {
18
18
  orbs: Orb[];
19
- bursts: [Vec3, number][];
19
+ bursts: [Vec3, number, number?][];
20
20
  };
21
21
  }
22
22
  export declare const createBalls: (world: World) => Balls;
@@ -19,5 +19,5 @@ export declare const kit: (out: Out, at: Vec3, t: number) => void;
19
19
  export declare const cell: (out: Out, at: Vec3, t: number) => void;
20
20
  /** A rail cell at `at`: a gunmetal box with a glowing violet-white bolt on each side, the rail gun's colours. */
21
21
  export declare const battery: (out: Out, at: Vec3, t: number) => void;
22
- /** An armour at `at`: a bigger steel box with a glowing gold shield on each side. */
22
+ /** An armour at `at`: a green cuirass turning and bobbing over it, its shield pulsing. */
23
23
  export declare const vest: (out: Out, at: Vec3, t: number) => void;
@@ -109,6 +109,12 @@ export declare const SOUND: {
109
109
  */
110
110
  readonly PAIN: 54;
111
111
  readonly DEATH: 55;
112
+ /**
113
+ * The pickups' own sounds (the user, 2026-11-14: one for each), PACK being the health's: an ammo
114
+ * pack's clack of a magazine and a blip up a fifth; an armour's rising hum under a ringing chord.
115
+ */
116
+ readonly AMMO: 56;
117
+ readonly ARMOR: 57;
112
118
  };
113
119
  /**
114
120
  * The sounds of the game: one entry per sound, its voices layered, in SOUND order. A low-passed
@@ -252,9 +252,12 @@ export declare const GUN_RANGE = 80;
252
252
  /**
253
253
  * A shot is a plasma ball (the user, 2026-11-06, Doom-like): it leaves the eye along the look at
254
254
  * PLASMA_SPEED m/s, is a sphere of PLASMA_R metres, and bursts on the first brush or enemy body it
255
- * touches (teammates and the shooter let it through). It lives GUN_RANGE / PLASMA_SPEED s.
255
+ * touches (teammates and the shooter let it through). It lives GUN_RANGE / PLASMA_SPEED s. The
256
+ * laser rifle's rounds fly at RIFLE_SPEED. Both were 40 until the user, 2026-11-14: the pistol's
257
+ * twice as fast, the rifle's ten times.
256
258
  */
257
- export declare const PLASMA_SPEED = 40;
259
+ export declare const PLASMA_SPEED = 80;
260
+ export declare const RIFLE_SPEED = 400;
258
261
  export declare const PLASMA_R = 0.12;
259
262
  /** Plasma balls in flight in a room at most: past it the oldest bursts. They go on the wire. */
260
263
  export declare const PLASMA_MAX = 64;
@@ -372,7 +375,7 @@ export declare const SLOW_SPEED = 3;
372
375
  * The laser rifle (the user, 2026-11-08), held in both hands, after Halo's assault rifle: taken at
373
376
  * the team's fourth rack with RIFLE_MAX rounds, it fires while FIRE is held, one round each
374
377
  * RIFLE_COOL ticks (20 a second) from a power cell of RIFLE_CLIP (RIFLE_RELOAD to swap). Each shot
375
- * is an instant beam RIFLE_RANGE metres along the look, drifted by up to RIFLE_DRIFT radians in a
378
+ * is a red ball at RIFLE_SPEED, RIFLE_RANGE metres along the look, drifted by up to RIFLE_DRIFT radians in a
376
379
  * pattern of the shot count; every RIFLE_HITS of them that enter an enemy take 1 hp from him.
377
380
  * Rounds and the cell are u8 on the wire.
378
381
  */
@@ -400,7 +403,12 @@ export declare const NADE_COOL = 60;
400
403
  export declare const NADE_HOLD = 7;
401
404
  export declare const NADE_SPEED = 36;
402
405
  export declare const NADE_RANGE = 150;
403
- export declare const NADE_R = 5;
406
+ export declare const NADE_R = 8;
407
+ /**
408
+ * A ship's missile (Ball.missile, rover.ts's missile()): a grenade that flies straight, no gravity,
409
+ * and whose blast reaches MISSILE_R metres (the user, 2026-11-14; the grenade's went 5 to 8 m).
410
+ */
411
+ export declare const MISSILE_R = 14;
404
412
  export declare const NADE_HP = 5;
405
413
  /** Seconds a carrier who is made to drop the flag cannot take it again: he would pick it up where he stands. */
406
414
  export declare const FLAG_LOCK = 2;
@@ -26,6 +26,8 @@ export declare const launch: (p: PlayerState, team?: number) => Flying;
26
26
  * `shots` count with the top bit turned, apart from his balls' (one arc is gone before the next).
27
27
  */
28
28
  export declare const wave: (p: PlayerState, team?: number) => Flying;
29
+ /** The speed of the flight `b`, m/s: an arc's, a bolt's, a rifle round's (power 0) or a ball's. A grenade has its own (`Ball.v`). */
30
+ export declare const speedOf: (b: Pick<Ball, "arc" | "power">) => number;
29
31
  /** Metres the flight `b` goes in a tick. */
30
32
  export declare const stepOf: (b: Ball) => number;
31
33
  /**
@@ -50,15 +52,15 @@ export declare const lob: (p: PlayerState, team?: number) => Flying;
50
52
  */
51
53
  export declare const lobbed: (p: PlayerState) => boolean;
52
54
  /**
53
- * One tick of the grenade `b`: the map's gravity bends its flight, then it flies on as a ball
55
+ * One tick of the grenade `b`: the map's gravity bends its flight (not a missile's), then it flies on as a ball
54
56
  * (fly()) and bursts on the first brush or foe, or at the end of its range. Float32, so the
55
57
  * shooter's client flies the same one.
56
58
  */
57
59
  export declare const toss: (w: World, b: Flying, foes: PlayerState[]) => PlayerState | undefined;
58
60
  /**
59
61
  * The health a grenade bursting at `c` takes from `p`: NADE_HP at the body, less with the distance
60
- * to its nearest point (the axis, feet to head), nothing from NADE_R on, rounded up. Nothing when
61
- * a brush hides both that point and the chest.
62
+ * to its nearest point (the axis, feet to head), nothing from `r` (NADE_R, a missile's MISSILE_R)
63
+ * on, rounded up. Nothing when a brush hides both that point and the chest.
62
64
  */
63
- export declare const blast: (w: World, c: Vec3, p: PlayerState) => number;
65
+ export declare const blast: (w: World, c: Vec3, p: PlayerState, r?: number) => number;
64
66
  export {};
@@ -248,7 +248,8 @@ export declare class Room {
248
248
  /**
249
249
  * A blast at `c`, the grenade's rule, of player `by` of `team`: every enemy on foot who is up,
250
250
  * and `by` himself, lose what blast() gives where they stand now; every enemy vehicle loses
251
- * NADE_HP at its hull, less with the distance to it, nothing from NADE_R on or behind a brush.
251
+ * NADE_HP at its hull, less with the distance to it, nothing from `w` (NADE_R, a missile's
252
+ * MISSILE_R) on or behind a brush.
252
253
  * Who is seated is behind his hull: the blast takes nothing from him. True when it hurt an enemy
253
254
  * or his vehicle.
254
255
  */
@@ -25,6 +25,13 @@ export declare const ROVER: {
25
25
  readonly BRAKE: 14;
26
26
  readonly ROLL: 0.6;
27
27
  readonly HB: 6;
28
+ /**
29
+ * The boost (the user, 2026-11-14), Shift with W as on the ship: a rocket at the back pushes
30
+ * BOOST m/s² more along the nose, fading to nothing at VBOOST. It is not the tyres' (the moon's
31
+ * grip already caps the engine), so it pushes with any wheel down.
32
+ */
33
+ readonly BOOST: 10;
34
+ readonly VBOOST: 34;
28
35
  /** Grip sideways and in traction, as shares of the load; under the handbrake, the share left sideways and how much faster the nose comes round. */
29
36
  readonly MU: 1.1;
30
37
  readonly MUL: 1.2;
@@ -206,8 +213,8 @@ export declare const aimOf: (r: Rover, yaw: number, pitch: number, sight?: Sight
206
213
  export declare const bolts: (r: Rover, by: number, team: number, yaw: number, pitch: number, id: number, sight?: Sight) => Flying[];
207
214
  /**
208
215
  * A ship's missile from its pod `k` (0 left, 1 right) toward where its lasers cross: a grenade
209
- * (plasma.ts's toss() flies it, blast() is its burst) launched at MISSILE_SPEED plus the ship's own
210
- * speed along the way, 63 m/s at most (the wire's six bits).
216
+ * (plasma.ts's toss() flies it, straight, blast() to MISSILE_R is its burst) launched at
217
+ * MISSILE_SPEED plus the ship's own speed along the way, 63 m/s at most (the wire's six bits).
211
218
  */
212
219
  export declare const missile: (r: Rover, by: number, team: number, yaw: number, pitch: number, id: number, k: number, sight?: Sight) => Flying;
213
220
  export {};
@@ -356,6 +356,8 @@ export interface Ball {
356
356
  v?: number;
357
357
  /** An arc of energy, not a ball: the CUT that threw it (ARC_L or ARC_R). Absent for a ball. */
358
358
  arc?: number;
359
+ /** A ship's missile (power NADE): it flies straight, and its blast reaches MISSILE_R. */
360
+ missile?: boolean;
359
361
  }
360
362
  /** The flag of a team as a snapshot carries it: only the fields of its state are meaningful, the rest read 0. */
361
363
  export interface FlagState {
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.148.1",
5
+ "version": "0.149.0",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"