@korial29/tiny-fps 0.21.0 → 0.23.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 +11 -12
- package/dist/index.js +11 -11
- package/dist/local.js +1 -1
- package/dist/server.js +691 -240
- package/dist/types/shared/ctf.d.ts +2 -0
- package/dist/types/shared/map.d.ts +5 -0
- package/package.json +1 -1
|
@@ -31,6 +31,8 @@ export declare class Ctf {
|
|
|
31
31
|
private back;
|
|
32
32
|
/** Who may not take each flag, and for how many more ticks: the carrier that was made to drop it. */
|
|
33
33
|
private lock;
|
|
34
|
+
/** Ticks before a tackled flag can be sent home: it lies there, and the carrier's mates may take it. */
|
|
35
|
+
private hold;
|
|
34
36
|
constructor(world: World, rules: Rules);
|
|
35
37
|
/** A player joined, standing at `at`. */
|
|
36
38
|
join(id: number, team: number, at: PlayerState): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { WorldDef } from './world';
|
|
2
|
+
type Vec3 = [number, number, number];
|
|
2
3
|
/**
|
|
3
4
|
* A parkour test course, laid out for the moves of step 3 and flown with them by test/lines.ts.
|
|
4
5
|
* Metres, y up, the course runs north (toward -z). A walking jump flies about 4.2 m on the flat, a
|
|
@@ -19,3 +20,7 @@ import type { WorldDef } from './world';
|
|
|
19
20
|
* the same line in reverse, then a drop to B and the A gap jumped south.
|
|
20
21
|
*/
|
|
21
22
|
export declare const ROOFTOPS: WorldDef;
|
|
23
|
+
/** The two team tints, red then blue. */
|
|
24
|
+
export declare const TEAM_TINT: Vec3[];
|
|
25
|
+
export declare const HIGHLINE: WorldDef;
|
|
26
|
+
export {};
|
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.23.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|