Drowning Countdown - RetroKoH/S1Fixed GitHub Wiki

Dynamic Objects
S1Fixed_001

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.

Code

File: _incObj/-- Drowning Countdown.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.
  • Uses Revision 01 wobble data.
  • 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.

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

Sprite Data

Later Game Equivalents

  • Obj0A - Sonic 2
  • Obj_AirCountdown - Sonic 3 & Knuckles
⚠️ **GitHub.com Fallback** ⚠️