[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
+ }
+ }
+ }
}
- [nongnu] elpa/pacmacs bc62e40d25 444/472: Make rendering more reusable (#203), (continued)
- [nongnu] elpa/pacmacs bc62e40d25 444/472: Make rendering more reusable (#203), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 314809f2a7 443/472: Merge branch 'master' into feature/awesome-score-sign-203, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 5f12be8d33 450/472: Move render-object-board to pacmacs-render module, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 929b367fa2 453/472: Make render-score-table more dumb (#203), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 548155de50 456/472: Dash the mode labels (#203), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 5e0bcba1ee 468/472: Merge pull request #224 from basil-conto/blc/dash, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs b68e557f36 064/472: Refactor pacman-load-anim function. Close #53, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 3a3ead9ac1 083/472: Support dash. Close #65, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 6365c3db7b 086/472: Remove ghost-state instead of player-state, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 3cbd9508d8 089/472: Merge branch 'coverage-broken-68'. Close #68, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 2331e2074c 262/472: Automate Pill sprites generating (#26),
ELPA Syncer <=
- [nongnu] elpa/pacmacs d980f5dbe2 454/472: Introduce with-render-target macro (#203), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs d813e9c62c 466/472: Merge pull request #214 from codingteam/qfix/bump-copyright-year, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs b6c02d6f38 264/472: Automate Pacman Death sprites generating (#26), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 80f25498d6 270/472: Add initial UT for pacmacs--create-wall-tile, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs ad201e341a 271/472: Add UT for pacmacs--bits-to-xpm, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs ea74310be3 275/472: Add README for sprites. Close #148, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 80f16102c5 291/472: Implement unterrifying timed out ghosts (#153), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 609416d41a 057/472: Fix delete minibuffer or sole ordinary window error. Close #42, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 43cc1205c6 066/472: Try to fix pacman-image UTs after #52, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs e44bade6bf 087/472: Fix lambda expressions (#68), ELPA Syncer, 2022/01/06