Cannonball - RetroKoH/S1Fixed GitHub Wiki

Dynamic Objects

The Cannonball is an object in Sonic the Hedgehog, appearing in Scrap Brain Zone. It is a dynamic object, spawned by the Ball Hog Badnik at timed intervals. Once released, it bounces along the ground, changing direction based on the floor's angle. After a set period of time, it explodes. Unlike most objects that explode, this one creates a larger explosion, usually seen only with bosses.

Code File

_incObj/1E Ball Hog.asm

Routines

  • Cannonball - The init routine
  • Cbal_Bounce - The action routine

Subtypes

This object has no subtypes. In Sonic 1, it had a subtype which was passed down from the Ball Hog to determine the amount of time it had before it exploded. In S1Fixed, the Ball Hog instead calculates this time once, upon initialization, and passes that time down to the Cannonball when spawned.

Object Status Table

x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 xA xB xC xD xE xF

Sprite Data

...