@waica/archetype-topdown 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 +12 -3
  2. package/package.json +3 -3
package/dist/prefabs.js CHANGED
@@ -24,7 +24,10 @@ export const TOPDOWN_PREFABS = {
24
24
  states: TOPDOWN_PLAYER_STATE_GRAPH.states,
25
25
  },
26
26
  },
27
- { type: 'Hitbox', props: { width: 0.8, height: 0.8 } },
27
+ {
28
+ type: 'Hitbox',
29
+ props: { layer: 'player', collidesWith: ['*'], width: 0.8, height: 0.8 },
30
+ },
28
31
  { type: 'Respawnable' },
29
32
  { type: 'Health', props: { max: 3, invulnerability: 1 } },
30
33
  ],
@@ -96,7 +99,10 @@ export const TOPDOWN_PREFABS = {
96
99
  states: { walk: { clip: 'idle' } },
97
100
  },
98
101
  },
99
- { type: 'Hitbox', props: { width: 0.8, height: 0.7 } },
102
+ {
103
+ type: 'Hitbox',
104
+ props: { layer: 'enemy', collidesWith: ['player'], width: 0.8, height: 0.7 },
105
+ },
100
106
  // No stomping without gravity: any contact hurts.
101
107
  { type: 'Hazard', props: { stompable: false, contactDamage: 1 } },
102
108
  ],
@@ -117,7 +123,10 @@ export const TOPDOWN_PREFABS = {
117
123
  initialClip: 'idle',
118
124
  },
119
125
  },
120
- { type: 'Hitbox', props: { width: 0.5, height: 0.5 } },
126
+ {
127
+ type: 'Hitbox',
128
+ props: { layer: 'collectible', collidesWith: ['player'], width: 0.5, height: 0.5 },
129
+ },
121
130
  { type: 'Collectible', props: { value: 1 } },
122
131
  ],
123
132
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waica/archetype-topdown",
3
- "version": "0.14.1",
3
+ "version": "0.15.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.14.1",
28
- "@waica/engine": "^0.14.1"
27
+ "@waica/behaviors": "^0.15.0",
28
+ "@waica/engine": "^0.15.0"
29
29
  }
30
30
  }