Skip to Content
The Alchemy Project

src/scene/shared/leader_slide_on_ice.c

Imil's ice, in the town and in Imil Falls Cave: the leader slides across it a metatile at a time the way the pad points. More…

Included by imil.c and imil_fuchin_falls.c.

Functions

NameDescription
static voidscActorSteerByPad (ACTOR *actor)While the leader slides on the ice, turns him a sixteenth of a turn a tick toward the way the pad points, at three times his walking pace, and has him look around when it points nowhere.
static voidscLeaderSlideOnIce (void)Slides the leader along the ice, a metatile at a time the way the pad points, until a wall or higher ground stops him or he slides off the ice.

Description

Imil's ice, in the town and in Imil Falls Cave: the leader slides across it a metatile at a time the way the pad points.

The including scene names its table of slide headings, by the held directions (DPAD_INDEX), as ICE_SLIDE_HEADINGS.

Functions in detail

scActorSteerByPad

static void scActorSteerByPad(ACTOR *actor)

While the leader slides on the ice, turns him a sixteenth of a turn a tick toward the way the pad points, at three times his walking pace, and has him look around when it points nowhere.

References fdActorSelectAnimation(), fdActorSetAnimationSpeed(), IceKeyHeadings, PerData and Sint32.

Referenced by scLeaderSlideOnIce().

Definition at line 10 of file leader_slide_on_ice.c.

scLeaderSlideOnIce

static void scLeaderSlideOnIce(void)

Slides the leader along the ice, a metatile at a time the way the pad points, until a wall or higher ground stops him or he slides off the ice.

References fdActorLookup(), fdActorSelectAnimation(), fdActorSetAnimationSpeed(), fdActorWaitForMove(), fdMapGridGetMetatileBehaviorAt(), fdMapGridGetTerrainHeight(), fdScriptEnd(), fdScriptStart(), MainRoutineStateWork, PerData, scActorSteerByPad(), scFieldActorSetMoveTargetFX(), Sint32 and sySynch().

Referenced by scImilMoveAcrossIce() and scImilSlideOnIce().

Definition at line 41 of file leader_slide_on_ice.c.