Monitor Contents - RetroKoH/S1Fixed GitHub Wiki

Dynamic Objects

The Monitor Contents icon is an object in Sonic the Hedgehog, spawned by Monitors when they are broken open. Once they appear, they rise into the air for a few moments before pausing. At this stage, they grant their designated powerup before disappearing.

Code

File: _incObj/26 Monitor (Contents sub-object).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.
  • The numerous branches checking the icon's subtype has been replaced with a look-up table.

Subtypes

There are a variety of monitor types that will be outlined here.

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** ⚠️