Skip to Content
The Alchemy Project

src/scene/shared/floating_platform.c

Mercury and Venus Lighthouses' aeries.

Included by mercury_lighthouse_aerie.c and venus_lighthouse_aerie.c.

Macros

NameDescription
#defineFLOATING_PLATFORM_SEARCH_DISTANCE 640How far from the leader a floating platform is looked for, in pixels.

Functions

NameDescription
Sint32scActorFindNearestFloatingPlatform (void)Returns the placed actor drawn as SPRITE_FLOATING_PLATFORM nearest the leader, within FLOATING_PLATFORM_SEARCH_DISTANCE, or 0.

Description

Mercury and Venus Lighthouses' aeries.

Macros in detail

FLOATING_PLATFORM_SEARCH_DISTANCE

#define FLOATING_PLATFORM_SEARCH_DISTANCE 640

How far from the leader a floating platform is looked for, in pixels.

Referenced by scActorFindNearestFloatingPlatform().

Definition at line 4 of file floating_platform.c.

Functions in detail

scActorFindNearestFloatingPlatform

Sint32 scActorFindNearestFloatingPlatform(void)

Returns the placed actor drawn as SPRITE_FLOATING_PLATFORM nearest the leader, within FLOATING_PLATFORM_SEARCH_DISTANCE, or 0.

References fdActorGetById(), Sint32 and state.

Referenced by scInit(), scMercuryLighthouseAerieLandOnPlatform() and scVenusLighthouseAerieLandOnPlatform().

Definition at line 8 of file floating_platform.c.