@waica/archetype-platformer 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.
@@ -1,5 +1,5 @@
1
1
  import type { InputBindings } from '@waica/engine';
2
- /** Platformer actions and the exact legacy keyboard defaults. */
2
+ /** Platformer actions: the exact legacy keyboard defaults plus the left stick, D-pad and A (ADR 0023). */
3
3
  export declare const PLATFORMER_BINDINGS: Readonly<InputBindings>;
4
4
  /** Friendly labels shown by the editor's controls panel. */
5
5
  export declare const PLATFORMER_ACTION_LABELS: Readonly<Record<string, string>>;
package/dist/controls.js CHANGED
@@ -1,8 +1,8 @@
1
- /** Platformer actions and the exact legacy keyboard defaults. */
1
+ /** Platformer actions: the exact legacy keyboard defaults plus the left stick, D-pad and A (ADR 0023). */
2
2
  export const PLATFORMER_BINDINGS = {
3
- left: ['ArrowLeft', 'KeyA'],
4
- right: ['ArrowRight', 'KeyD'],
5
- jump: ['Space', 'ArrowUp', 'KeyW'],
3
+ left: ['ArrowLeft', 'KeyA', 'Gamepad:LeftStickLeft', 'Gamepad:DPadLeft'],
4
+ right: ['ArrowRight', 'KeyD', 'Gamepad:LeftStickRight', 'Gamepad:DPadRight'],
5
+ jump: ['Space', 'ArrowUp', 'KeyW', 'Gamepad:A'],
6
6
  };
7
7
  /** Friendly labels shown by the editor's controls panel. */
8
8
  export const PLATFORMER_ACTION_LABELS = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waica/archetype-platformer",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "Waica platformer archetype — opinionated setup for side-scrolling platformers",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -24,7 +24,7 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "@waica/behaviors": "^0.21.0",
28
- "@waica/engine": "^0.21.0"
27
+ "@waica/behaviors": "^0.22.0",
28
+ "@waica/engine": "^0.22.0"
29
29
  }
30
30
  }