SYZ Floating Blocks - RetroKoH/S1Fixed GitHub Wiki

<- $55: Basaran badnik Object List $57: Spiked Ball and Chain ->
56_SYZBlocks

The Floating Blocks are objects in Sonic the Hedgehog. The Floating Blocks are found in Spring Yard Zone. Labyrinth Zone's doors and Star Light Zone's Rotating Stairs were subtypes of this object, but have since been split off into their own objects.

Code

File: _incObj/56 SYZ Floating Blocks.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 its size and behavior.

Solidity

Every subtype has the following SolidObject parameters.

  • Type: Full
  • Width: obDispWid + 11
  • Height (jumping): obHeight
  • Height (walking): obHeight + 1

Small blocks

  • obDispWid: 16px
  • obHeight: 16px

Large Up/Down Moving Blocks

  • obDispWid: 32px
  • obHeight: 32px

Vertical Doors

  • obDispWid: 16px
  • obHeight: 32px

2x2 Square Block from SYZ3

  • obDispWid: 32px
  • obHeight: 26px

Unused Vertical Square Barrier

  • obDispWid: 16px
  • obHeight: 39px

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