src/scene/shared/mercury_lighthouse_waterfall.c
Mercury Lighthouse and its entrance: leaving a room by walking into one of its waterfalls.
Included by mercury_lighthouse.c and mercury_lighthouse_entrance.c.
Functions
| Name | Description | |
|---|---|---|
static void | scMercuryLighthouseWalkIntoWaterfall (Sint32 exit) | Walking into a waterfall: the leader moves north with the trail of sparks, vanishes, and after half a second the screen fades and the party takes that exit. |
static void UNUSED | scMercuryLighthouseDropLeaderToColumn (Sint32 column) | Open question (no evidence in reach): whether this is an early form of scMercuryLighthouseWalkIntoWaterfall, which plays the same sound and steps the same way; nothing calls it, so nothing shows what would have followed. |
Description
Mercury Lighthouse and its entrance: leaving a room by walking into one of its waterfalls.
Functions in detail
scMercuryLighthouseWalkIntoWaterfall
static void scMercuryLighthouseWalkIntoWaterfall(Sint32 exit)
Walking into a waterfall: the leader moves north with the trail of sparks, vanishes, and after half a second the screen fades and the party takes that exit.
References fdActorConfigureSpriteColor(), fdActorGetById(), fdActorSetAnimation(), fdActorSetDestinationOffsetById(), fdActorSetSpriteFlags(), fdActorWaitForMoveById(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), scMercuryLighthouseTrailSparks(), Sint32, syImportScriptSetExitRequest() and sySoundPlay().
Referenced by scMercuryLighthouseEntranceWaterfallToChestFountain(), scMercuryLighthouseEntranceWaterfallToDryFountain(), scMercuryLighthouseEntranceWaterfallToTwinFountains(), scMercuryLighthouseWaterfallToGapRoom(), scMercuryLighthouseWaterfallToSleetsRoom() and scMercuryLighthouseWaterfallToUpperPath().
Definition at line 7 of file mercury_lighthouse_waterfall.c.
scMercuryLighthouseDropLeaderToColumn
static void UNUSED scMercuryLighthouseDropLeaderToColumn(Sint32 column)
Open question (no evidence in reach): whether this is an early form of
scMercuryLighthouseWalkIntoWaterfall, which plays the same sound and steps
the same way; nothing calls it, so nothing shows what would have followed.
Unused: the leader steps 8 pixels north with the waterfalls' sound and
vanishes, then is put at x 8 * column + 8, z 0, with no exit and no end to
the script; nothing in either overlay calls it.
References fdActorGet(), fdActorSetDestinationOffsetById(), fdActorSetPosFX(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdScriptStart(), fdScriptWait(), Sint32 and sySoundPlay().
Definition at line 33 of file mercury_lighthouse_waterfall.c.