From 9df9b163852cd5fd2462e1dec25ad4b00ca12a8c Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 23 Mar 2023 16:22:45 +0100 Subject: add scripts for converting tiles to separate png images for tilemap editing --- src/static/makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/static/makefile') diff --git a/src/static/makefile b/src/static/makefile index d84e31e..6025a55 100644 --- a/src/static/makefile +++ b/src/static/makefile @@ -1,6 +1,8 @@ XXD := xxd TILEPACK := ../../scripts/tilepack MANIFEST2HEADER := ../../scripts/manifest2header.awk +TILEDMK := ../../scripts/tiled.mk.awk +TILEMAP2TILED := ../../scripts/tilemap2tiled INPUT += air.hex \ shop.hex \ @@ -31,5 +33,10 @@ tilemap.h: manifest.txt $(MANIFEST2HEADER) $< > $@ cat $(USER_META) >> $@ +tiled.mk: manifest.txt + $(TILEDMK) < $< > $@ + +include tiled.mk + clean: - $(RM) $(OUT_BIN) $(OUT_META) manifest.txt tilemap.h tilemap.bin + $(RM) -r $(OUT_BIN) $(OUT_META) manifest.txt tilemap.h tilemap.bin tiled.mk tiled -- cgit v1.2.3