-
Notifications
You must be signed in to change notification settings - Fork 9
Pixel positioned sprites
Matt Greer edited this page Feb 6, 2022
·
6 revisions
Some sprites in the game have alternate versions that allow pixel positioning instead of just tile positioning.
Normal goomba: 0 72 x y
Pixel-positioned sprite: 1 1d x y <sprite-id> px
The sprite-id byte determines the enemy the sprite uses (0 is a Goomba, 1 is a Buzzy Beetle, 2 is a green Koopa Troopa, 3 is a red Koopa Troopa, etc.).
1 1d x y 0 px will place a goomba at tile (x,y), but then offset it horizontally in pixels by px. It is not possible to offset vertically using this sprite.
if the pixel offset value is 127 or lower, it will offset the entity to the right by that much
if the value is 128-254, it will offset the entity to the left by (256 - px), ie it's a signed byte