Maps kinda want lcd enabled during load.
The menu should not really have the lcd on anyway.
Maybe one day vblank_wait should just return if the lcd is off....
.de act_size, 0
; max bge queue size
-#define BGE_MAX 16
+#define BGE_MAX 8
; max bg updates per frame
#define BG_UPDATE_MAX 8
; to get the engine to load a tileset
call map_init
+ call lcd_off
+
ld hl, STR_PRESS_START
ld de, SCRN0+128+2
call puts
ld a, 144
ld [RWY], a
ld [RWX], a
-
+
+ call lcd_on
call video_fade_in
ldnull bc
ret
.db 0
STR_TEST:
-.str "0123456789ABCDEF"
+.str "01234567"
.db 0
STR_PRESS_START:
; dma previous frame's oam
call OAMDMAFN
+
+ call bg_update_queue_process
+
+ call scroll_write
; get inputs
call poll_inputs
- call scroll_write
- call bg_update_queue_process
; cycle bg tiles for animations
ld a, [frame_count]
video_fade_set_bgp 0b11000000
video_fade_set_bgp 0b00000000
+ call disableinterrutpts
pop_all
ret
video_fade_in:
push_all
+ call enableinterrupts
+
; disable winodw
ld a, [RLCD]
and a, ~LCDF_WINDOWON & 0xFF