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
| Name | Description | |
|---|---|---|
struct SPR * | link | next part in same depth slot this tick (syOAMAddSpriteAtDepth) |
Uint16 | y : 8 | screen pixels |
Uint16 | affine : 2 | 0 plain, 1 affine, 3 affine at double size |
Uint16 | objectMode : 2 | an SPR_MODE |
Uint16 | mosaic : 1 | |
Uint16 | fullColor : 1 | 256 colours; set for both parts when created |
Uint16 | shape : 2 | 0 square, 1 wide, 2 tall |
Uint16 | x : 9 | screen pixels |
Uint16 | affineIndex : 5 | affine matrix, or 8 for a mirrored plain sprite |
Uint16 | size : 2 | with shape, the sprite's size |
Uint16 | tile : 10 | first sprite tile in VRAM |
Uint16 | priority : 2 | 2 when created |
Uint16 | palette : 4 | 16-colour palette; unused at 256 colours |
Uint8 | attr3 [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
link
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