Moving Blocks - RetroKoH/S1Fixed GitHub Wiki
| <- $51: Smashable Green Block | Object List | $53: Collapsing Floors -> |
|---|
Moving Blocks are objects in Sonic the Hedgehog, appearing in Marble, Labyrinth, and Scrap Brain Zone.
File: _incObj/52 Moving Blocks.asm
Changes from Sonic 1
- Word-length obPriority pointer due to the new Priority Manager.
- Word-length obRespawnAddr added due to the S3K Object Manager.
This object has subtypes that dictate its behavior.
- Type: Top-Solid
The width for this object is dependent on its subtype.
- Single Block (Subtype 0x): 16px
- Double Block (Subtype 1x): 32px
- SBZ Black/Yellow Platform (Subtype 2x): 32px
- SBZ Red Horizontal Door (Subtype 3x): 64px
- Triple Block (Subtype 4x): 48px
| x0 | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | xA | xB | xC | xD | xE | xF | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x | Render | Addr | Addr | Addr | Gfx | Gfx | Map | Map | Map | Map | XPos | XPos | XPos | XPos | YPos | YPos |
| 1x | YPos | YPos | ~ | ~ | ~ | ~ | RespawnAddr | RespawnAddr | ~ | ~ | Priority | Priority | Frame | ~ | ~ | ~ |
| 2x | ~ | ~ | ~ | DispWid | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ |
| 3x | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ |