Sonic - RetroKoH/S1Fixed GitHub Wiki
| <- ~~ | Object List | $03: Path Swapper -> |
|---|
Sonic is a playable object in Sonic the Hedgehog, appearing in all playable stages in the standard game mode GM_Level. Given that everything in a standard level operates around Sonic, much of the changes, fixes, and modifications are going to be centered around this object and its subroutines.
Subtypes
This object has no subtypes.
Object Status Table
| x0 | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | xA | xB | xC | xD | xE | xF | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x | ID | Render | Gfx | Gfx | Map | Map | Map | Map | XPos | XPos | XPos | XPos | YPos | YPos | YPos | YPos |
| 1x | VelX | VelX | VelY | VelY | ~ | ~ | Height | Width | Priority | Priority | Frame | AniFrame | Anim | PrevAnim | FrameTime | DelayTime |
| 2x | Inertia | Inertia | Status | DispWid | Routine | DblJumpProp* | Angle | ~ | WallJump* | WallJump* | AutoRollFlag+ | ~ | ~ | ~ | ~ | DblJumpFlag* |
| 3x | Invuln | Invinc | Shoes | ~ | ~ | CtrlLock** | FrontAngle | RearAngle | OnWheel | Status2nd* | RestartTimer | RestartTimer | Jumping | LRLock | PlatformAddr | PlatformAddr |
- (+) This is the default function of this RAM byte, but also serves as the SpinDashFlag, if the relevant elective mod is enabled.
- (*) These OST variables are only used if certain elective mods are active.
- (**) This OST variable was previously a global RAM variable.
Code File
Sprite Data
- Art: _artunc/Sonic.unc (2,156 tiles; Uncompressed)
- Sprite Mappings: _maps/Sonic.asm
- DPLC Script: _maps/Sonic - DPLCs.asm
- VRAM Location: ArtTile_Sonic ($780)
- Animation Script: _anim/Sonic.asm
Later Game Equivalents
Sonic 2
- Obj01 - Sonic
- Obj02 - Tails
Sonic 3 & Knuckles
- Obj_Sonic - Sonic
- Obj_Tails - Tails
- Obj_Knuckles - Knuckles
- Obj_Sonic2P - Sonic (or Knuckles) in Competition Mode
- Obj_Tails2P - Tails in Competition Mode