If you are still using the old URL (datacrystal.romhacking.net), please update your bookmarks! The old URL may stop working at any time.
The current URL is datacrystal.tcrf.net.
The current URL is datacrystal.tcrf.net.
EarthBound Beginnings/Object state data
Jump to navigation
Jump to search
This is a sub-page of EarthBound Beginnings.
Object state data is stored in SRAM at a variable location pointed to by RAM bytes $0030-0031. Each loaded object has 32 (0x20) bytes assigned to it that can be used to store its state information. This data is initially loaded from the object data in ROM.
Format
- Byte 0x0:
- Bits 0-5: Object type
- Bit 7: Off-screen flag. 0: Object on screen. 1: Object off screen.
- Byte 0x1: Area the player was in when the object was loaded
- Byte 0x2-3: Object data location in ROM
- Byte 0x4-5: X Position in world
- Byte 0x6-7: Y Position in world
- Byte 0x8-9: Unknown (something with duplicating/orbiting)
- Byte 0xA: X Position on screen
- Byte 0xB: Y Position on screen
- Byte 0xC: Horizontal speed
- Byte 0xD: Vertical speed
- Byte 0xE-F: Current sprite
- Byte 0x10-14: Unknown
- Byte 0x15: Direction facing
- Byte 0x16-17: Base sprite
- Byte 0x18-1F: Unknown