src/field/script_commands_ground_particles.c
The ground particles (rain) start and the floating motes' update. More…
Included by script_commands.c.
Macros
| Name | Description | |
|---|---|---|
#define | MOTE_PICTURE_TILES 4 | mote.png's 16 by 16 pictures, four tiles each: two of each size, the motes shrinking as they rise and flickering between the two. |
#define | MOTE_LARGE 0 | |
#define | MOTE_MEDIUM 2 | |
#define | MOTE_SMALL 4 |
Functions
| Name | Description | |
|---|---|---|
void | fdWeatherStartRain (void) | Starts the rain (fdWeatherUpdateRain) with its sound, SE_AMBIENT_WATER: loads the splash tiles and puts 32 drops under the leader with staggered timers, drawn semi-transparent. |
void | fdMotesUpdate (void) | Event of the motes of light: each rises and shrinks for 120 ticks, then starts again within 128 pixels of the leader, eight new ones a tick at most. |
Description
The ground particles (rain) start and the floating motes' update. Part of
script_commands.c.
Macros in detail
MOTE_PICTURE_TILES
#define MOTE_PICTURE_TILES 4
mote.png's 16 by 16 pictures, four tiles each: two of each size, the motes
shrinking as they rise and flickering between the two.
Referenced by fdMotesUpdate().
Definition at line 8 of file script_commands_ground_particles.c.
MOTE_LARGE
#define MOTE_LARGE 0
Referenced by fdMotesUpdate().
Definition at line 9 of file script_commands_ground_particles.c.
MOTE_MEDIUM
#define MOTE_MEDIUM 2
Referenced by fdMotesUpdate().
Definition at line 10 of file script_commands_ground_particles.c.
MOTE_SMALL
#define MOTE_SMALL 4
Referenced by fdMotesUpdate().
Definition at line 11 of file script_commands_ground_particles.c.
Functions in detail
fdWeatherStartRain
void fdWeatherStartRain(void)
Starts the rain (fdWeatherUpdateRain) with its sound, SE_AMBIENT_WATER: loads
the splash tiles and puts 32 drops under the leader with staggered timers,
drawn semi-transparent.
References fdMapGridGetTerrainHeightStub(), fdQueueMusic(), fdWeatherUpdateRain(), Sint32, state, syDecompressByteLZ(), syHeapSlotAllocateEWRAM(), syHeapSlotRelease(), sySetEvent(), syVRAMCacheFindFreeEntry(), syVRAMCacheLoad() and WeatherParticleTiles.
Referenced by scInit() and scValePrologueDoraSendsIsaacToThePlaza().
Definition at line 16 of file script_commands_ground_particles.c.
fdMotesUpdate
void fdMotesUpdate(void)
Event of the motes of light: each rises and shrinks for 120 ticks, then starts again within 128 pixels of the leader, eight new ones a tick at most.
References fdMapGridGetTerrainHeightStub(), fdMapGridScrollStateView(), gmFlagGetStub(), Sint32, state, syOAMAddSpriteAtDepth(), syRandom() and TickCount.
Referenced by fdMotesStart().
Definition at line 62 of file script_commands_ground_particles.c.