@waica/archetype-isometric 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
@@ -162,7 +162,18 @@ export const ISOMETRIC_PREFABS = {
162
162
  props: { layer: 'enemy', collidesWith: ['player'], width: 0.8, height: 0.7 },
163
163
  },
164
164
  { type: 'Hazard', props: { stompable: false, contactDamage: 1 } },
165
- { type: 'Health', props: { max: 2, invulnerability: 0.3, hurtSound: 'waica:iso-hit' } },
165
+ {
166
+ type: 'Health',
167
+ props: {
168
+ max: 2,
169
+ invulnerability: 0.3,
170
+ hurtSound: 'waica:iso-hit',
171
+ // Issue #72: a number rises over every hit, and a bar shows its
172
+ // hearts while it is hurt (the stock pieces of @waica/behaviors).
173
+ damageNumber: 'damage-number',
174
+ healthBar: 'health-bar',
175
+ },
176
+ },
166
177
  ],
167
178
  },
168
179
  'objects/crate': {
package/dist/ui.js CHANGED
@@ -1,4 +1,4 @@
1
- import { INTERACTABLE_UI } from '@waica/behaviors';
1
+ import { HEALTH_UI, INTERACTABLE_UI } from '@waica/behaviors';
2
2
  export const ISOMETRIC_UI = {
3
3
  'crate-counter': `<style>
4
4
  .crate-counter {
@@ -27,4 +27,5 @@ export const ISOMETRIC_UI = {
27
27
  <div class="health">♥ {{health}}</div>
28
28
  `,
29
29
  ...INTERACTABLE_UI,
30
+ ...HEALTH_UI,
30
31
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waica/archetype-isometric",
3
- "version": "0.16.0",
3
+ "version": "0.18.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.16.0",
28
- "@waica/engine": "^0.16.0"
27
+ "@waica/behaviors": "^0.18.0",
28
+ "@waica/engine": "^0.18.0"
29
29
  }
30
30
  }