From 2682bc5d1d864341aaeb42a449db73c3ecd16d70 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Wed, 30 Dec 2020 19:07:31 +0000 Subject: Initial import --- game/data/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 game/data/Makefile (limited to 'game/data/Makefile') 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)/* + -- cgit v1.2.3