diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-03-23 16:22:45 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-03-23 16:22:45 +0100 |
commit | 9df9b163852cd5fd2462e1dec25ad4b00ca12a8c (patch) | |
tree | 9590f1e2068871920ffdd214873ca60583276ab0 /src/static | |
parent | 657f88952d35145b46d86a04e4b681d91f878c3a (diff) |
add scripts for converting tiles to separate png images for tilemap editingtilemap-build-system
Diffstat (limited to 'src/static')
-rw-r--r-- | src/static/.gitignore | 2 | ||||
-rw-r--r-- | src/static/makefile | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/static/.gitignore b/src/static/.gitignore index f24ab90..348c5b9 100644 --- a/src/static/.gitignore +++ b/src/static/.gitignore @@ -2,3 +2,5 @@ **/*.meta manifest.txt tilemap.h +tiled/* +tiled.mk 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 |