Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Transports

Matt Greer edited this page Apr 7, 2021 · 10 revisions

Transports

The transport data in the level file tells the game how to move mario after going down a pipe, through a door, etc

data format

header -- first two bytes, number of transports in the room. transports are not 0xff terminated. crazy that it's two bytes, will one room ever have more than 255 transports?? so it's possible the second byte actually means something else

from there, each transport is ten bytes

byte meaning
0 source Y (note this is backwards from all other info out there, but pretty sure it is correct!)
1 source X
2 dest room number
3 an unknown byte
4 dest Y (similarly backwards as source y/x)
5 dest X
6 center screen X (possibly backwards too?? need to check)
7 center screen Y
8 an unknown byte
9 exit type