create-bloop 0.0.14 → 0.0.16
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/package.json +1 -1
- package/templates/hello/package.json +2 -2
- package/templates/mario/art/Ground.aseprite +0 -0
- package/templates/mario/package.json +2 -2
- package/templates/mario/public/sprites/Ground.json +26 -0
- package/templates/mario/public/sprites/Ground.png +0 -0
- package/templates/mario/src/draw.ts +1 -2
- package/templates/mario/src/main.ts +2 -0
- package/templates/mario/src/sprites.ts +5 -0
package/package.json
CHANGED
|
Binary file
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{ "frames": {
|
|
2
|
+
"Ground.aseprite": {
|
|
3
|
+
"frame": { "x": 0, "y": 0, "w": 16, "h": 16 },
|
|
4
|
+
"rotated": false,
|
|
5
|
+
"trimmed": false,
|
|
6
|
+
"spriteSourceSize": { "x": 0, "y": 0, "w": 16, "h": 16 },
|
|
7
|
+
"sourceSize": { "w": 16, "h": 16 },
|
|
8
|
+
"duration": 100
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"meta": {
|
|
12
|
+
"app": "https://www.aseprite.org/",
|
|
13
|
+
"version": "1.3.8.1-arm64",
|
|
14
|
+
"image": "Ground.png",
|
|
15
|
+
"format": "I8",
|
|
16
|
+
"size": { "w": 16, "h": 16 },
|
|
17
|
+
"scale": "1",
|
|
18
|
+
"frameTags": [
|
|
19
|
+
],
|
|
20
|
+
"layers": [
|
|
21
|
+
{ "name": "Layer 1", "opacity": 255, "blendMode": "normal" }
|
|
22
|
+
],
|
|
23
|
+
"slices": [
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
Binary file
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
// TODO: allow loading animated sprite JSON from async boot
|
|
2
|
+
import brickJson from "../public/sprites/Brick.json";
|
|
3
|
+
import groundJson from "../public/sprites/Ground.json";
|
|
2
4
|
import marioIdleJson from "../public/sprites/MarioIdle.json";
|
|
3
5
|
import marioJumpJson from "../public/sprites/MarioJump.json";
|
|
4
6
|
import marioSkidJson from "../public/sprites/MarioSkid.json";
|
|
@@ -11,4 +13,7 @@ export const FLIPBOOKS = {
|
|
|
11
13
|
run: AsepriteFlipbook(marioWalkJson),
|
|
12
14
|
jump: AsepriteFlipbook(marioJumpJson),
|
|
13
15
|
skid: AsepriteFlipbook(marioSkidJson),
|
|
16
|
+
|
|
17
|
+
brick: AsepriteFlipbook(brickJson),
|
|
18
|
+
ground: AsepriteFlipbook(groundJson),
|
|
14
19
|
};
|