struct RISING_PARTICLE
One rising particle: its sprite, world position, drift and ticks left.
Declared in field.h.
Fields
| Name | Description | |
|---|---|---|
union { Uint32 | words, unusedAfterWords, y, affine, objectMode, mosaic, fullColor, shape, x, affineIndex, size, tile, priority, palette, unusedAfterPalette, attributes, sprite [3]; struct { Uint8 unusedAfterWords[4]; Uint16 y : 8; Uint16 affine : 2; Uint16 objectMode : 2; Uint16 mosaic : 1; Uint16 fullColor : 1; Uint16 shape : 2; Uint16 x : 9; Uint16 affineIndex : 5; Uint16 size : 2; Uint16 tile : 10; Uint16 priority : 2; Uint16 palette : 4; Uint8 unusedAfterPalette[2]; } attributes; } sprite | The sprite: set as three words by the start, drawn field by field. |
Sint32 | posX | |
Sint32 | posY | |
Sint32 | posZ | |
Sint32 | drift | |
Uint16 | timer | |
Uint8 | unusedAfterTimer [2] | no code names it |
Description
One rising particle: its sprite, world position, drift and ticks left.
struct RISING_PARTICLE
Referenced by fdRisingParticlesStart() and fdRisingParticlesUpdate().
Definition at line 416 of file field.h.
Fields in detail
words, unusedAfterWords, y, affine, objectMode, mosaic, fullColor, shape, x, affineIndex, size, tile, priority, palette, unusedAfterPalette, attributes, sprite
union { Uint32 words[3]; struct { Uint8 unusedAfterWords[4]; Uint16 y : 8; Uint16 affine : 2; Uint16 objectMode : 2; Uint16 mosaic : 1; Uint16 fullColor : 1; Uint16 shape : 2; Uint16 x : 9; Uint16 affineIndex : 5; Uint16 size : 2; Uint16 tile : 10; Uint16 priority : 2; Uint16 palette : 4; Uint8 unusedAfterPalette[2]; } attributes; } sprite
The sprite: set as three words by the start, drawn field by field.
No code names it.
OAM attributes 0 to 2, x and y in screen pixels.
No code names it.
posX
Sint32 posX
posY
Sint32 posY
posZ
Sint32 posZ
drift
Sint32 drift
timer
Uint16 timer
unusedAfterTimer
Uint8 unusedAfterTimer[2]
no code names it