Skip to Content
The Alchemy Project

include/field/weather.h

The ground particles, motes of light and sparkles that the weather state holds.

Included by ground_mask.h.

Structures

NameDescription
structWEATHER_PARTICLEOne 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.
structWEATHER_STATEHEAP_SLOT_WEATHER while ground particles, motes or sparkles run.

Macros

NameDescription
#defineWEATHER_PARTICLE_COUNT 32WEATHER_STATE.particles
#defineGROUND_PARTICLE_FREED 65535WEATHER_PARTICLE.timer after the decrement that counts a live particle down, when it was already free (0): the Uint16 wraps.
#defineRAIN_SPLASH_FRAMES 16The frames of a raindrop's splash on the ground (WeatherRainSplashFrames, five halfwords each), played from the last down to the first.
#defineWeatherStateWork (*(WEATHER_STATE **)&HeapSlots[HEAP_SLOT_WEATHER])HEAP_SLOT_WEATHER: the running ground particles, motes or sparkles.

Description

The ground particles, motes of light and sparkles that the weather state holds.

Macros in detail

WEATHER_PARTICLE_COUNT

#define WEATHER_PARTICLE_COUNT 32

WEATHER_STATE.particles

Referenced by fdEffectInitSparkles(), fdEffectUpdateSparkles(), fdMotesStart(), fdMotesUpdate(), fdWeatherStartRain() and fdWeatherUpdateRain().

Definition at line 13 of file weather.h.

GROUND_PARTICLE_FREED

#define GROUND_PARTICLE_FREED 65535

WEATHER_PARTICLE.timer after the decrement that counts a live particle down, when it was already free (0): the Uint16 wraps.

Referenced by fdMotesUpdate() and fdWeatherUpdateRain().

Definition at line 48 of file weather.h.

RAIN_SPLASH_FRAMES

#define RAIN_SPLASH_FRAMES 16

The frames of a raindrop's splash on the ground (WeatherRainSplashFrames, five halfwords each), played from the last down to the first.

Referenced by fdEffectInitSparkles(), fdMotesStart(), fdWeatherStartRain() and fdWeatherUpdateRain().

Definition at line 52 of file weather.h.

WeatherStateWork

#define WeatherStateWork (*(WEATHER_STATE **)&HeapSlots[HEAP_SLOT_WEATHER])

HEAP_SLOT_WEATHER: the running ground particles, motes or sparkles.

Referenced by fdEffectUpdateSparkles(), fdMotesUpdate(), fdWeatherUpdateRain(), scSolSanctumEruptionPlayHostageScript(), scSolSanctumEruptionPlayWiseOneRescue() and scSolSanctumEruptionStepShards().

Definition at line 69 of file weather.h.