@korial29/tiny-fps 0.192.2 → 0.192.4
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/index.js +1 -1
- package/dist/local.js +1 -1
- package/dist/server.js +1 -1
- package/dist/types/client/input.d.ts +1 -1
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -6559,7 +6559,7 @@ var step = (p, i, w, team, armed = true, bodies = [], kit = KITS[0]) => {
|
|
|
6559
6559
|
return STRIKE.NADE;
|
|
6560
6560
|
}
|
|
6561
6561
|
if (p.wield && i.keys & KEY.SPECIAL && !busy && !p.swing) {
|
|
6562
|
-
p.cut = cutOf(i.keys) + 4;
|
|
6562
|
+
p.cut = i.keys & KEY.FIRE ? cutOf(i.keys) + 4 : (i.keys & (KEY.LEFT | KEY.RIGHT)) === KEY.LEFT ? CUT.ARC_L : CUT.ARC_R;
|
|
6563
6563
|
[p.swing, p.charge] = [CUTS[p.cut].ticks, 0];
|
|
6564
6564
|
launch(p);
|
|
6565
6565
|
return STRIKE.NONE;
|
|
@@ -7,7 +7,7 @@ export declare const DOUBLE_TAP_MS = 250;
|
|
|
7
7
|
export declare const dashKeys: (keys: number, dir: number) => number;
|
|
8
8
|
/** The KEY bit of a KeyboardEvent.code, 0 for a key the game ignores. */
|
|
9
9
|
export declare const keyBit: (code: string) => number;
|
|
10
|
-
/** A second
|
|
10
|
+
/** A second press within this of the first (ms) is a double click: the katana's special of the cut (left), the xenomorph's tail special (right or G). */
|
|
11
11
|
export declare const DOUBLE_CLICK_MS = 300;
|
|
12
12
|
/** The wheel swaps the weapon at most this often (ms): a trackpad's flick is a hundred events, one swap. */
|
|
13
13
|
export declare const WHEEL_MS = 250;
|
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.192.
|
|
5
|
+
"version": "0.192.4",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|