#include "actortables.s"
#include "exittables.s"
#include "demos.s"
+#include "mainmenu.s"
; fill bank
.fill 0xFF, 0x7FFF - $
--- /dev/null
+
+ ; update main menu state
+ ; handles cursor sprite drawing
+ ; handles file/new game selection
+main_menu_update:
+ ldnull bc
+ ret
+
+ ; inits main menu
+ ; draws the menu screen to SCRN0
+main_menu_init:
+ ldnull bc
+ ret
+
+st_main_menu_update:
+ st_def 0x00, main_menu_update, st_main_menu_update
+
+st_main_menu_init:
+ st_def 0x00, main_menu_init, st_main_menu_update
st_null:
st_def 0xFF, st_null_fn, st_null
-st_update_game:
- st_def 0x00, update_game, st_update_game
-st_update_pause:
- st_def 0x00, update_pause, st_update_pause
-st_update_game_over:
- st_def 0x00, update_game_over, st_update_game_over
update_game_over:
+ ldnull bc
ret
update_game:
; tick rng every frame
call rand
- call rand_save_srand
; clear oam
call shadow_oam_clear
jp st_update
+st_update_game:
+ st_def 0x00, update_game, st_update_game
+st_update_pause:
+ st_def 0x00, update_pause, st_update_pause
+st_update_game_over:
+ st_def 0x00, update_game_over, st_update_game_over