aboutsummaryrefslogtreecommitdiff
path: root/data/sprites.json
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-02-05 23:18:30 +0000
committerJuan J. Martinez <jjm@usebox.net>2023-02-05 23:24:06 +0000
commitb9578c2a2c60d75c4a4d4519f10b99703ee5ea27 (patch)
tree286fb453a4c73daa4b8350dca1be5ea2cb21f0e9 /data/sprites.json
parentfb1c60789db8e71584211cbef19811298c8fd6e6 (diff)
downloadspace-plat-hs-b9578c2a2c60d75c4a4d4519f10b99703ee5ea27.tar.gz
space-plat-hs-b9578c2a2c60d75c4a4d4519f10b99703ee5ea27.zip
Swpan new entities
- Each entity can generate a list of "spawns" (add a new entity) - Added a "dust" effect to the jump WIP TODO: probably wrap the entity list in a type so we don't need to pass the spritesheet to the update function.
Diffstat (limited to 'data/sprites.json')
-rw-r--r--data/sprites.json10
1 files changed, 10 insertions, 0 deletions
diff --git a/data/sprites.json b/data/sprites.json
index af3e33e..6fddd4e 100644
--- a/data/sprites.json
+++ b/data/sprites.json
@@ -12,5 +12,15 @@
[0, 1, 0, 2],
[5, 4, 5, 3]
]
+ },
+ "dust": {
+ "frames": [
+ { "x": 0, "y": 24, "width": 16, "height": 24 },
+ { "x": 16, "y": 24, "width": 16, "height": 24 },
+ { "x": 32, "y": 24, "width": 16, "height": 24 }
+ ],
+ "sets": [
+ [0, 1, 2]
+ ]
}
}