src/scene/shared/dust.c
The dust a crumbling pillar throws up around the leader.
Included by dehkan_plateau.c and izumo_ruins.c.
Functions
| Name | Description | |
|---|---|---|
void | scDustScatter (Sint32 spread) | Eight clouds of dust rise in a row across the leader, 2 pixels apart, and fly out from him in eight directions when spread is set. |
void | scDustBurst (void) | Throws a ring of dust clouds out from the leader as a pillar lands, the first thrown twice. |
Variables
| Name | Description | |
|---|---|---|
extern Uint32 | DustScatterScript [] | It lasts 33 ticks, then stops and is gone. |
extern Uint32 | DustBurstScript [] | It lasts 44 ticks, then stops and is gone. |
Description
The dust a crumbling pillar throws up around the leader.
Functions in detail
scDustScatter
void scDustScatter(Sint32 spread)
Eight clouds of dust rise in a row across the leader, 2 pixels apart, and fly
out from him in eight directions when spread is set.
References DustScatterScript, fdActorGet(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdActorStartScript(), fdSpriteShareVRAMCacheEntry(), MainRoutineStateWork, scEffectAdvanceMotionAtLeaderPriority(), scFieldActorCreate(), Sint32, syCos() and sySin().
Referenced by scCrumblingPillarCollapse(), scCrumblingPillarStep(), scCrumblingPillarStepWithStandIn(), scLeaderCheckCrumblingStep(), scMagmaRockCrumblePillar(), scMagmaRockInsideCrumblePillar(), scMagmaRockInsideStepOnTrap(), scMagmaRockStepOnCrumblingPillar(), scMagmaRockStepOnTrap(), scTrialRoadCrumblePillar() and scTrialRoadStepOnTrap().
Definition at line 7 of file dust.c.
scDustBurst
void scDustBurst(void)
Throws a ring of dust clouds out from the leader as a pillar lands, the first thrown twice.
References DustBurstScript, fdActorGet(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdActorStartScript(), fdSpriteShareVRAMCacheEntry(), MainRoutineStateWork, scEffectAdvanceMotionAtLeaderPriority(), scFieldActorCreate(), syCos() and sySin().
Referenced by scCrumblingPillarCollapse(), scCrumblingPillarStep() and scCrumblingPillarStepWithStandIn().
Definition at line 58 of file dust.c.