From: Lukas Krickl Date: Sun, 4 Jan 2026 11:25:49 +0000 (+0100) Subject: cleanup of directory structure X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=b7b8a0afe1eb4d3c36b642db2e385d27f8041739;p=gbrg%2F.git cleanup of directory structure --- diff --git a/levels/l1.inc b/levels/l1.inc new file mode 100644 index 0000000..4727563 --- /dev/null +++ b/levels/l1.inc @@ -0,0 +1,17 @@ +; this map was generated by tmx2map.py + +.db 0x9, 0xc, 0xc, 0x5, 0x8, 0xc, 0x5, 0x9, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 +.db 0x3, 0x0, 0x0, 0xa, 0xd, 0xc, 0xe, 0x6, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 +.db 0xb, 0xc, 0x4, 0x0, 0xa, 0xd, 0xc, 0xc, 0xc, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 +.db 0xa, 0xc, 0x5, 0x9, 0xc, 0xf, 0xc, 0xc, 0x4, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 +.db 0x0, 0x0, 0xb, 0x6, 0x1, 0xa, 0xc, 0x5, 0x0, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 +.db 0x0, 0x0, 0x3, 0x9, 0xf, 0x4, 0x0, 0xa, 0xc, 0xc, 0xf, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 +.db 0x0, 0x0, 0xa, 0x6, 0x3, 0x0, 0x1, 0x0, 0x0, 0x0, 0x3, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 +.db 0x0, 0x0, 0x0, 0x0, 0xb, 0xc, 0xe, 0x5, 0x0, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 +.db 0x0, 0x0, 0x0, 0x0, 0x2, 0x0, 0x0, 0x3, 0x0, 0x0, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 +.db 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 +.db 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 +.db 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 +.db 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 +.db 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 + diff --git a/makefile b/makefile index ba4cd84..60497e9 100644 --- a/makefile +++ b/makefile @@ -4,12 +4,13 @@ AS=ulas FLAGS=-D DEBUG #SYMTYPE=sym SYMTYPE=mlb +INCS=-I ./src -I ./tiles -I ./maps -I ./levels bin: - $(AS) $(FLAGS) -o $(NAME).gb -l ${NAME}.lst -s $(NAME).$(SYMTYPE) -S $(SYMTYPE) -I ./src -I ./tiles -I ./maps src/main.s + $(AS) $(FLAGS) -o $(NAME).gb -l ${NAME}.lst -s $(NAME).$(SYMTYPE) -S $(SYMTYPE) $(INCS) src/main.s test: - $(AS) $(FLAGS) -o $(TEST_NAME).gb -l ${TEST_NAME}.lst -s $(TEST_NAME).mlb -S mlb -I ./src -I ./tiles -I ./maps src/main.s + $(AS) $(FLAGS) -o $(TEST_NAME).gb -l ${TEST_NAME}.lst -s $(TEST_NAME).mlb -S mlb %(INCS) src/main.s .PHONY: tiles tiles: @@ -19,10 +20,9 @@ tiles: ./tools/png2chr.py assets/tiles/bank9000.png > tiles/bank9000.inc .PHONY: maps -maps: +maps: ./tools/tmx2map.py assets/maps/near_wall.tmx 1 > maps/near_wall.inc ./tools/tmx2map.py assets/maps/far_wall.tmx 1 > maps/far_wall.inc - ./tools/tmx2map.py assets/maps/l1.tmx > maps/l1.inc ./tools/tmx2map.py assets/maps/near_left_door.tmx 1 > maps/near_left_door.inc ./tools/tmx2map.py assets/maps/near_right_door.tmx 1 > maps/near_right_door.inc @@ -47,3 +47,7 @@ maps: ./tools/tmx2map.py assets/maps/near_right_center_wall.tmx 1 > maps/near_right_center_wall.inc ./tools/tmx2map.py assets/maps/near_left_center_wall.tmx 1 > maps/near_left_center_wall.inc + +.PHONY: levels +levels: + ./tools/tmx2map.py assets/levels/l1.tmx > levels/l1.inc diff --git a/maps/l1.inc b/maps/l1.inc deleted file mode 100644 index 4727563..0000000 --- a/maps/l1.inc +++ /dev/null @@ -1,17 +0,0 @@ -; this map was generated by tmx2map.py - -.db 0x9, 0xc, 0xc, 0x5, 0x8, 0xc, 0x5, 0x9, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 -.db 0x3, 0x0, 0x0, 0xa, 0xd, 0xc, 0xe, 0x6, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 -.db 0xb, 0xc, 0x4, 0x0, 0xa, 0xd, 0xc, 0xc, 0xc, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 -.db 0xa, 0xc, 0x5, 0x9, 0xc, 0xf, 0xc, 0xc, 0x4, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0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