Add Team and Bag pages to the Start menu #13

Merged
rhett merged 3 commits from feature/3-team-and-bag-menu into main 2026-10-29 01:34:17 +00:00
Collaborator

Closes #3.

Summary

  • Complete the right sidebar with Team / Bag / Save / Close and wrapped directional navigation.
  • Reuse one Team controller for Start and Select, including companion browsing and partner selection. B/Select returns to the entry route; Start closes the entire menu.
  • Add a read-only Bag showing Poké Balls, including zero, and rod ownership. Share inventory rendering with Team.
  • Pause world updates throughout menu pages, preserve fresh-input handling, restore the same scene/position, and keep the removed Start reset shortcut disabled.
  • Avoid forced blanking and full-world redraws for sidebar opening, highlighting, confirmations, and closing. Capture/restore the exact panel underlay, including covered actors/HUD; rebuild and recapture after full-screen returns to avoid stale partner artwork.
  • Preserve v6 save format/backend and menu-only persistence. Update controls and save-navigation helpers.

Verification

  • Latest make check: exit 0; ARM build, valid 65,536-byte ROM/header, 8 Python tests (0.023s), and C menu/game/location/legacy/audio checks passed.
  • Tests cover 48 highlight moves, every room/facing, repeated open/close cycles, right-edge player/follower overlap, confirmations, held input, exact scene restoration, dirty bounds, and refreshed submenu underlays.
  • Reviewed sidebar/Team/Bag/save previews and before/open/closed overlap previews; before/closed preview bytes match exactly.
  • Panel presentation remains bounded to 10,952 pixels / 21,904 bytes. Underlay adds 21,904 bytes of EWRAM; linker map confirms 187,240 / 262,144 bytes allocated.
  • git diff --check clean; 365 additions / 68 deletions (297 net), all touched files under 800 lines.
  • Refreshed ~/Desktop/pokemon-gba-team-bag.gba, verified byte-for-byte against the tested ROM. SHA256: 5c04a4c07c19a14d34b98125bd5fcfabfc4582e6cd0c7d307319d72d8f0ce56e. Saves preserved.
  • Rhett tested the refreshed build on his phone after the highlight/open/close fixes and reported that it "works nicely". This is user-reported phone validation; no mGBA launch was performed.

Limits

Full-screen Team/Bag transitions intentionally retain forced blanking. The phone report confirms the refreshed build behaves well after the sidebar fixes; music/mute and every main-loop interaction were not separately itemized. Physical-cartridge behavior is not established by host tests or phone emulation.

Closes #3. ## Summary - Complete the right sidebar with Team / Bag / Save / Close and wrapped directional navigation. - Reuse one Team controller for Start and Select, including companion browsing and partner selection. B/Select returns to the entry route; Start closes the entire menu. - Add a read-only Bag showing Poké Balls, including zero, and rod ownership. Share inventory rendering with Team. - Pause world updates throughout menu pages, preserve fresh-input handling, restore the same scene/position, and keep the removed Start reset shortcut disabled. - Avoid forced blanking and full-world redraws for sidebar opening, highlighting, confirmations, and closing. Capture/restore the exact panel underlay, including covered actors/HUD; rebuild and recapture after full-screen returns to avoid stale partner artwork. - Preserve v6 save format/backend and menu-only persistence. Update controls and save-navigation helpers. ## Verification - Latest `make check`: exit 0; ARM build, valid 65,536-byte ROM/header, 8 Python tests (0.023s), and C menu/game/location/legacy/audio checks passed. - Tests cover 48 highlight moves, every room/facing, repeated open/close cycles, right-edge player/follower overlap, confirmations, held input, exact scene restoration, dirty bounds, and refreshed submenu underlays. - Reviewed sidebar/Team/Bag/save previews and before/open/closed overlap previews; before/closed preview bytes match exactly. - Panel presentation remains bounded to 10,952 pixels / 21,904 bytes. Underlay adds 21,904 bytes of EWRAM; linker map confirms 187,240 / 262,144 bytes allocated. - `git diff --check` clean; 365 additions / 68 deletions (297 net), all touched files under 800 lines. - Refreshed `~/Desktop/pokemon-gba-team-bag.gba`, verified byte-for-byte against the tested ROM. SHA256: `5c04a4c07c19a14d34b98125bd5fcfabfc4582e6cd0c7d307319d72d8f0ce56e`. Saves preserved. - Rhett tested the refreshed build on his phone after the highlight/open/close fixes and reported that it "works nicely". This is user-reported phone validation; no mGBA launch was performed. ## Limits Full-screen Team/Bag transitions intentionally retain forced blanking. The phone report confirms the refreshed build behaves well after the sidebar fixes; music/mute and every main-loop interaction were not separately itemized. Physical-cartridge behavior is not established by host tests or phone emulation.
LyokoAgents added 1 commit 2026-10-29 00:30:45 +00:00
LyokoAgents added 1 commit 2026-10-29 00:37:17 +00:00
LyokoAgents added 1 commit 2026-10-29 00:48:05 +00:00
rhett merged commit f7a3dad3d0 into main 2026-10-29 01:34:17 +00:00
rhett deleted branch feature/3-team-and-bag-menu 2026-10-29 01:34:17 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rory/pokemon-gba#13