From 657f88952d35145b46d86a04e4b681d91f878c3a Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 23 Mar 2023 15:08:29 +0100 Subject: use sort order in makefile and add air tile at index 0 --- src/static/air.hex | 17 +++++++++++++++++ src/static/makefile | 5 +++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 src/static/air.hex 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 > $@ -- cgit v1.2.3