emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/pacmacs 2331e2074c 262/472: Automate Pill sprites generati


From: ELPA Syncer
Subject: [nongnu] elpa/pacmacs 2331e2074c 262/472: Automate Pill sprites generating (#26)
Date: Thu, 6 Jan 2022 21:59:30 -0500 (EST)

branch: elpa/pacmacs
commit 2331e2074ccbcec2b2c41c1a40a4f314ee344a7f
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>

    Automate Pill sprites generating (#26)
---
 sprites/.gitignore |  2 ++
 sprites/Makefile   | 12 ++++++++
 sprites/Pill.json  | 82 +++++++++++++++++++++++++++++++++++++-----------------
 3 files changed, 70 insertions(+), 26 deletions(-)

diff --git a/sprites/.gitignore b/sprites/.gitignore
new file mode 100644
index 0000000000..edb9e31526
--- /dev/null
+++ b/sprites/.gitignore
@@ -0,0 +1,2 @@
+*.raw.json
+*.png
\ No newline at end of file
diff --git a/sprites/Makefile b/sprites/Makefile
new file mode 100644
index 0000000000..eb7aa35a1c
--- /dev/null
+++ b/sprites/Makefile
@@ -0,0 +1,12 @@
+Pill=Pill.json Pill.xpm
+
+all: $(Pill) Makefile
+
+Pill.json: Pill.raw.json
+       jq ".meta.image |= \"Pill.xpm\"" Pill.raw.json > Pill.json
+
+Pill.xpm: Pill.png
+       convert Pill.png Pill.xpm
+
+Pill.raw%json Pill%png: src/Pill.ase
+       aseprite -b src/Pill.ase --sheet Pill$*png --data Pill.raw$*json
diff --git a/sprites/Pill.json b/sprites/Pill.json
index 65ce904c18..6373ea647c 100644
--- a/sprites/Pill.json
+++ b/sprites/Pill.json
@@ -1,27 +1,57 @@
-{ "frames": {
-   "Pill 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
-   },
-   "Pill 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
-   }
- },
- "meta": {
-  "app": "http://www.aseprite.org/";,
-  "version": "1.1.0-dev",
-  "image": "Pill.xpm",
-  "format": "RGBA8888",
-  "size": { "w": 80, "h": 40 },
-  "scale": "1"
- }
+{
+  "meta": {
+    "scale": "1",
+    "size": {
+      "h": 40,
+      "w": 80
+    },
+    "format": "RGBA8888",
+    "image": "Pill.xpm",
+    "version": "1.1.0-dev",
+    "app": "http://www.aseprite.org/";
+  },
+  "frames": {
+    "Pill 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
+      }
+    },
+    "Pill 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
+      }
+    }
+  }
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]