Smashable Wall - RetroKoH/S1Fixed GitHub Wiki

<- $3B: Purple Rock Object List $3D: Vertical Door ->
3C_SmashWall

The Smashable Wall is an object in Sonic the Hedgehog, appearing in Green Hill and Star Light Zone. It normally serves as solid wall obstacle, but by rolling into it at high speed, Sonic can break it apart, clearing the way.

Code

File: _incObj/3C Smashable Wall.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.

Subtypes

This object has subtypes that dictate the sprite frame, though these are only meant for the walls in Green Hill Zone.

  • Subtypes 00 and 02 tell the wall to utilize the left or right side images, respectively.
  • Subtype 01 tells the wall to use the center image, which blends into the rest of the wall. The subtype doesn't do anything else to change the object's appearance or functionality. The Smashable Walls in Star Light Zone only use this subtype.

Solidity

  • Type: Full
  • Width: 27px
  • Height (jumping): 32px
  • Height (walking): 32px

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