@waica/archetype-isometric 0.21.0 → 0.22.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/dist/controls.d.ts +1 -0
- package/dist/controls.js +7 -6
- package/package.json +3 -3
package/dist/controls.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { InputBindings } from '@waica/engine';
|
|
2
|
+
/** Isometric actions: screen-relative movement, interact and attack; keys, the left stick, D-pad, A and X (ADR 0023). */
|
|
2
3
|
export declare const ISOMETRIC_BINDINGS: Readonly<InputBindings>;
|
|
3
4
|
export declare const ISOMETRIC_ACTION_LABELS: Readonly<Record<string, string>>;
|
package/dist/controls.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
/** Isometric actions: screen-relative movement, interact and attack; keys, the left stick, D-pad, A and X (ADR 0023). */
|
|
1
2
|
export const ISOMETRIC_BINDINGS = {
|
|
2
|
-
up: ['ArrowUp', 'KeyW'],
|
|
3
|
-
down: ['ArrowDown', 'KeyS'],
|
|
4
|
-
left: ['ArrowLeft', 'KeyA'],
|
|
5
|
-
right: ['ArrowRight', 'KeyD'],
|
|
6
|
-
interact: ['KeyE', 'Space'],
|
|
7
|
-
attack: ['KeyX', 'KeyJ'],
|
|
3
|
+
up: ['ArrowUp', 'KeyW', 'Gamepad:LeftStickUp', 'Gamepad:DPadUp'],
|
|
4
|
+
down: ['ArrowDown', 'KeyS', 'Gamepad:LeftStickDown', 'Gamepad:DPadDown'],
|
|
5
|
+
left: ['ArrowLeft', 'KeyA', 'Gamepad:LeftStickLeft', 'Gamepad:DPadLeft'],
|
|
6
|
+
right: ['ArrowRight', 'KeyD', 'Gamepad:LeftStickRight', 'Gamepad:DPadRight'],
|
|
7
|
+
interact: ['KeyE', 'Space', 'Gamepad:A'],
|
|
8
|
+
attack: ['KeyX', 'KeyJ', 'Gamepad:X'],
|
|
8
9
|
};
|
|
9
10
|
export const ISOMETRIC_ACTION_LABELS = {
|
|
10
11
|
up: 'Move up',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@waica/archetype-isometric",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "Waica isometric archetype — logical-grid action adventures with screen-relative movement",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@waica/behaviors": "^0.
|
|
28
|
-
"@waica/engine": "^0.
|
|
27
|
+
"@waica/behaviors": "^0.22.0",
|
|
28
|
+
"@waica/engine": "^0.22.0"
|
|
29
29
|
}
|
|
30
30
|
}
|