Skip to Content
The Alchemy Project

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

NameDescription
Uint8link [4]Queue link (ANIMATION_SPR_PART.link); cleared with attrs, unread.
Uint16y : 8Screen pixels.
Uint16affine : 2Not named by the effects.
Uint16blendMode : 21, semi-transparent; not named by the effects.
Uint16mosaic : 1Not named by the effects.
Uint16fullColor : 1Not named by the effects.
Uint16shape : 2From the ground particle frame; motes, sparkles: 0.
Uint16x : 9Screen pixels.
Uint16affineIndex : 5Sparkles: 8 on alternate ticks, else 0.
Uint16size : 2From the ground particle frame; motes, sparkles: 1.
Uint16tile : 10The state's tileBase plus the tick's tile.
Uint16priority : 21.
Uint16palette : 413; not named by the effects.
Uint8attr3 [2]The OAM entry's fourth halfword, cleared with the others.
FIXEDposXWorld position, in 16.16 pixels.
Sint32posYThe ground's height there.
FIXEDposZWorld position, in 16.16 pixels.
Sint32riseMotes: height risen; sparkles: phase within a burst.
Uint16timerTicks 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

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.