aboutsummaryrefslogtreecommitdiffstats
path: root/engine
diff options
context:
space:
mode:
authorAsh Ketchum <no-reply@sl0p.foo>2026-07-15 01:12:25 +0200
committerAsh Ketchum <no-reply@sl0p.foo>2026-07-15 01:12:25 +0200
commitd5c0f1ab2a04279fd973f4bd8bad5cfbd210f1ad (patch)
tree815b09b9e3d8a286fa548ef437d9ae93b0efb2ed /engine
parentwarp: center the menu box and add a SECRET SL0P WARP MENU banner (diff)
downloadpokeyellow-d5c0f1ab2a04279fd973f4bd8bad5cfbd210f1ad.tar.gz
pokeyellow-d5c0f1ab2a04279fd973f4bd8bad5cfbd210f1ad.tar.xz
pokeyellow-d5c0f1ab2a04279fd973f4bd8bad5cfbd210f1ad.zip
intro: brief POKeMON SL0P EDITION splash on the fastboot path
New SlopSplash (engine/slop_intro.asm) clears the screen, draws the two centered lines, pushes to VRAM and holds ~2s, then MainMenu's autoload continues into the game. Replaces the vanilla intro/title for the fast-boot-into-save flow.
Diffstat (limited to 'engine')
-rw-r--r--engine/menus/main_menu.asm7
-rw-r--r--engine/slop_intro.asm27
2 files changed, 32 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@"