@waica/archetype-platformer 0.16.0 → 0.18.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/prefabs.js CHANGED
@@ -61,8 +61,10 @@ export const PLATFORMER_PREFABS = {
61
61
  { type: 'Hazard', props: { stompable: true, bounce: 10 } },
62
62
  // One point: a stomp still kills it in a single hit, the same as
63
63
  // before the damage model existed — now said out loud instead of
64
- // hardcoded into Hazard.
65
- { type: 'Health', props: { max: 1 } },
64
+ // hardcoded into Hazard. A damage number rises where it was stomped
65
+ // (issue #72); no health bar, which never shows at full health and a
66
+ // one-point slime is never hurt without dying.
67
+ { type: 'Health', props: { max: 1, damageNumber: 'damage-number' } },
66
68
  ],
67
69
  },
68
70
  'objects/coin': {
package/dist/ui.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { HEALTH_UI } from '@waica/behaviors';
1
2
  /**
2
3
  * The archetype's default UI pieces: self-contained HTML fragments
3
4
  * (markup + <style>, {{stat}} bindings) keyed by piece name. Projects
@@ -21,4 +22,5 @@ export const PLATFORMER_UI = {
21
22
  </style>
22
23
  <div class="coin-counter">🪙 {{points}}</div>
23
24
  `,
25
+ ...HEALTH_UI,
24
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waica/archetype-platformer",
3
- "version": "0.16.0",
3
+ "version": "0.18.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.16.0",
28
- "@waica/engine": "^0.16.0"
27
+ "@waica/behaviors": "^0.18.0",
28
+ "@waica/engine": "^0.18.0"
29
29
  }
30
30
  }