List of maps by index number (Generation I): Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
Line 522: Line 522:
|}
|}


*The [https://github.com/pret/pokered/blob/8349bfd8e646002105dfd6a7f997c26cf0e0624b/home/overworld.asm indoor-outside map handler] does not load map 0xFF itself; rather upon following the warp, the actual map loaded is replaced with wLastMap (D365 in R/B and D365 in Y). This handler is stored as a map in wWarpEntries (D3AF onward (D3AE onward in Yellow) and entries are Y coordinate, X coordinate, exit index, map (or FF handler)).
<nowiki>*</nowiki>The [https://github.com/pret/pokered/blob/8349bfd8e646002105dfd6a7f997c26cf0e0624b/home/overworld.asm indoor-outside map handler] does not load map 0xFF itself; rather upon following the warp, the actual map loaded is replaced with wLastMap (D365 in R/B and D365 in Y). This handler is stored as a map in wWarpEntries (D3AF onward (D3AE onward in Yellow) and entries are Y coordinate, X coordinate, exit index, map (or FF handler)).


The coordinates typically pertain to the exit mats in buildings (the way for instance, leaving a Pokémon Center returns the player to the 'last town'). The exit index loads relevant data (such as coordinates and wCurrentTileBlockMapViewPointer (D35F-60 in R/B and D35E-F in Y) pertaining to the new map (leftover from wLastMap) the player is going to enter after they leave the old map (the reason why maps can be entered from different locations so the player steps down from different buildings, and the cause of [[Safari Zone exit glitch]] when wLastMap is no longer Fuchsia City and wWarpEntries still pertains to the Safari Zone gate).
The coordinates typically pertain to the exit mats in buildings (the way for instance, leaving a Pokémon Center returns the player to the 'last town'). The exit index loads relevant data (such as coordinates and wCurrentTileBlockMapViewPointer (D35F-60 in R/B and D35E-F in Y) pertaining to the new map (leftover from wLastMap) the player is going to enter after they leave the old map (the reason why maps can be entered from different locations so the player steps down from different buildings, and the cause of [[Safari Zone exit glitch]] when wLastMap is no longer Fuchsia City and wWarpEntries still pertains to the Safari Zone gate).