SBZ2 Eggman's Crumbling Floor - RetroKoH/S1Fixed GitHub Wiki

Dynamic Objects

Eggman's Crumbling Floor is an object in Sonic the Hedgehog, appearing in the post-level cutscene in Scrap Brain Zone Act 2. It's lined up in multiple pieces just before a light barrier which prevents Sonic from moving forward. From behind this barrier, Dr. Eggman hits a switch which triggers the floor to fall apart beneath Sonic, sending him to Scrap Brain Zone Act 3.

Code

File: _incObj/-- SBZ Eggman's Crumbling Floor.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.
  • Removed from the Static Object Pointer List due to its dynamic nature.

Subtypes

This object has no subtypes, but obSubtype (along with the following OST byte) are used as a flag for triggering the floor to crumble (S1Fixed will change this to use scrap RAM). The ASCII value "GO" triggers the floor to crumble.

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 ~ ~ ~ ~ ~ ~ ~ ~ Priority Priority Frame ~ ~ ~
2x ~ ~ ~ DispWid ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
3x ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
⚠️ **GitHub.com Fallback** ⚠️