@waica/archetype-platformer 0.6.0 → 0.6.1
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 +1 -1
- package/dist/scene-default.js +9 -1
- package/package.json +3 -3
package/dist/prefabs.js
CHANGED
|
@@ -23,7 +23,7 @@ export const PLATFORMER_PREFABS = {
|
|
|
23
23
|
{ type: 'Hitbox', props: { width: 0.9, height: 0.95 } },
|
|
24
24
|
{ type: 'Respawnable' },
|
|
25
25
|
{ type: 'Health', props: { max: 3, invulnerability: 1 } },
|
|
26
|
-
{ type: 'OutOfBounds', props: { minY: -
|
|
26
|
+
{ type: 'OutOfBounds', props: { minY: -8 } },
|
|
27
27
|
],
|
|
28
28
|
},
|
|
29
29
|
'characters/slime': {
|
package/dist/scene-default.js
CHANGED
|
@@ -20,7 +20,15 @@ export const DOG_SPRITE = {
|
|
|
20
20
|
*/
|
|
21
21
|
export const PLATFORMER_SCENE = {
|
|
22
22
|
waicaScene: 3,
|
|
23
|
-
camera: {
|
|
23
|
+
camera: {
|
|
24
|
+
position: [0, -1],
|
|
25
|
+
zoom: 12,
|
|
26
|
+
follow: 'Player',
|
|
27
|
+
// Clamped to the walls and the ground so falling out of the level
|
|
28
|
+
// happens off-screen: the view bottom (-7) sits just under the ground
|
|
29
|
+
// (bottom edge -6), above the kill height (-8).
|
|
30
|
+
limits: { minX: -16, maxX: 26, minY: -7, maxY: 5 },
|
|
31
|
+
},
|
|
24
32
|
entities: [
|
|
25
33
|
{ name: 'Player', prefab: 'characters/player', position: [0, -1] },
|
|
26
34
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@waica/archetype-platformer",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
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.6.
|
|
28
|
-
"@waica/engine": "^0.6.
|
|
27
|
+
"@waica/behaviors": "^0.6.1",
|
|
28
|
+
"@waica/engine": "^0.6.1"
|
|
29
29
|
}
|
|
30
30
|
}
|