Skip to Content
The Alchemy Project

src/scene/shared/kolima_jump.c

Kolima Forest (SceneIdKolimaForestEntrance and SceneIdKolimaForestCliff): the hop east from the bank onto the log floating in the river (ACTOR_RIVER_LOG, which each scene names).

Included by kolima_forest_cliff.c and kolima_forest_entrance.c.

Macros

NameDescription
#defineRIVER_LOG_LANDING_ANIMATION 7The log's animation as the leader lands on it, one of its sheet's.

Functions

NameDescription
static BoolscKolimaForestHopTo (FIELD_POS *request)Hops the leader to the 16.16 position request, unless something blocks the way: the leader crouches and jumps, lands on the log as it plays its landing animation, sinks two pixels and rises back.
static voidscKolimaForestHopEast (void)Walking east off the bank, the leader hops onto the log: 30 pixels east, or, in every edition but the Japanese, to the middle of the metatile 40 pixels east.

Description

Kolima Forest (SceneIdKolimaForestEntrance and SceneIdKolimaForestCliff): the hop east from the bank onto the log floating in the river (ACTOR_RIVER_LOG, which each scene names).

Macros in detail

RIVER_LOG_LANDING_ANIMATION

#define RIVER_LOG_LANDING_ANIMATION 7

The log's animation as the leader lands on it, one of its sheet's.

Referenced by scKolimaForestHopTo().

Definition at line 6 of file kolima_jump.c.

Functions in detail

scKolimaForestHopTo

static Bool scKolimaForestHopTo(FIELD_POS *request)

Hops the leader to the 16.16 position request, unless something blocks the way: the leader crouches and jumps, lands on the log as it plays its landing animation, sinks two pixels and rises back. Returns 1 after a hop.

References fdActorGetById(), fdActorMoveToAndWaitById(), fdActorSelectAnimation(), fdActorSetAnimation(), fdActorSetSpriteFlags(), fdScriptEnd(), fdScriptStart(), scFieldActorCheckMovementCollision(), Sint32, sySoundPlay() and sySynch().

Referenced by scKolimaForestHopEast().

Definition at line 11 of file kolima_jump.c.

scKolimaForestHopEast

static void scKolimaForestHopEast(void)

Walking east off the bank, the leader hops onto the log: 30 pixels east, or, in every edition but the Japanese, to the middle of the metatile 40 pixels east.

References fdActorGetById() and scKolimaForestHopTo().

Referenced by KolimaForestCliffCues and KolimaForestEntranceCues.

Definition at line 58 of file kolima_jump.c.