branch: elpa/pacmacs
commit b6c02d6f38545940811ceda034ff50bbf73d11b5
Author: rexim <[email protected]>
Commit: rexim <[email protected]>
Automate Pacman Death sprites generating (#26)
---
sprites/Makefile | 12 +-
sprites/Pacman-Death.json | 343 +++++++++++++++++++++++++++++++++-------------
2 files changed, 256 insertions(+), 99 deletions(-)
diff --git a/sprites/Makefile b/sprites/Makefile
index 9ff31f7816..ebbf8879b4 100644
--- a/sprites/Makefile
+++ b/sprites/Makefile
@@ -1,7 +1,8 @@
PILL=Pill.json Pill.xpm
BIG_PILL=Big-Pill.json Big-Pill.xpm
+PACMAN_DEATH=Pacman-Death.json Pacman-Death.xpm
-all: $(PILL) $(BIG_PILL) Makefile
+all: $(PILL) $(BIG_PILL) $(PACMAN_DEATH) Makefile
Pill.json: Pill.raw.json
jq ".meta.image |= \"Pill.xpm\"" Pill.raw.json > Pill.json
@@ -20,3 +21,12 @@ Big-Pill.xpm: Big-Pill.png
Big-Pill.raw%json Big-Pill%png: src/Big-Pill.ase
aseprite -b src/Big-Pill.ase --sheet Big-Pill$*png --data
Big-Pill.raw$*json
+
+Pacman-Death.json: Pacman-Death.raw.json
+ jq ".meta.image |= \"Pacman-Death.xpm\"" Pacman-Death.raw.json >
Pacman-Death.json
+
+Pacman-Death.xpm: Pacman-Death.png
+ convert Pacman-Death.png Pacman-Death.xpm
+
+Pacman-Death.raw%json Pacman-Death%png: src/Pacman-Death.ase
+ aseprite -b src/Pacman-Death.ase --sheet Pacman-Death$*png --data
Pacman-Death.raw$*json
diff --git a/sprites/Pacman-Death.json b/sprites/Pacman-Death.json
index d8295fc3c9..b3ed2b66a7 100644
--- a/sprites/Pacman-Death.json
+++ b/sprites/Pacman-Death.json
@@ -1,99 +1,246 @@
-{ "frames": {
- "Pacman-Death 0.ase": {
- "frame": { "x": 0, "y": 0, "w": 40, "h": 40 },
- "rotated": false,
- "trimmed": false,
- "spriteSourceSize": { "x": 0, "y": 0, "w": 40, "h": 40 },
- "sourceSize": { "w": 40, "h": 40 },
- "duration": 100
- },
- "Pacman-Death 1.ase": {
- "frame": { "x": 40, "y": 0, "w": 40, "h": 40 },
- "rotated": false,
- "trimmed": false,
- "spriteSourceSize": { "x": 0, "y": 0, "w": 40, "h": 40 },
- "sourceSize": { "w": 40, "h": 40 },
- "duration": 100
- },
- "Pacman-Death 2.ase": {
- "frame": { "x": 80, "y": 0, "w": 40, "h": 40 },
- "rotated": false,
- "trimmed": false,
- "spriteSourceSize": { "x": 0, "y": 0, "w": 40, "h": 40 },
- "sourceSize": { "w": 40, "h": 40 },
- "duration": 100
- },
- "Pacman-Death 3.ase": {
- "frame": { "x": 120, "y": 0, "w": 40, "h": 40 },
- "rotated": false,
- "trimmed": false,
- "spriteSourceSize": { "x": 0, "y": 0, "w": 40, "h": 40 },
- "sourceSize": { "w": 40, "h": 40 },
- "duration": 100
- },
- "Pacman-Death 4.ase": {
- "frame": { "x": 160, "y": 0, "w": 40, "h": 40 },
- "rotated": false,
- "trimmed": false,
- "spriteSourceSize": { "x": 0, "y": 0, "w": 40, "h": 40 },
- "sourceSize": { "w": 40, "h": 40 },
- "duration": 100
- },
- "Pacman-Death 5.ase": {
- "frame": { "x": 200, "y": 0, "w": 40, "h": 40 },
- "rotated": false,
- "trimmed": false,
- "spriteSourceSize": { "x": 0, "y": 0, "w": 40, "h": 40 },
- "sourceSize": { "w": 40, "h": 40 },
- "duration": 100
- },
- "Pacman-Death 6.ase": {
- "frame": { "x": 240, "y": 0, "w": 40, "h": 40 },
- "rotated": false,
- "trimmed": false,
- "spriteSourceSize": { "x": 0, "y": 0, "w": 40, "h": 40 },
- "sourceSize": { "w": 40, "h": 40 },
- "duration": 100
- },
- "Pacman-Death 7.ase": {
- "frame": { "x": 280, "y": 0, "w": 40, "h": 40 },
- "rotated": false,
- "trimmed": false,
- "spriteSourceSize": { "x": 0, "y": 0, "w": 40, "h": 40 },
- "sourceSize": { "w": 40, "h": 40 },
- "duration": 100
- },
- "Pacman-Death 8.ase": {
- "frame": { "x": 320, "y": 0, "w": 40, "h": 40 },
- "rotated": false,
- "trimmed": false,
- "spriteSourceSize": { "x": 0, "y": 0, "w": 40, "h": 40 },
- "sourceSize": { "w": 40, "h": 40 },
- "duration": 200
- },
- "Pacman-Death 9.ase": {
- "frame": { "x": 360, "y": 0, "w": 40, "h": 40 },
- "rotated": false,
- "trimmed": false,
- "spriteSourceSize": { "x": 0, "y": 0, "w": 40, "h": 40 },
- "sourceSize": { "w": 40, "h": 40 },
- "duration": 200
- },
- "Pacman-Death 10.ase": {
- "frame": { "x": 400, "y": 0, "w": 40, "h": 40 },
- "rotated": false,
- "trimmed": false,
- "spriteSourceSize": { "x": 0, "y": 0, "w": 40, "h": 40 },
- "sourceSize": { "w": 40, "h": 40 },
- "duration": 400
- }
- },
- "meta": {
- "app": "http://www.aseprite.org/",
- "version": "1.1.0-dev",
- "image": "Pacman-Death.png",
- "format": "RGBA8888",
- "size": { "w": 440, "h": 40 },
- "scale": "1"
- }
+{
+ "meta": {
+ "scale": "1",
+ "size": {
+ "h": 40,
+ "w": 440
+ },
+ "format": "RGBA8888",
+ "image": "Pacman-Death.xpm",
+ "version": "1.1.0-dev",
+ "app": "http://www.aseprite.org/"
+ },
+ "frames": {
+ "Pacman-Death 10.ase": {
+ "duration": 400,
+ "sourceSize": {
+ "h": 40,
+ "w": 40
+ },
+ "spriteSourceSize": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 0
+ },
+ "trimmed": false,
+ "rotated": false,
+ "frame": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 400
+ }
+ },
+ "Pacman-Death 9.ase": {
+ "duration": 200,
+ "sourceSize": {
+ "h": 40,
+ "w": 40
+ },
+ "spriteSourceSize": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 0
+ },
+ "trimmed": false,
+ "rotated": false,
+ "frame": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 360
+ }
+ },
+ "Pacman-Death 8.ase": {
+ "duration": 200,
+ "sourceSize": {
+ "h": 40,
+ "w": 40
+ },
+ "spriteSourceSize": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 0
+ },
+ "trimmed": false,
+ "rotated": false,
+ "frame": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 320
+ }
+ },
+ "Pacman-Death 0.ase": {
+ "duration": 100,
+ "sourceSize": {
+ "h": 40,
+ "w": 40
+ },
+ "spriteSourceSize": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 0
+ },
+ "trimmed": false,
+ "rotated": false,
+ "frame": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 0
+ }
+ },
+ "Pacman-Death 1.ase": {
+ "duration": 100,
+ "sourceSize": {
+ "h": 40,
+ "w": 40
+ },
+ "spriteSourceSize": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 0
+ },
+ "trimmed": false,
+ "rotated": false,
+ "frame": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 40
+ }
+ },
+ "Pacman-Death 2.ase": {
+ "duration": 100,
+ "sourceSize": {
+ "h": 40,
+ "w": 40
+ },
+ "spriteSourceSize": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 0
+ },
+ "trimmed": false,
+ "rotated": false,
+ "frame": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 80
+ }
+ },
+ "Pacman-Death 3.ase": {
+ "duration": 100,
+ "sourceSize": {
+ "h": 40,
+ "w": 40
+ },
+ "spriteSourceSize": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 0
+ },
+ "trimmed": false,
+ "rotated": false,
+ "frame": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 120
+ }
+ },
+ "Pacman-Death 4.ase": {
+ "duration": 100,
+ "sourceSize": {
+ "h": 40,
+ "w": 40
+ },
+ "spriteSourceSize": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 0
+ },
+ "trimmed": false,
+ "rotated": false,
+ "frame": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 160
+ }
+ },
+ "Pacman-Death 5.ase": {
+ "duration": 100,
+ "sourceSize": {
+ "h": 40,
+ "w": 40
+ },
+ "spriteSourceSize": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 0
+ },
+ "trimmed": false,
+ "rotated": false,
+ "frame": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 200
+ }
+ },
+ "Pacman-Death 6.ase": {
+ "duration": 100,
+ "sourceSize": {
+ "h": 40,
+ "w": 40
+ },
+ "spriteSourceSize": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 0
+ },
+ "trimmed": false,
+ "rotated": false,
+ "frame": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 240
+ }
+ },
+ "Pacman-Death 7.ase": {
+ "duration": 100,
+ "sourceSize": {
+ "h": 40,
+ "w": 40
+ },
+ "spriteSourceSize": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 0
+ },
+ "trimmed": false,
+ "rotated": false,
+ "frame": {
+ "h": 40,
+ "w": 40,
+ "y": 0,
+ "x": 280
+ }
+ }
+ }
}