You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Add wTitleScreenSelectedOption constants
This commit is contained in:
@@ -959,6 +959,15 @@ Intro_PlacePlayerSprite:
|
|||||||
db 10 * 8 + 4, 9 * 8, 2
|
db 10 * 8 + 4, 9 * 8, 2
|
||||||
db 10 * 8 + 4, 10 * 8, 3
|
db 10 * 8 + 4, 10 * 8, 3
|
||||||
|
|
||||||
|
|
||||||
|
const_def
|
||||||
|
const TITLESCREENOPTION_MAIN_MENU
|
||||||
|
const TITLESCREENOPTION_DELETE_SAVE_DATA
|
||||||
|
const TITLESCREENOPTION_RESTART
|
||||||
|
const TITLESCREENOPTION_UNUSED
|
||||||
|
const TITLESCREENOPTION_RESET_CLOCK
|
||||||
|
NUM_TITLESCREENOPTIONS EQU const_value
|
||||||
|
|
||||||
IntroSequence:
|
IntroSequence:
|
||||||
callfar Copyright_GameFreakPresents
|
callfar Copyright_GameFreakPresents
|
||||||
jr c, StartTitleScreen
|
jr c, StartTitleScreen
|
||||||
@@ -1000,7 +1009,7 @@ StartTitleScreen:
|
|||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call UpdateTimePals
|
call UpdateTimePals
|
||||||
ld a, [wTitleScreenSelectedOption]
|
ld a, [wTitleScreenSelectedOption]
|
||||||
cp 5
|
cp NUM_TITLESCREENOPTIONS
|
||||||
jr c, .ok
|
jr c, .ok
|
||||||
xor a
|
xor a
|
||||||
.ok
|
.ok
|
||||||
@@ -1183,7 +1192,7 @@ TitleScreenMain:
|
|||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
and D_LEFT + D_UP
|
and D_LEFT + D_UP
|
||||||
cp D_LEFT + D_UP
|
cp D_LEFT + D_UP
|
||||||
jr z, .clock_reset
|
jr z, .reset_clock
|
||||||
|
|
||||||
; Press Start or A to start the game.
|
; Press Start or A to start the game.
|
||||||
.check_start
|
.check_start
|
||||||
@@ -1193,11 +1202,11 @@ TitleScreenMain:
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.incave
|
.incave
|
||||||
ld a, 0
|
ld a, TITLESCREENOPTION_MAIN_MENU
|
||||||
jr .done
|
jr .done
|
||||||
|
|
||||||
.delete_save_data
|
.delete_save_data
|
||||||
ld a, 1
|
ld a, TITLESCREENOPTION_DELETE_SAVE_DATA
|
||||||
|
|
||||||
.done
|
.done
|
||||||
ld [wTitleScreenSelectedOption], a
|
ld [wTitleScreenSelectedOption], a
|
||||||
@@ -1223,8 +1232,8 @@ TitleScreenMain:
|
|||||||
inc [hl]
|
inc [hl]
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.clock_reset
|
.reset_clock
|
||||||
ld a, 4
|
ld a, TITLESCREENOPTION_RESET_CLOCK
|
||||||
ld [wTitleScreenSelectedOption], a
|
ld [wTitleScreenSelectedOption], a
|
||||||
|
|
||||||
; Return to the intro sequence.
|
; Return to the intro sequence.
|
||||||
@@ -1242,7 +1251,7 @@ TitleScreenEnd:
|
|||||||
and a
|
and a
|
||||||
ret nz
|
ret nz
|
||||||
|
|
||||||
ld a, 2
|
ld a, TITLESCREENOPTION_RESTART
|
||||||
ld [wTitleScreenSelectedOption], a
|
ld [wTitleScreenSelectedOption], a
|
||||||
|
|
||||||
; Back to the intro.
|
; Back to the intro.
|
||||||
|
Reference in New Issue
Block a user