Alchemy
Loading...
Searching...
No Matches

kolima_forest_bridge_falling_effect.h File Reference

Go to the source code of this file.

Data Structures

struct  SceneEffectOrigin
 The point the curse dust falls around. More...
struct  SceneEffectWork
 The first map work slot, seen for the curse dust's origin. More...

Functions

void Kolima_UpdateCurseDust (void)
 A scene callback: every eighth frame a speck (object 285, its script gFallingEffectScript) starts 160 pixels up at a random point near the map work's origin, with SE_246 every 64 frames.

Variables

s32 gFallingEffectOffset
s32 gFallingEffectWidth
u32 gFallingEffectState

Function Documentation

◆ Kolima_UpdateCurseDust()

void Kolima_UpdateCurseDust ( void )

A scene callback: every eighth frame a speck (object 285, its script gFallingEffectScript) starts 160 pixels up at a random point near the map work's origin, with SE_246 every 64 frames.

gFallingEffectState shapes the fall: 0 within 128 pixels of the origin; 1 and 2 over a band that widens (by 50 a frame, to 15000 and 30000) as it moves towards the origin; 3 drifting on until it is far past, then back to 0.

Definition at line 39 of file kolima_forest_bridge_falling_effect.h.

Referenced by Kolima_UpdateCurseDust(), Kolima_WitnessForestCurse(), and KolimaForestBridge_WitnessForestCurse().

Variable Documentation

◆ gFallingEffectOffset

◆ gFallingEffectWidth

◆ gFallingEffectState