Ball Hog Badnik - RetroKoH/S1Fixed GitHub Wiki
| <- $1D: "Magic Switch" | Object List | $1F: Crabmeat Badnik -> |
|---|
The Ball Hog Badnik is an object in Sonic the Hedgehog, appearing in Scrap Brain Zone. Like (almost) all other badniks in the game, it can be defeated with a single hit, creating an explosion, a points graphic, and spawning an animal in the process. The Ball Hog stays stationary, facing one direction, releasing a cannonball at timed intervals.
File: _incObj/1E Ball Hog.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 Ball Hog object now preemptively calculates Cannonball detonation upon init, instead of having every spawned Cannonball calculate said time.
This object's subtype determines the delay time that gets applied to the Cannonballs that it spawns.
| 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 | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ | ~ |