summaryrefslogtreecommitdiff
path: root/game/data/Makefile
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2020-12-30 19:07:31 +0000
committerJuan J. Martinez <jjm@usebox.net>2020-12-30 19:23:41 +0000
commit2682bc5d1d864341aaeb42a449db73c3ecd16d70 (patch)
tree9116764364b4ee0ce7f6037305077807b57776de /game/data/Makefile
downloadubox-msx-lib-2682bc5d1d864341aaeb42a449db73c3ecd16d70.tar.gz
ubox-msx-lib-2682bc5d1d864341aaeb42a449db73c3ecd16d70.zip
Initial import1.0
Diffstat (limited to 'game/data/Makefile')
-rw-r--r--game/data/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/game/data/Makefile b/game/data/Makefile
new file mode 100644
index 0000000..f79ae33
--- /dev/null
+++ b/game/data/Makefile
@@ -0,0 +1,21 @@
+OUTPUT=../generated
+GENERATED=$(OUTPUT)/tiles.h $(OUTPUT)/player.h $(OUTPUT)/enemy.h $(OUTPUT)/map.h
+
+all: $(GENERATED)
+
+$(OUTPUT)/tiles.h: tiles.png
+ ../../tools/png2tiles.py -i tiles $< > $@
+
+$(OUTPUT)/player.h: player.png
+ ../../tools/png2sprites.py -i player_sprite $< > $@
+
+$(OUTPUT)/enemy.h: enemy.png
+ ../../tools/png2sprites.py -i enemy_sprite $< > $@
+
+$(OUTPUT)/map.h: map.json map_conf.json
+ ../../tools/map.py --max-ents 11 --room-height 21 map.json map > $@
+
+.PHONY: all clean
+clean:
+ rm -f $(OUTPUT)/*
+