@korial29/tiny-fps 0.56.1 → 0.57.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/README.md +1 -1
- package/dist/index.js +15 -15
- package/dist/local.js +1 -1
- package/dist/server.js +94 -37
- package/dist/types/client/balls.d.ts +1 -1
- package/dist/types/client/beams.d.ts +2 -0
- package/dist/types/client/body.d.ts +1 -1
- package/dist/types/client/katana.d.ts +0 -6
- package/dist/types/client/soldier.d.ts +1 -2
- package/dist/types/shared/blade.d.ts +4 -2
- package/dist/types/shared/constants.d.ts +9 -0
- package/dist/types/shared/physics.d.ts +2 -0
- package/dist/types/shared/plasma.d.ts +12 -3
- package/dist/types/shared/room.d.ts +8 -4
- package/dist/types/shared/types.d.ts +7 -4
- package/package.json +1 -1
|
@@ -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
|
|
60
|
-
*
|
|
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
|
|
69
|
-
readonly
|
|
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.
|
|
5
|
+
"version": "0.57.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|