Functional stub of title menus: minor clean up (#17)

This commit is contained in:
xCrystal 2023-10-02 13:22:54 +02:00
parent 0795c02a9c
commit 7d9b5bb279
2 changed files with 7 additions and 60 deletions

View File

@ -1,30 +1,3 @@
PrintDayOfWeek:
push de
ld hl, .Days
ld a, b
call GetNthString
ld d, h
ld e, l
pop hl
call PlaceString
ld h, b
ld l, c
ld de, .Day
call PlaceString
ret
.Days:
db "SUN@"
db "MON@"
db "TUES@"
db "WEDNES@"
db "THURS@"
db "FRI@"
db "SATUR@"
.Day:
db "DAY@"
Option: Option:
farcall _Option farcall _Option
ret ret
@ -41,25 +14,16 @@ NewGame:
call ClearMenuAndWindowData call ClearMenuAndWindowData
call InitTime ; set wStartDay through wStartSecond to $00 call InitTime ; set wStartDay through wStartSecond to $00
farcall InitGender farcall InitGender
call .SetPlayerName ld b, NAME_PLAYER
ld de, wPlayerName
farcall NamingScreen
ld de, .DefaultName
call InitName
farcall AutoSaveGameOutsideOverworld farcall AutoSaveGameOutsideOverworld
jp GameMenu jp GameMenu
.SetPlayerName .DefaultName:
ld hl, wPlayerName db "DEBUG@@@@@@"
ld a, "D"
ld [hli], a
ld a, "E"
ld [hli], a
ld a, "B"
ld [hli], a
ld a, "U"
ld [hli], a
ld a, "G"
ld [hli], a
ld a, "@"
ld [hl], a
ret
ResetWRAM: ResetWRAM:
xor a xor a

View File

@ -84,18 +84,6 @@ RunTitleScreen:
scf scf
ret ret
UnusedTitlePerspectiveScroll: ; unreferenced
; Similar behavior to Intro_PerspectiveScrollBG.
ldh a, [hVBlankCounter]
and $7
ret nz
ld hl, wLYOverrides + $5f
ld a, [hl]
dec a
ld bc, 2 * SCREEN_WIDTH
call ByteFill
ret
TitleScreenScene: TitleScreenScene:
ld e, a ld e, a
ld d, 0 ld d, 0
@ -113,11 +101,6 @@ TitleScreenScene:
dw TitleScreenMain dw TitleScreenMain
dw TitleScreenEnd dw TitleScreenEnd
TitleScreenNextScene: ; unreferenced
ld hl, wJumptableIndex
inc [hl]
ret
TitleScreenEntrance: TitleScreenEntrance:
; Animate the logo: ; Animate the logo:
; Move each line by 4 pixels until our count hits 0. ; Move each line by 4 pixels until our count hits 0.