@waica/archetype-topdown 0.8.0 → 0.9.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.
@@ -2,6 +2,7 @@ import type { DirectionalAnimation } from '@waica/engine';
2
2
  /**
3
3
  * The archetype's directional animation contract: four facings with west
4
4
  * mirrored from east art (the stock sheets only draw s/n/e), clips named
5
- * `<state>-<dir>`, and walk falling back to idle when a sheet lacks it.
5
+ * `<state>-<dir>`, and every pose the shared player graph can enter (walk,
6
+ * attack, hurt, death) falling back to idle when a sheet lacks it.
6
7
  */
7
8
  export declare const TOPDOWN_ANIMATION: DirectionalAnimation;
package/dist/animation.js CHANGED
@@ -1,10 +1,14 @@
1
1
  /**
2
2
  * The archetype's directional animation contract: four facings with west
3
3
  * mirrored from east art (the stock sheets only draw s/n/e), clips named
4
- * `<state>-<dir>`, and walk falling back to idle when a sheet lacks it.
4
+ * `<state>-<dir>`, and every pose the shared player graph can enter (walk,
5
+ * attack, hurt, death) falling back to idle when a sheet lacks it.
5
6
  */
6
7
  export const TOPDOWN_ANIMATION = {
7
8
  directions: ['n', 's', 'e', 'w'],
8
9
  fallbacks: { w: { dir: 'e', flip: true } },
9
- contract: { required: ['idle'], fallbacks: { walk: 'idle' } },
10
+ contract: {
11
+ required: ['idle'],
12
+ fallbacks: { walk: 'idle', attack: 'idle', hurt: 'idle', death: 'idle' },
13
+ },
10
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waica/archetype-topdown",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Waica top-down archetype — opinionated setup for Zelda-like overhead adventures",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -24,7 +24,7 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "@waica/behaviors": "^0.8.0",
28
- "@waica/engine": "^0.8.0"
27
+ "@waica/behaviors": "^0.9.0",
28
+ "@waica/engine": "^0.9.0"
29
29
  }
30
30
  }