src/scene/shared/actor_roll_and_crumble.c
A rolling fireball, which four Mars Lighthouse rooms keep a copy of. More…
Included by mars_lighthouse_entrance.c, mars_lighthouse_hall.c, mars_lighthouse_star_room.c and mars_lighthouse_towers.c.
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { METATILE_BEHAVIOR_BREAKABLE_ICE } | Ice a rolling fireball breaks beside its path: the small crystals on the middle layer crack, the tall ones on the overhead layer crumble. |
Functions
| Name | Description | |
|---|---|---|
void | scActorRollAndCrumble (ACTOR *actor) | A fireball rolls forward, breaking the ice in the metatiles around it, and carries the leader along if it hits him. |
Description
A rolling fireball, which four Mars Lighthouse rooms keep a copy of. The
includer defines ABS and its own scActorScatterCrumbs before it.
Enumerations in detail
anonymous enum
enum { METATILE_BEHAVIOR_BREAKABLE_ICE }
Ice a rolling fireball breaks beside its path: the small crystals on the middle layer crack, the tall ones on the overhead layer crumble.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_BREAKABLE_ICE | 77 |
Definition at line 6 of file actor_roll_and_crumble.c.
Functions in detail
scActorRollAndCrumble
void scActorRollAndCrumble(ACTOR *actor)
A fireball rolls forward, breaking the ice in the metatiles around it, and carries the leader along if it hits him. Where the ground 8 pixels ahead is a rounded square its path ends: it crashes, calls the function its path left in watchedActor, then shrinks away in crumbs.
References fdActorGet(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesLayered(), fdMapGridGetTerrainKindOrBumpAt(), fdScriptGetFlag(), fdScriptPlaySound(), MainRoutineStateWork, scActorScatterCrumbs(), scFieldActorSetMoveTargetFX(), scIceChipsSpawn() and Sint32.
Referenced by fdActorLaunchAhead().
Definition at line 15 of file actor_roll_and_crumble.c.