struct WEATHER_PARTICLE
One weather particle: depth-slot link and OAM attributes (written whole by start functions as semi-transparent, size 1, priority 1 and palette 13), followed by its world position.
Declared in weather.h.
Fields
| Name | Description | |
|---|---|---|
Uint8 | link [4] | Queue link (ANIMATION_SPR_PART.link); cleared with attrs, unread. |
Uint16 | y : 8 | Screen pixels. |
Uint16 | affine : 2 | Not named by the effects. |
Uint16 | blendMode : 2 | 1, semi-transparent; not named by the effects. |
Uint16 | mosaic : 1 | Not named by the effects. |
Uint16 | fullColor : 1 | Not named by the effects. |
Uint16 | shape : 2 | From the ground particle frame; motes, sparkles: 0. |
Uint16 | x : 9 | Screen pixels. |
Uint16 | affineIndex : 5 | Sparkles: 8 on alternate ticks, else 0. |
Uint16 | size : 2 | From the ground particle frame; motes, sparkles: 1. |
Uint16 | tile : 10 | The state's tileBase plus the tick's tile. |
Uint16 | priority : 2 | 1. |
Uint16 | palette : 4 | 13; not named by the effects. |
Uint8 | attr3 [2] | The OAM entry's fourth halfword, cleared with the others. |
FIXED | posX | World position, in 16.16 pixels. |
Sint32 | posY | The ground's height there. |
FIXED | posZ | World position, in 16.16 pixels. |
Sint32 | rise | Motes: height risen; sparkles: phase within a burst. |
Uint16 | timer | Ticks left; zero frees the particle. |
Description
One weather particle: depth-slot link and OAM attributes (written whole by start functions as semi-transparent, size 1, priority 1 and palette 13), followed by its world position.
struct WEATHER_PARTICLE
Referenced by fdEffectInitSparkles(), fdEffectUpdateSparkles(), fdMotesStart(), fdMotesUpdate(), fdWeatherStartRain() and fdWeatherUpdateRain().
Definition at line 18 of file weather.h.
Fields in detail
link
Uint8 link[4]
Queue link (ANIMATION_SPR_PART.link); cleared
with attrs, unread.
y
Uint16 y : 8
Screen pixels.
affine
Uint16 affine : 2
Not named by the effects.
blendMode
Uint16 blendMode : 2
1, semi-transparent; not named by the effects.
mosaic
Uint16 mosaic : 1
Not named by the effects.
fullColor
Uint16 fullColor : 1
Not named by the effects.
shape
Uint16 shape : 2
From the ground particle frame; motes, sparkles: 0.
x
Uint16 x : 9
Screen pixels.
affineIndex
Uint16 affineIndex : 5
Sparkles: 8 on alternate ticks, else 0.
size
Uint16 size : 2
From the ground particle frame; motes, sparkles: 1.
tile
Uint16 tile : 10
The state's tileBase plus the tick's tile.
priority
Uint16 priority : 2
palette
Uint16 palette : 4
13; not named by the effects.
attr3
Uint8 attr3[2]
The OAM entry's fourth halfword, cleared with the others.
posX
FIXED posX
World position, in 16.16 pixels.
posY
Sint32 posY
The ground's height there.
posZ
FIXED posZ
World position, in 16.16 pixels.
rise
Sint32 rise
Motes: height risen; sparkles: phase within a burst.
timer
Uint16 timer
Ticks left; zero frees the particle.