@waica/archetype-isometric 0.14.1 → 0.15.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.
Files changed (2) hide show
  1. package/dist/prefabs.js +21 -4
  2. package/package.json +3 -3
package/dist/prefabs.js CHANGED
@@ -95,7 +95,10 @@ export const ISOMETRIC_PREFABS = {
95
95
  states: ISO_PLAYER_STATE_GRAPH.states,
96
96
  },
97
97
  },
98
- { type: 'Hitbox', props: { width: 0.8, height: 0.8 } },
98
+ {
99
+ type: 'Hitbox',
100
+ props: { layer: 'player', collidesWith: ['*'], width: 0.8, height: 0.8 },
101
+ },
99
102
  { type: 'MeleeAttack', props: { swingSound: 'waica:iso-sword-swing' } },
100
103
  { type: 'Respawnable' },
101
104
  {
@@ -154,7 +157,10 @@ export const ISOMETRIC_PREFABS = {
154
157
  states: PATROLLER_STATE_GRAPH.states,
155
158
  },
156
159
  },
157
- { type: 'Hitbox', props: { width: 0.8, height: 0.7 } },
160
+ {
161
+ type: 'Hitbox',
162
+ props: { layer: 'enemy', collidesWith: ['player'], width: 0.8, height: 0.7 },
163
+ },
158
164
  { type: 'Hazard', props: { stompable: false, contactDamage: 1 } },
159
165
  { type: 'Health', props: { max: 2, invulnerability: 0.3, hurtSound: 'waica:iso-hit' } },
160
166
  ],
@@ -173,7 +179,10 @@ export const ISOMETRIC_PREFABS = {
173
179
  anchorY: 0,
174
180
  },
175
181
  },
176
- { type: 'Hitbox', props: { width: 0.6, height: 0.6 } },
182
+ {
183
+ type: 'Hitbox',
184
+ props: { layer: 'collectible', collidesWith: ['player'], width: 0.6, height: 0.6 },
185
+ },
177
186
  { type: 'Collectible', props: { value: 1 } },
178
187
  ],
179
188
  },
@@ -225,7 +234,15 @@ export const ISOMETRIC_PREFABS = {
225
234
  anchorY: 0,
226
235
  },
227
236
  },
228
- { type: 'Hitbox', props: { width: 0.8, height: 0.8 } },
237
+ {
238
+ type: 'Hitbox',
239
+ props: {
240
+ layer: 'scene-transition',
241
+ collidesWith: ['player'],
242
+ width: 0.8,
243
+ height: 0.8,
244
+ },
245
+ },
229
246
  { type: 'SceneTransition', props: { scene: 'cave' } },
230
247
  ],
231
248
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waica/archetype-isometric",
3
- "version": "0.14.1",
3
+ "version": "0.15.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.14.1",
28
- "@waica/engine": "^0.14.1"
27
+ "@waica/behaviors": "^0.15.0",
28
+ "@waica/engine": "^0.15.0"
29
29
  }
30
30
  }