This allows us to load a room without turning off the screen :^)
; TODO: save current tables back
call disableinterrutpts
call vblank_wait
- call lcd_off
+ ;call lcd_off
ld hl, curr_room_exits ; ptr to exit table
ld a, [hl+]
ld a, WHO_PLAYER
ld [who], a
- call lcd_on
+ ;call lcd_on
call enableinterrupts
ret
; de: next row
; hl: next screen address
room_row_draw:
+ ; wait for vlbank for every row if the screen is not off
+ ld a, [RLCD]
+ cp a, 0
+ call nz, vblank_wait
+
ld b, ROOM_W
; we'll need
add hl, bc
ld b, ROOM_W
-
+
+
+ ; wait for vlbank for every row if the screen is not off
+ ld a, [RLCD]
+ cp a, 0
+ call nz, vblank_wait
+
; almost the same loop again
; for the second row
; of the meta tile