@waica/archetype-platformer 0.4.2 → 0.5.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 +7 -1
- package/dist/registry-data.js +3 -1
- package/package.json +3 -3
package/dist/prefabs.js
CHANGED
|
@@ -21,7 +21,9 @@ export const PLATFORMER_PREFABS = {
|
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
23
|
{ type: 'Hitbox', props: { width: 0.9, height: 0.95 } },
|
|
24
|
-
{ type: 'Respawnable'
|
|
24
|
+
{ type: 'Respawnable' },
|
|
25
|
+
{ type: 'Health', props: { max: 3, invulnerability: 1 } },
|
|
26
|
+
{ type: 'OutOfBounds', props: { minY: -12 } },
|
|
25
27
|
],
|
|
26
28
|
},
|
|
27
29
|
'characters/slime': {
|
|
@@ -51,6 +53,10 @@ export const PLATFORMER_PREFABS = {
|
|
|
51
53
|
},
|
|
52
54
|
{ type: 'Hitbox', props: { width: 0.9, height: 0.6 } },
|
|
53
55
|
{ type: 'Hazard', props: { stompable: true, bounce: 10 } },
|
|
56
|
+
// One point: a stomp still kills it in a single hit, the same as
|
|
57
|
+
// before the damage model existed — now said out loud instead of
|
|
58
|
+
// hardcoded into Hazard.
|
|
59
|
+
{ type: 'Health', props: { max: 1 } },
|
|
54
60
|
],
|
|
55
61
|
},
|
|
56
62
|
'objects/coin': {
|
package/dist/registry-data.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnimatedSprite, DynamicBody, Hitbox, Solid, Sprite, StateMachine, } from '@waica/engine';
|
|
2
|
-
import { Chaser, Collectible, Hazard, Lifetime, Patrol, PlatformerMotor, Respawnable, } from '@waica/behaviors';
|
|
2
|
+
import { Chaser, Collectible, Hazard, Health, Lifetime, OutOfBounds, Patrol, PlatformerMotor, Respawnable, } from '@waica/behaviors';
|
|
3
3
|
import { PLATFORMER_ART } from './art.js';
|
|
4
4
|
import { PLATFORMER_PREFABS } from './prefabs.js';
|
|
5
5
|
import { PLATFORMER_UI } from './ui.js';
|
|
@@ -18,7 +18,9 @@ export const PLATFORMER_REGISTRY_DATA = {
|
|
|
18
18
|
Patrol,
|
|
19
19
|
Chaser,
|
|
20
20
|
Hazard,
|
|
21
|
+
Health,
|
|
21
22
|
Respawnable,
|
|
23
|
+
OutOfBounds,
|
|
22
24
|
Lifetime,
|
|
23
25
|
},
|
|
24
26
|
resolveAsset: (uri) => PACKAGE_ASSETS[uri] ?? uri,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@waica/archetype-platformer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.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.
|
|
28
|
-
"@waica/engine": "^0.
|
|
27
|
+
"@waica/behaviors": "^0.5.0",
|
|
28
|
+
"@waica/engine": "^0.5.0"
|
|
29
29
|
}
|
|
30
30
|
}
|