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 /scripts/tiled.mk.awk | |
parent | 657f88952d35145b46d86a04e4b681d91f878c3a (diff) |
add scripts for converting tiles to separate png images for tilemap editingtilemap-build-system
Diffstat (limited to 'scripts/tiled.mk.awk')
-rwxr-xr-x | scripts/tiled.mk.awk | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/tiled.mk.awk b/scripts/tiled.mk.awk new file mode 100755 index 0000000..7728cf3 --- /dev/null +++ b/scripts/tiled.mk.awk @@ -0,0 +1,16 @@ +#!/bin/awk -f +BEGIN { + targets="" + print "tiled_dir:\n\tmkdir -p tiled" +} +1 { + for (i = 0; i < $2; i++) { + target = sprintf("tiled/%s_%02d.png", $1,i) + printf target" " + targets = targets" "target + } + printf "&: %s.bin\n",$1 + printf "\t$(TILEMAP2TILED) $<\n\n" +} +END { print "tiled: tiled_dir"targets } + |