diff options
| -rw-r--r-- | engine/menus/main_menu.asm | 7 | ||||
| -rw-r--r-- | engine/slop_intro.asm | 27 | ||||
| -rw-r--r-- | main.asm | 1 |
3 files changed, 33 insertions, 2 deletions
diff --git a/engine/menus/main_menu.asm b/engine/menus/main_menu.asm index c41a7d10..2875290e 100644 --- a/engine/menus/main_menu.asm +++ b/engine/menus/main_menu.asm @@ -10,10 +10,13 @@ MainMenu: predef TryLoadSaveFile -; FASTBOOT: if the save loaded cleanly (status 2), skip the menu and continue +; FASTBOOT: if the save loaded cleanly (status 2), show the SL0P splash then +; skip the menu and continue straight into the game ld a, [wSaveFileStatus] cp 2 - jp z, SpecialEnterMap + jr nz, .mainMenuLoop + farcall SlopSplash + jp SpecialEnterMap .mainMenuLoop ld c, 20 diff --git a/engine/slop_intro.asm b/engine/slop_intro.asm new file mode 100644 index 00000000..84bbc53f --- /dev/null +++ b/engine/slop_intro.asm @@ -0,0 +1,27 @@ +; Brief custom boot splash shown on the fastboot path (before the save is +; loaded). Reuses the same display setup as the menu/text system. + +SECTION "Slop Intro", ROMX + +SlopSplash:: + call ClearScreen + call LoadFontTilePatterns + call RunDefaultPaletteCommand + hlcoord 6, 7 + ld de, .line1 + call PlaceString + hlcoord 4, 9 + ld de, .line2 + call PlaceString + ld b, HIGH(vBGMap1) + call CopyScreenTileBufferToVRAM + xor a + ldh [hWY], a + ld a, $01 + ldh [hAutoBGTransferEnabled], a + ld c, 120 ; ~2 seconds + call DelayFrames + ret + +.line1: db "POKéMON@" +.line2: db "SL0P EDITION@" @@ -425,3 +425,4 @@ INCLUDE "engine/pikachu/pikachu_movement.asm" INCLUDE "engine/pikachu/pikachu_pic_animation.asm" INCLUDE "engine/debug/debug_menu.asm" INCLUDE "engine/warp_menu.asm" +INCLUDE "engine/slop_intro.asm" |
