diff options
| author | Ash Ketchum <no-reply@sl0p.foo> | 2026-07-15 02:01:51 +0200 |
|---|---|---|
| committer | Ash Ketchum <no-reply@sl0p.foo> | 2026-07-15 02:01:51 +0200 |
| commit | 849fc45bc57e9a1f85c4fa98103ec04991406627 (patch) | |
| tree | 393b2932633e22a9d79fedbd442ef3f05a53159d /home | |
| parent | intro: real 2bpp graphic splash (POKeMON SL0P EDITION) (diff) | |
| download | pokeyellow-849fc45bc57e9a1f85c4fa98103ec04991406627.tar.gz pokeyellow-849fc45bc57e9a1f85c4fa98103ec04991406627.tar.xz pokeyellow-849fc45bc57e9a1f85c4fa98103ec04991406627.zip | |
menu: SL0P MENU scaffolding with WARP as a submenu
Refactor the flat warp menu into a table-driven top-level SL0P MENU opened by
SELECT. Each entry = a name in SlopMenuText + a routine in SlopMenuHandlers;
handlers return carry set (a warp was started, exit) or clear (back to the
menu). Ships two entries:
WARP -> WarpSubmenu (the 13-destination town list)
HEAL -> SlopHealParty (restore party HP + clear status), demoing an action
Shared open/close display handling (hide sprites, single-space flags, wTileMap
push, restore). Add an entry by appending a name+handler and bumping
SLOP_MENU_COUNT. (renamed engine/warp_menu.asm -> engine/slop_menu.asm)
Diffstat (limited to 'home')
| -rw-r--r-- | home/overworld.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/home/overworld.asm b/home/overworld.asm index a2626089..a41a7ba8 100644 --- a/home/overworld.asm +++ b/home/overworld.asm @@ -73,9 +73,9 @@ OverworldLoopLessDelay:: .notSimulating ldh a, [hJoyPressed] .checkIfStartIsPressed - bit B_PAD_SELECT, a ; WARP MENU hotkey + bit B_PAD_SELECT, a ; SL0P MENU hotkey jr z, .notWarpHotkey - farcall WarpMenu + farcall SlopMenu jp OverworldLoop .notWarpHotkey bit B_PAD_START, a |
