call memcpy
; set up game mode
- call game_init
+ call unit_placement_init
call mbc1_init
ret
+unit_placement_init:
+ ld de, st_update_unit_placement
+ ld hl, game_mode
+ ld bc, st_size
+ jp memcpy
+
game_init:
- ld de, st_update_game
+ ld de, st_update_game
ld hl, game_mode
ld bc, st_size
jp memcpy
handle_inputs:
input_held BTNA
jr z, @not_a REL
-
+ ; TODO: remove demo actor load
+ ; and load real units
+ call map_load_demo_actors
+ call game_init
@not_a:
; movement keys with cooldown
st_update_game:
st_def 0x00, update_game, st_update_game
+st_update_unit_placement:
+ st_def 0x00, update_unit_placement, st_update_unit_placement
st_update_pause:
st_def 0x00, update_pause, st_update_pause
st_update_game_over: