Difference between revisions of "Map Exit Format"
Jump to navigation
Jump to search
(Added information about the exit format) |
m (Transition Effect) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
Exit information is parsed until position x is 0xFF. | Exit information is parsed until position x is 0xFF. | ||
When 0x8000 is set in the Map ID the exit event entries are read until map ID is 0xFFFF. | |||
Transition Effect is split into a nibble for each value the left for the overworld and the right for the current screen. | |||
== Entry | == Entry Format == | ||
Each entry is 12 (0x0C) bytes. | Each entry is 12 (0x0C) bytes. | ||
Line 13: | Line 17: | ||
! Length (byte) | ! Length (byte) | ||
! Name | ! Name | ||
|- | |- | ||
| 0x00 | | 0x00 | ||
| 1 | | 1 | ||
| Position X | | Position X (in 16x16 Tiles) | ||
|- | |- | ||
| 0x01 | | 0x01 | ||
| 1 | | 1 | ||
| Position Y | | Position Y (in 16x16 Tiles) | ||
|- | |- | ||
| 0x02 | | 0x02 | ||
| 1 | | 1 | ||
| Size X | | Size X (in 16x16 Tiles) | ||
|- | |- | ||
| 0x03 | | 0x03 | ||
| 1 | | 1 | ||
| Size Y | | Size Y (in 16x16 Tiles) | ||
|- | |- | ||
| 0x04 | | 0x04 | ||
| 2 | | 2 | ||
| Map ID | | Map ID | ||
|- | |- | ||
| 0x06 | | 0x06 | ||
| 1 | | 1 | ||
| Transition Effect | | Transition Effect | ||
|- | |- | ||
| 0x07 | | 0x07 | ||
| 1 | | 1 | ||
| Direction | | Direction | ||
|- | |- | ||
| 0x08 | | 0x08 | ||
| 2 | | 2 | ||
| Destination X (in pixels) | | Destination X (in pixels) | ||
|- | |- | ||
| 0x0A | | 0x0A | ||
| 2 | | 2 | ||
| Destination Y (in pixels) | | Destination Y (in pixels) | ||
|} | |||
== Entry Event Format == | |||
Each entry is 10 (0x0A) bytes. | |||
{| class="wikitable" | |||
|- | |||
! Offset | |||
! Length (byte) | |||
! Name | |||
|- | |||
| 0x00 | |||
| 2 | |||
| Event Flag | |||
|- | |||
| 0x02 | |||
| 2 | |||
| Map ID | |||
|- | |||
| 0x04 | |||
| 1 | |||
| Transition Effect | |||
|- | |||
| 0x05 | |||
| 1 | |||
| Direction | |||
|- | |||
| 0x06 | |||
| 2 | |||
| Destination X (in pixels) | |||
|- | |||
| 0x08 | |||
| 2 | |||
| Destination Y (in pixels) | |||
|} | |} |
Latest revision as of 01:33, 21 January 2025
A list of pointers is stored at 0x18000 with two bytes per Map. The value is then added to 0x10000 where the actual exit information is stored.
Exit information is parsed until position x is 0xFF.
When 0x8000 is set in the Map ID the exit event entries are read until map ID is 0xFFFF.
Transition Effect is split into a nibble for each value the left for the overworld and the right for the current screen.
Entry Format
Each entry is 12 (0x0C) bytes.
Offset | Length (byte) | Name |
---|---|---|
0x00 | 1 | Position X (in 16x16 Tiles) |
0x01 | 1 | Position Y (in 16x16 Tiles) |
0x02 | 1 | Size X (in 16x16 Tiles) |
0x03 | 1 | Size Y (in 16x16 Tiles) |
0x04 | 2 | Map ID |
0x06 | 1 | Transition Effect |
0x07 | 1 | Direction |
0x08 | 2 | Destination X (in pixels) |
0x0A | 2 | Destination Y (in pixels) |
Entry Event Format
Each entry is 10 (0x0A) bytes.
Offset | Length (byte) | Name |
---|---|---|
0x00 | 2 | Event Flag |
0x02 | 2 | Map ID |
0x04 | 1 | Transition Effect |
0x05 | 1 | Direction |
0x06 | 2 | Destination X (in pixels) |
0x08 | 2 | Destination Y (in pixels) |