collision_tile_lut:
.rep cti, ROOM_H, 1, .db cti * ROOM_W
+ ; collision-tile call
+ ; but using static
+ ; params in wram:
+ ; inputs:
+ ; ct_pty/ct_ptx: collision tile y/x
+ ; ct_pox/ct_poy: position y/x
+collision_tile_stat:
+ ld a, [ct_pty]
+ ld b, a ; b = pty
+
+ ld a, [ct_ptx]
+ ld c, a ; c = ptx
+
+ ld a, [ct_poy]
+ ld d, a ; d = poy
+
+ ld a, [ct_poy]
+ ld e, a ; e = pox
+
; checks a collision ptr
; with a map's meta tile
; if the tile has collision flag set
; returns 1 otherwise 0
; inputs:
- ; [hl]: collision point (y/x)
+ ; b/c: collision point (y/x)
; d : y pos
; e : x pos
; returns: