@korial29/tiny-fps 0.45.2 → 0.47.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 +3 -3
- package/dist/index.js +14 -14
- package/dist/local.js +1 -1
- package/dist/server.js +144 -32
- package/dist/types/client/combat.d.ts +1 -1
- package/dist/types/client/flag.d.ts +2 -0
- package/dist/types/client/katana.d.ts +11 -1
- package/dist/types/client/props.d.ts +2 -0
- package/dist/types/shared/blade.d.ts +13 -0
- package/dist/types/shared/constants.d.ts +14 -1
- package/dist/types/shared/physics.d.ts +1 -0
- package/dist/types/shared/room.d.ts +4 -3
- package/dist/types/shared/types.d.ts +4 -1
- package/dist/types/shared/world.d.ts +2 -0
- package/package.json +1 -1
|
@@ -230,6 +230,8 @@ export interface PlayerState {
|
|
|
230
230
|
slow?: number;
|
|
231
231
|
/** While down: the bolt's drain put him down, and he is disintegrated. Absent reads false. */
|
|
232
232
|
fried?: boolean;
|
|
233
|
+
/** The katana's cut is a charged one let go (see HEAVY): its swing is the heavy release's. Absent reads false. */
|
|
234
|
+
heavy?: boolean;
|
|
233
235
|
/** While down after a katana's cut put him down: the LIMB it took off, for the clients to draw. NONE once up. Absent reads NONE. */
|
|
234
236
|
lost?: number;
|
|
235
237
|
/** For the animation, not sent: the EV bits of the last step, and the speed of a landing. */
|
|
@@ -310,7 +312,8 @@ export interface Snapshot {
|
|
|
310
312
|
flags: [FlagState, FlagState];
|
|
311
313
|
/**
|
|
312
314
|
* Bit n set: pack n is there to take, the health packs of WorldDef.packs first, then the ammo
|
|
313
|
-
* packs of WorldDef.ammo (bit packs.length + n)
|
|
315
|
+
* packs of WorldDef.ammo (bit packs.length + n), then the rail cells of WorldDef.cells (after
|
|
316
|
+
* both). Absent: none.
|
|
314
317
|
*/
|
|
315
318
|
packs?: number;
|
|
316
319
|
/** The plasma balls in flight, and those that burst since the last snapshot. Absent: none. */
|
|
@@ -37,6 +37,8 @@ export interface WorldDef {
|
|
|
37
37
|
packs?: Vec3[];
|
|
38
38
|
/** Ammo packs, points on tops (health and ammo packs together at most 32): within PACK_R a player with the gun and fewer than AMMO_MAX shots takes AMMO_PACK, then it is gone PACK_BACK seconds. */
|
|
39
39
|
ammo?: Vec3[];
|
|
40
|
+
/** Rail cells, points on tops (with the health and ammo packs at most 32): within PACK_R a player with the rail gun and less than RAIL_MAX of lightning takes RAIL_CELL, then it is gone PACK_BACK seconds. */
|
|
41
|
+
cells?: Vec3[];
|
|
40
42
|
/** Unit direction toward the sun, and its colour (linear RGB, may exceed 1). */
|
|
41
43
|
sun: {
|
|
42
44
|
dir: Vec3;
|
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.47.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|