src/scene/shared/kolima_curse_dust.c
Kolima and Kolima Forest (SceneIdKolima and SceneIdKolimaForestEntrance): the sparkling dust that falls over the party when Tret's curse strikes ("Watch out! More…
Included by kolima.c and kolima_forest_entrance.c.
Functions
| Name | Description | |
|---|---|---|
void | scKolimaUpdateCurseDust (void) | An event: every eighth tick a speck (its script KolimaCurseDustScript) starts 160 pixels up at a random point of the band, or anywhere within 128 pixels of the point the map view follows once the dust is centred, with SE_GLITTER every 64 ticks. |
Variables
| Name | Description | |
|---|---|---|
Sint32 | KolimaCurseDustOffset | Where the dust falls, east of the point the map view follows: the band's west edge, 16.16 pixels from that point, and its width, in 256ths of a pixel; the script closes the band in (KOLIMA_CURSE_DUST_STATE). |
Sint32 | KolimaCurseDustWidth | the band's width in 1/256 pixels |
Uint32 | KolimaCurseDustState | the dust's phase, 0 to 3 |
Description
Kolima and Kolima Forest (SceneIdKolima and SceneIdKolimaForestEntrance): the
sparkling dust that falls over the party when Tret's curse strikes ("Watch
out! It's happening again!").
Functions in detail
scKolimaUpdateCurseDust
void scKolimaUpdateCurseDust(void)
An event: every eighth tick a speck (its script KolimaCurseDustScript) starts
160 pixels up at a random point of the band, or anywhere within 128 pixels of
the point the map view follows once the dust is centred, with SE_GLITTER
every 64 ticks.
References fdActorSelectAnimation(), fdActorStartScript(), KolimaCurseDustOffset, KolimaCurseDustScript, KolimaCurseDustState, KolimaCurseDustWidth, scFieldActorCreate(), Sint32, syRandomNext(), sySoundPlay() and TickCount.
Referenced by scKolimaForestEntranceWitnessForestCurse() and scKolimaWitnessForestCurse().
Definition at line 19 of file kolima_curse_dust.c.
Variables in detail
KolimaCurseDustOffset
Sint32 KolimaCurseDustOffset
Where the dust falls, east of the point the map view follows: the band's west
edge, 16.16 pixels from that point, and its width, in 256ths of a pixel; the
script closes the band in (KOLIMA_CURSE_DUST_STATE).
References Sint32.
Referenced by scKolimaForestEntranceWitnessForestCurse(), scKolimaUpdateCurseDust() and scKolimaWitnessForestCurse().
Definition at line 11 of file kolima_curse_dust.c.
KolimaCurseDustWidth
Sint32 KolimaCurseDustWidth
the band's width in 1/256 pixels
References Sint32.
Referenced by scKolimaForestEntranceWitnessForestCurse(), scKolimaUpdateCurseDust() and scKolimaWitnessForestCurse().
Definition at line 12 of file kolima_curse_dust.c.
KolimaCurseDustState
Uint32 KolimaCurseDustState
the dust's phase, 0 to 3
Referenced by scKolimaForestEntranceWitnessForestCurse(), scKolimaUpdateCurseDust() and scKolimaWitnessForestCurse().
Definition at line 13 of file kolima_curse_dust.c.