GHZ Bridge - RetroKoH/S1Fixed GitHub Wiki
| <- $0D: Signpost | Object List | $12: SYZ Light -> |
|---|
The Bridge is an object in Sonic the Hedgehog, appearing in Green Hill Zone. It is used to connect two masses of terrain, allowing Sonic to walk across. When Sonic walks across, the bridge dips down slightly. It always has two Scenery objects on either side of it, and is usually placed above areas where Chopper Badniks appear.
File: _incObj/11 Bridge.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.
- The object has been reworked to utilize sub-sprites for the logs.
The length of the bridge is determined by the object's subtype.
- Type: Top-Solid
- Width: Varies by bridge length (to-be-documented)
-
Height: Initial height is 8 (half of the bridge height)
- Sonic's y-position is then snapped to the position of the log, based on the subsprite positioning set by Bri_Bend.
| 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 | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ |