Skip to Content
The Alchemy Project

src/scene/shared/actor_scatter_crumbs.c

The crumbs a fireball throws off as it crumbles away (scActorRollAndCrumble), which three Mars Lighthouse rooms keep a copy of, over the flames' FLAME_HIT_STATE (scene/flame_throwers.h).

Included by mars_lighthouse_entrance.c, mars_lighthouse_hall.c, mars_lighthouse_star_room.c and mars_lighthouse_towers.c.

Functions

NameDescription
voidscActorScatterCrumbs (ACTOR *actor)A fireball crumbling away throws off a crumb, a small flame drawn with the kept flame's tiles, that bounces off in a random direction and flickers out (the includer's CrumbsScript): as the Mars tower's fireball crashes on the centre wall, it shrinks away in a spray of little flames.

Description

The crumbs a fireball throws off as it crumbles away (scActorRollAndCrumble), which three Mars Lighthouse rooms keep a copy of, over the flames' FLAME_HIT_STATE (scene/flame_throwers.h).

Functions in detail

scActorScatterCrumbs

void scActorScatterCrumbs(ACTOR *actor)

A fireball crumbling away throws off a crumb, a small flame drawn with the kept flame's tiles, that bounces off in a random direction and flickers out (the includer's CrumbsScript): as the Mars tower's fireball crashes on the centre wall, it shrinks away in a spray of little flames.

References CrumbsScript, fdActorSetSpriteFlags(), fdActorStartScript(), fdSpriteAnimationClear(), Sint32, syCos(), syImportActorCreate(), syRandom(), sySin() and syVRAMCacheFreeEntry().

Referenced by scActorRollAndCrumble().

Definition at line 9 of file actor_scatter_crumbs.c.