|
@ -1,3 +1,4 @@ |
|
|
|
|
|
INCLUDE "game.inc" |
|
|
INCLUDE "hardware.inc" |
|
|
INCLUDE "hardware.inc" |
|
|
|
|
|
|
|
|
SECTION "Title Loop", ROM0 |
|
|
SECTION "Title Loop", ROM0 |
|
@ -36,8 +37,15 @@ Title_Start:: |
|
|
|
|
|
|
|
|
call Keys_Update |
|
|
call Keys_Update |
|
|
|
|
|
|
|
|
; todo: check for start press and transition to game state |
|
|
|
|
|
|
|
|
ld a, [keys] |
|
|
|
|
|
and PADF_START |
|
|
|
|
|
jr z, .wait |
|
|
|
|
|
|
|
|
|
|
|
ld a, GAME_STATEF_GAME |
|
|
|
|
|
ld [state], a |
|
|
|
|
|
ret |
|
|
|
|
|
|
|
|
|
|
|
.wait: |
|
|
; wait for vblank |
|
|
; wait for vblank |
|
|
halt |
|
|
halt |
|
|
|
|
|
|
|
|