Skip to Content
The Alchemy Project

struct ANIMATION_SPR_PART

The hardware sprite attributes one part of an animated sprite (its image or its shadow) is drawn with: the depth-slot link followed by OAM attributes 0 to 2 and the fourth halfword.

Declared in sprite.h.

Fields

NameDescription
struct SPR *linknext part in same depth slot this tick (syOAMAddSpriteAtDepth)
Uint16y : 8screen pixels
Uint16affine : 20 plain, 1 affine, 3 affine at double size
Uint16objectMode : 2an SPR_MODE
Uint16mosaic : 1
Uint16fullColor : 1256 colours; set for both parts when created
Uint16shape : 20 square, 1 wide, 2 tall
Uint16x : 9screen pixels
Uint16affineIndex : 5affine matrix, or 8 for a mirrored plain sprite
Uint16size : 2with shape, the sprite's size
Uint16tile : 10first sprite tile in VRAM
Uint16priority : 22 when created
Uint16palette : 416-colour palette; unused at 256 colours
Uint8attr3 [2]OAM 4th halfword (affine param slot); 0 on create, unnamed

Description

The hardware sprite attributes one part of an animated sprite (its image or its shadow) is drawn with: the depth-slot link followed by OAM attributes 0 to 2 and the fourth halfword.

struct ANIMATION_SPR_PART

Referenced by fdEffectSpawnBurstParticleField(), fdGroundMaskDrawMarks(), fdMapScreenUpdateMarkers(), fdRenderApplyProjectedPlacement(), fdRenderPlaceProjectedSprite(), fdRenderPlaceSpritePartPair(), fdSpriteCreate(), scColossoUpdateLettering(), ScrollingSprites and scSolSanctumStatueUpdateScrollingSprites().

Definition at line 134 of file sprite.h.

Fields in detail

struct SPR *link

next part in same depth slot this tick (syOAMAddSpriteAtDepth)

y

Uint16 y : 8

screen pixels

affine

Uint16 affine : 2

0 plain, 1 affine, 3 affine at double size

objectMode

Uint16 objectMode : 2

an SPR_MODE

mosaic

Uint16 mosaic : 1

fullColor

Uint16 fullColor : 1

256 colours; set for both parts when created

shape

Uint16 shape : 2

0 square, 1 wide, 2 tall

x

Uint16 x : 9

screen pixels

affineIndex

Uint16 affineIndex : 5

affine matrix, or 8 for a mirrored plain sprite

size

Uint16 size : 2

with shape, the sprite's size

tile

Uint16 tile : 10

first sprite tile in VRAM

priority

Uint16 priority : 2

2 when created

palette

Uint16 palette : 4

16-colour palette; unused at 256 colours

attr3

Uint8 attr3[2]

OAM 4th halfword (affine param slot); 0 on create, unnamed