@korial29/tiny-fps 0.56.1 → 0.56.2

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.
@@ -56,8 +56,9 @@ export declare const KEY: {
56
56
  * The katana's cuts (PlayerState.cut, constants CUTS), chosen by the keys held when FIRE starts
57
57
  * one: LEFT or RIGHT (one of them) cuts across from that side, else FORWARD thrusts, else (back or
58
58
  * no key) it slashes down from above. With SPECIAL (a double click) each has its special, the cut
59
- * plus SPECIAL_CUT: the thrust a LUNGE (a dash forward on the point), a cut across a SPIN (a full
60
- * turn on himself, the blade out all round), the slash a LEAP (a jump and a blow down on landing).
59
+ * plus SPECIAL_CUT: the thrust a LUNGE (a dash forward on the point), a cut across an ARC (a heavy
60
+ * cut down across the body that throws an arc of energy ahead, see wave(), plasma.ts), the slash a
61
+ * LEAP (a jump and a blow down on landing).
61
62
  */
62
63
  export declare const CUT: {
63
64
  readonly THRUST: 0;
@@ -65,8 +66,8 @@ export declare const CUT: {
65
66
  readonly RIGHT: 2;
66
67
  readonly SLASH: 3;
67
68
  readonly LUNGE: 4;
68
- readonly SPIN_L: 5;
69
- readonly SPIN_R: 6;
69
+ readonly ARC_L: 5;
70
+ readonly ARC_R: 6;
70
71
  readonly LEAP: 7;
71
72
  };
72
73
  /** A cut plus this is its special; a cut's base cut is the cut less it. */
@@ -303,6 +304,8 @@ export interface Ball {
303
304
  burst: boolean;
304
305
  /** Its strength, 1 to CHARGE_MAX: the health it takes. Absent reads 1. */
305
306
  power?: number;
307
+ /** An arc of energy, not a ball: the CUT that threw it (ARC_L or ARC_R). Absent for a ball. */
308
+ arc?: number;
306
309
  }
307
310
  /** The flag of a team as a snapshot carries it: only the fields of its state are meaningful, the rest read 0. */
308
311
  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.56.1",
5
+ "version": "0.56.2",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"