aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsh Ketchum <no-reply@sl0p.foo>2026-07-15 01:09:06 +0200
committerAsh Ketchum <no-reply@sl0p.foo>2026-07-15 01:09:06 +0200
commit1d4a4f754467a5972f577b80cdead10fba71de10 (patch)
tree83a4386096bce06799ef4b80170dfcd10d183354
parentwarp: polish menu (clear bg + hide sprites), 13 destinations, kill the bird (diff)
downloadpokeyellow-1d4a4f754467a5972f577b80cdead10fba71de10.tar.gz
pokeyellow-1d4a4f754467a5972f577b80cdead10fba71de10.tar.xz
pokeyellow-1d4a4f754467a5972f577b80cdead10fba71de10.zip
warp: center the menu box and add a SECRET SL0P WARP MENU banner
Two centered title lines above a horizontally-centered box (moved to col 3, row 2; cursor/items shifted to match). Cursor alignment verified.
-rw-r--r--engine/warp_menu.asm22
1 files changed, 18 insertions, 4 deletions
diff --git a/engine/warp_menu.asm b/engine/warp_menu.asm
index 38758665..1fcca73e 100644
--- a/engine/warp_menu.asm
+++ b/engine/warp_menu.asm
@@ -21,10 +21,18 @@ WarpMenu::
ld [wUpdateSpritesEnabled], a
call ClearSprites
call ClearScreen
- hlcoord 0, 0
+; banner, two centered lines above the box
+ hlcoord 4, 0
+ ld de, WarpTitleText1
+ call PlaceString
+ hlcoord 5, 1
+ ld de, WarpTitleText2
+ call PlaceString
+; horizontally-centered menu box (screen is 20 wide; box is 13)
+ hlcoord 3, 2
lb bc, 13, 11
call TextBoxBorder
- hlcoord 2, 1
+ hlcoord 5, 3
ld de, WarpMenuText
call PlaceString
; push wTileMap to VRAM and switch on the menu display (mirrors the tail of
@@ -42,8 +50,9 @@ WarpMenu::
ld [wLastMenuItem], a
ld [wMenuWatchMovingOutOfBounds], a
ld [wMenuJoypadPollCount], a
- inc a ; 1
- ld [wTopMenuItemX], a ; cursor column (text at column 2)
+ ld a, 4
+ ld [wTopMenuItemX], a ; cursor column (text at column 5)
+ ld a, 3
ld [wTopMenuItemY], a ; first item row
ld a, PAD_A | PAD_B
ld [wMenuWatchedKeys], a
@@ -94,3 +103,8 @@ WarpMapTable:
db PALLET_TOWN, VIRIDIAN_CITY, PEWTER_CITY, CERULEAN_CITY, LAVENDER_TOWN
db VERMILION_CITY, CELADON_CITY, FUCHSIA_CITY, CINNABAR_ISLAND, INDIGO_PLATEAU
db SAFFRON_CITY, ROUTE_4, ROUTE_10
+
+WarpTitleText1:
+ db "SECRET SL0P@"
+WarpTitleText2:
+ db "WARP MENU@"