Drowning Countdown - RetroKoH/S1Fixed GitHub Wiki

<- $09: Special Stage Sonic Object List $0C: LZ Breakable Pole ->

The Drowning Countdown is an object in Sonic the Hedgehog, theoretically able to appear anywhere in the game where water is present, though only appearing in Labyrinth Zone, as well as Scrap Brain Zone Act 3. It appears to the player as air bubbles emanating from Sonic's mouth, and as countdown numbers when Sonic's air time is low.

Subtypes

This object has a variety of subtypes, dictating whether this instance is a small bubble, medium-sized bubble, or drowning number. These will be documented in full detail later.

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 ~ ~ ~ ~ ~
2x ColType ~ ~ DispWid Routine ~ ~ ~ Subtype ~ ~ ~ RestartTime RestartTime ~ ~
3x StartX StartX DisplayTime BubbleType ExtraBubbles ~ ExtraFlag ExtraFlag NumberTime NumberTime DelayTime DelayTime ~ ~ ~ ~

Code File

_incObj/0A Drowning Countdown.asm

Changes from Sonic 1

  • Uses Revision 01 wobble data.
  • Word-length obPriority pointer due to the new Priority Manager.
  • Word-Length obRespawnAddr added due to the S3K Object Manager.
  • Object no longer takes effect if Debug Mode is active, and air time is reset.
  • BUGFIX: Slight adjustments made to drown handling to fix notable drowning bugs.
  • ELECTIVE MOD: This object no longer takes effect if a Bubble Shield is active, and air time is reset.

Sprite Data

Later Game Equivalents

  • Obj0A - Sonic 2
  • Obj_AirCountdown - Sonic 3 & Knuckles