diff options
| author | Ash Ketchum <no-reply@sl0p.foo> | 2026-07-15 15:23:39 +0200 |
|---|---|---|
| committer | Ash Ketchum <no-reply@sl0p.foo> | 2026-07-15 15:23:39 +0200 |
| commit | eeb61bd9aa3ad514d685b82a635a8b7d4511339a (patch) | |
| tree | aa963e1dbb7d0bc503fc46756313b2b61a0ae9f0 /ram | |
| parent | EXPLORE: animate the approach to map edges instead of hard-jumping (diff) | |
| download | pokeyellow-eeb61bd9aa3ad514d685b82a635a8b7d4511339a.tar.gz pokeyellow-eeb61bd9aa3ad514d685b82a635a8b7d4511339a.tar.xz pokeyellow-eeb61bd9aa3ad514d685b82a635a8b7d4511339a.zip | |
SL0P menu: add SAVER screensaver (autopilot EXPLORE)
New menu entry that auto-drives the EXPLORE camera across the overworld:
- persistent-direction wander (DFS-ish): keep heading, turn only when blocked
or occasionally at a junction, never an immediate U-turn. SlopSaverPickDir
synthesises a d-pad direction into the normal EXPLORE dispatch, so it inherits
smooth scrolling and smooth map-edge crossing.
- arrows hidden; player/Pikachu never drawn (clear+freeze OAM right after every
LoadMapData, before the first frame renders - also fixes a brief player flash
at crossings in manual EXPLORE).
- any button wakes it back to the menu.
State byte wSlopSaverDir reuses wUnusedCreditsByte (0=off, else current dir).
Diffstat (limited to 'ram')
| -rw-r--r-- | ram/wram.asm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ram/wram.asm b/ram/wram.asm index e0488e62..0e530a77 100644 --- a/ram/wram.asm +++ b/ram/wram.asm @@ -971,7 +971,11 @@ wBadgeOrFaceTiles:: ds NUM_BADGES + 1 wTempObtainedBadgesBooleans:: ds NUM_BADGES NEXTU -wUnusedCreditsByte:: db +wUnusedCreditsByte:: +; SL0P: EXPLORE screensaver state. 0 = normal EXPLORE (manual). Nonzero = the +; screensaver is running and the value is the current auto-scroll direction +; (a PAD_* bit). Overlaps a credits-only scratch byte, unused during overworld. +wSlopSaverDir:: db ; the number of credits mons that have been displayed so far wNumCreditsMonsDisplayed:: db |
