-Subproject commit 49200b3a091eca46b333f2d636e56f371d07fe52
+Subproject commit e9ea59d31a901e3b83706038af58940b0d3ed90a
./tools/png2chr.py assets/tiles/bank9000.png > tiles/bank9000.inc
.PHONY: maps
-maps:
+maps:
./tools/tmx2map.py assets/maps/l1.tmx > maps/l1.inc
./tools/tmx2map.py assets/maps/f1r1.tmx > maps/f1r1.inc
./tools/tmx2map.py assets/maps/f1r2.tmx > maps/f1r2.inc
+ ./tools/tmx2map.py assets/maps/f1r3.tmx > maps/f1r3.inc
+ ./tools/tmx2map.py assets/maps/f1r4.tmx > maps/f1r4.inc
+
+.PHONY: maps
+clean:
+ rm -f ./maps/*.inc
+ rm -f ./tiles/*.inc
--- /dev/null
+; this map was generated by tmx2map.py
+
+.db 0x0, 0x0, 0x0, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x1, 0x1
+.db 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x2, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x2
+.db 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2
+.db 0x0, 0x0, 0x0, 0x0
+
--- /dev/null
+; this map was generated by tmx2map.py
+
+.db 0x0, 0x0, 0x0, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x0, 0x0, 0x1, 0x1, 0x1
+.db 0x1, 0x1, 0x1, 0x0, 0x0, 0x3, 0x3, 0x1, 0x0, 0x0, 0x0, 0x0, 0x2, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x2
+.db 0x0, 0x3, 0x3, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2
+.db 0x0, 0x0, 0x0, 0x0
+
ld [srand], a
ld a, [mapgen_game_seed+1]
ld [srand+1], a
- BREAK
ret
; makes a room at a sector offset
#include "f1r1.inc"
f1r2:
#include "f1r2.inc"
+f1r3:
+#include "f1r3.inc"
+f1r4:
+#include "f1r4.inc"
floor1_patterns:
dw f1r1
dw f1r2
+dw f1r3
+dw f1r4
floor1_patterns_end: