Map 0xFF (summary): Difference between revisions

Jump to navigation Jump to search
m
Fixed the address of wLastMap in Y.
No edit summary
m (Fixed the address of wLastMap in Y.)
Line 2:
{{MapInfoGenIOld|(Blank)|Map FF Town Map.png|FF|255|Unknown|Unknown|Unknown|Special map handler,<br>[[Freeze glitch map]]}}
 
'''Map 0xFF''' is an [https://github.com/pret/pokered/blob/8349bfd8e646002105dfd6a7f997c26cf0e0624b/home/overworld.asm indoor-outside map handler] in {{RBY}}. When the game locates it, it does not load map 0xFF itself; rather upon following the warp, the actual map loaded is replaced with wLastMap (D365 in R/B and D365D364 in Y). This handler is stored as a map in wWarpEntries (D3AF onward (D3AE onward in Yellow) and each entry is stored as Y coordinate, X coordinate, exit index, map (or FF handler)).
 
The coordinates typically pertain to the exit mats in buildings when the player bumps into the wall to leave the map (the way for instance, leaving a Pokémon Center returns the player to the 'last town'). The exit index is a single byte as an index number.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu