aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-03-23 15:08:29 +0100
committerlonkaars <loek@pipeframe.xyz>2023-03-23 15:08:29 +0100
commit657f88952d35145b46d86a04e4b681d91f878c3a (patch)
tree2da8283335c6db5d04ef3ebf7abf8b9c2810fe00
parentf4295898e04de8ef2878aac1774dc7ccda501317 (diff)
use sort order in makefile and add air tile at index 0
-rw-r--r--src/static/air.hex17
-rw-r--r--src/static/makefile5
2 files changed, 20 insertions, 2 deletions
diff --git a/src/static/air.hex b/src/static/air.hex
new file mode 100644
index 0000000..5160cd6
--- /dev/null
+++ b/src/static/air.hex
@@ -0,0 +1,17 @@
+00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+
diff --git a/src/static/makefile b/src/static/makefile
index a6a18db..d84e31e 100644
--- a/src/static/makefile
+++ b/src/static/makefile
@@ -2,7 +2,8 @@ XXD := xxd
TILEPACK := ../../scripts/tilepack
MANIFEST2HEADER := ../../scripts/manifest2header.awk
-INPUT += shop.hex \
+INPUT += air.hex \
+ shop.hex \
slime.hex \
world.hex
USER_META += world.h
@@ -21,7 +22,7 @@ all: tilemap.bin tilemap.h
wc -c $< | tr '.' ' ' | awk '1 { print $$2" "$$1 / 104 }' > $@
manifest.txt: $(OUT_BIN) $(OUT_META)
- cat $(OUT_META) | sort > $@
+ cat $(OUT_META) > $@
tilemap.bin: manifest.txt $(OUT_BIN)
awk '1 { print $$1".bin" }' $< | xargs cat > $@