SBZ Electric Orb - RetroKoH/S1Fixed GitHub Wiki
| <- $6D: SBZ Flamethrower | Object List | $6F: SBZ Spinning Conveyor Platforms -> |
|---|
The Electric Orb is an object in Sonic the Hedgehog, appearing in Scrap Brain Zone Acts 1 and 2. It starts out inactive, appearing only as an orb. After a set period of time, it emits sparks which can damage Sonic.
Subtypes
This object's subtype, capped at $F, determines the bitmask applied to the frame timer to determine when the object should emit sparks.
The formula is (subtype*16) - 1.
The only subtypes actually used in the game are 02, 04, and 08, resulting in bitmasks of $1F, $3F, and $7F, respectively.
Object Status Table
| x0 | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | xA | xB | xC | xD | xE | xF | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x | ID | Render | Gfx | Gfx | Map | Map | Map | Map | XPos | XPos | XPos | XPos | YPos | YPos | YPos | YPos |
| 1x | ~ | ~ | ~ | ~ | RespawnAddr | RespawnAddr | ~ | ~ | Priority | Priority | Frame | AniFrame | Anim | PrevAnim | FrameTime | DelayTime |
| 2x | ColType | ~ | ~ | DispWid | Routine | ~ | ~ | obShieldProp | Subtype | ~ | ~ | ~ | ~ | ~ | ~ | ~ |
| 3x | ~ | ~ | ~ | ~ | ZapRate | ZapRate | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ |
Code File
Changes from Sonic 1
- Word-length obPriority pointer due to the new Priority Manager.
- Word-Length obRespawnAddr added due to the S3K Object Manager.
- Subtype clamped to $00 - 0F.
- Optimal Animation loading (changed addressing mode).
- The object has been slightly rewritten to more efficiently handle animations and collision properties. (Credit: Hivebrain).
- ELECTIVE MOD: Negated by the Lightning Shield if S3KShields are enabled.
Sprite Data
- Art Tiles: artnem/SBZ Electrocuter.nem (20 tiles; Nemesis-compressed)
- Sprite Mappings: _maps/Electrocuter.asm
- VRAM Location: ArtTile_SBZ_Electric_Orb ($3ED)
- Animation Script: _anim/Electrocuter.asm
Later Game Equivalents
- ???