Skip to Content
The Alchemy Project

src/scene/lemurian_ship.c

The gangway out over the sea behind the shack in the north-west of Lalivero, where the Lemurian ship lies sunk (SceneIdLemurianShip, the area name Lemurian ship), and the game's last scene. More…

Structures

NameDescription
structRIPPLE_SCROLL_STATEThe water's ripple, this scene's view of the line scroll's state (LineScroll, LINE_SCROLL_STATE).

Macros

NameDescription
#defineSHIP_GLOW_COLORS 6The glow along the risen ship's hull (scLemurianShipCycleGlow): SHIP_GLOW_COLORS of LemurianShipGlowColors at a time, from a start that moves one colour every SHIP_GLOW_STEP_TICKS ticks, through as many starts as colours shown.
#defineSHIP_GLOW_STEP_TICKS 6
#defineCURTAIN_PART_WIDTH 32The curtains, the black bars of the ending (scLemurianShipCloseCurtains): three rows of CURTAIN_ROW_PARTS sprites, 32 by 16, one row sliding down from above the screen and two up from below, CURTAIN_START_GAP pixels in all, until they rest at the top and at CURTAIN_BOTTOM_Y.
#defineCURTAIN_PART_HEIGHT 16
#defineCURTAIN_ROW_PARTS 8
#defineCURTAIN_BOTTOM_Y 136
#defineCURTAIN_START_GAP 48
#defineLEMURIAN_SHIP_DEPARTURE_DELAY_TICKSThe ticks from the curtains starting to close to the ship sailing west: 30 in the French, Spanish and Italian editions, 80 before.
#defineSHIP_NOT_ON_DECK (-toFIXED(1))The deck height of a party member who has not yet boarded.
#defineSET_IMAGE_PRIORITY (actor, level)The sprite priority of an actor's picture and of its shadow.
#defineSET_SHADOW_PRIORITY (actor, level)
#defineCURTAIN_PART (attributes, tile)UB: the parts are written through a word cursor, the link among them.

Enumerations

NameDescription
enumanonymous enum { ACTOR_GANGWAY_NORTH, ACTOR_GANGWAY_SOUTH }The gangway, in two pieces (SPRITE_GANGWAY), north and south.
enumLEMURIAN_SHIP_METATILE_BEHAVIOR { METATILE_BEHAVIOR_LEMURIAN_SHIP_TO_SHACK, METATILE_BEHAVIOR_ … }The metatile behaviors the scene's cues answer: the gangway's south end, whose behavior is the exit back into the shack, and its north end, where the Black Orb is used.
enumanonymous enum { ANIM_DROP_BURST }The water drop's burst into a ring of spray (water_drop.png), beyond enum ACTOR_ANIMATION.

Functions

NameDescription
Sint32scInit (void)Lays the Lemurian ship under the sea: its two layers are lowered 90 pixels and drawn behind the sea's, which is blended over them, while the gangway and the party are drawn above.
static voidscLemurianShipStopRipple (void)Takes the ripple's events off and stops DMA 0.
static voidscLemurianShipStartCurtains (void)Fills a curtain sprite's tiles with colour 1 and starts the curtains CURTAIN_START_GAP pixels apart from where they rest.
const SCENE_ENTRANCE *scGetEntrances (void)The six rooms share one entrance table.
const SCENE_EXIT_REGION *scGetExitRegions (void)The scene has no exit regions: its regions entry returns none.
const Uint32 *scGetExits (void)Both scenes share one exit table.
const ACTOR_PLACE *scGetActorPlacements (void)The gangway's two pieces.
static voidscLemurianShipWalkBackToShack (void)Walking off the south end of the gangway (metatiles (18, 20) to (20, 20)) goes back into the shack in Lalivero, the backdrop cleared to black for the way out.
static voidscLemurianShipStopRippleForReveal (void)Casting Reveal on the gangway to the Lemurian ship stops the sea rippling while the grey circle of Reveal shows; there is nothing hidden here.
static voidscLemurianShipStartRipple (void)The sea around the gangway to the Lemurian ship ripples, from the moment the party arrives and again as Reveal ends.
const CUE *scGetCues (void)The way back, Reveal, and the Black Orb at the gangway's north end.
static voidscLemurianShipCycleGlow (void)Runs the glow along the risen ship's hull, a colour at a time.
static voidscLemurianShipSprayUpdate (ACTOR *drop)A drop of spray rises and wobbles for its timer in ticks, then bursts into a ring of spray (userValue, set while it rises, is cleared as it bursts) and is released 20 ticks later by LemurianShipSprayReleaseScript.
static voidscLemurianShipFadeOrbGlow (void)Every 40 ticks, the Black Orb's glow fades a step, down to 4.
static voidscLemurianShipUpdateGlowSwellAndSpray (void)Each tick while the ship rises and after: the Black Orb's glow pulses over the sea, the risen ship rocks on the swell with those aboard, and every other tick a drop of spray rises from a random place on screen.
static Sint32scLemurianShipLeaderStepOnDeck (ACTOR *interpreter)Each member's boarding script calls one of these as he or she lands on the deck: the height there is kept, so that from then on the swell rocks him or her with the ship.
static Sint32scLemurianShipGaretStepOnDeck (ACTOR *interpreter)
static Sint32scLemurianShipMiaStepOnDeck (ACTOR *interpreter)
static Sint32scLemurianShipIvanStepOnDeck (ACTOR *interpreter)
static voidscLemurianShipSetSail (void)On the gangway beside the risen Lemurian ship, Garet, Mia and Ivan step out and talk the journey over with Isaac, who answers three questions: whether the journey ends when they find Jenna, whether to find her before Lemuria, and whether they will be all right on the rough sea.
static inline Sint32scLemurianShipWaveOffset (Sint32 angle, FIXED amplitude, Uint16 base)One line's ripple offset.
static voidscLemurianShipRaiseTheShip (void)Using the Black Orb at the north end of the gangway (metatiles (18, 12) to (20, 14)) raises the Lemurian ship.
voidfdLineScrollArmDMA (void)Arms DMA 0 to copy the shown ripple page into background 3's scroll registers.
voidfdLineScrollBuildPage (void)Builds the other ripple page and swaps it in.
static voidscLemurianShipCloseCurtains (void)Each tick from scLemurianShipStartCurtains to the end of the game: closes the curtains a pixel more, until they rest, and queues their 24 sprites.

Variables

NameDescription
extern Uint16LemurianShipGlowColors []The ship's glow.
extern Sint32LemurianShipSprayReleaseScript []A drop of spray, 20 ticks after it bursts: released.
extern Sint16LemurianShipRippleSine [LINE_SCROLL_WAVE_ENTRIES]The ripple's sine, the line scroll's LineScrollWaveSine kept again in this overlay.
extern SCENE_ENTRANCELemurianShipEntrances []
extern Uint32LemurianShipExits []
extern ACTOR_PLACELemurianShipActorPlacements []
extern CUELemurianShipCues []
extern Sint32LemurianShipOrbGlowActiveThe Black Orb's glow: whether it shows, its phase in ticks, its strength (BLDALPHA's first weight, a step weaker every 40 ticks down to 4) and the ticks into that step.
extern Sint32LemurianShipOrbGlowPhase
extern Sint32LemurianShipOrbGlowStrength
extern Sint32LemurianShipOrbGlowFadeTicks
extern Sint32LemurianShipSprayActiveSet while spray flies about the rising ship.
extern Sint32LemurianShipSwellActiveThe raised ship's swell: whether it runs, its phase in ticks, the hull's and deck's layer heights it rocks about, and the height on the deck of each of the party (16.16 pixels), SHIP_NOT_ON_DECK for one not on it.
extern Sint32LemurianShipSwellPhase
extern Sint32LemurianShipHullY
extern Sint32LemurianShipDeckY
extern Sint32LemurianShipLeaderDeckY
extern Sint32LemurianShipGaretDeckY
extern Sint32LemurianShipMiaDeckY
extern Sint32LemurianShipIvanDeckY
extern Uint16LemurianShipGlowStepThe ticks into the glow's run along the risen ship's hull, SHIP_GLOW_STEP_TICKS for each of its SHIP_GLOW_COLORS colours.
extern Sint32LemurianShipLeaderBoards []How each of the party boards: a few steps north along the gangway, a high jump up onto the deck, a pause, and on to a place on it.
extern Sint32LemurianShipGaretBoards []
extern Sint32LemurianShipIvanBoards []
extern Sint32LemurianShipMiaBoards []
static MENU_SPRCurtainSprites [3 * CURTAIN_ROW_PARTS]The curtains' sprites, which close in from above and below as the ship sails.
static Sint16CurtainGap
static Sint16CurtainVramSlot

Description

The gangway out over the sea behind the shack in the north-west of Lalivero, where the Lemurian ship lies sunk (SceneIdLemurianShip, the area name Lemurian ship), and the game's last scene.

The party comes in from the shack (timber_rooms_bc.c) once Iodem has given it the Black Orb and the guard lets it by. A long wooden gangway with rails runs north over the sea, and the ship lies beneath the water beside it, seen through the waves. Walking back off the gangway's south end goes back into the shack.

Using the Black Orb at the gangway's north end raises the ship (scLemurianShipRaiseTheShip): the sea glows, spray rises, the screen shakes, and the ship comes up out of the water beside the gangway and rides the swell with a glow along its hull. The party then talks the journey over, with three yes-or-no questions, climbs aboard and sails away west as black bars, the curtains, close in from above and below (scLemurianShipSetSail). The game then fades to the staff credits and the clear screen (TITLE_FROM_LEMURIAN_SHIP), keeping the music (FLAG_KEEP_MUSIC_ONCE).

The sunk ship is the map's two upper layers drawn 90 pixels low, under the sea's layer, which ripples by a line scroll (scLemurianShipStartRipple). Reveal stops the ripple while it shows. Arriving by LEMURIAN_SHIP_WITH_BLACK_ORB, which only the debug scene selector reaches, first gives the leader the Black Orb.

Macros in detail

SHIP_GLOW_COLORS

#define SHIP_GLOW_COLORS 6

The glow along the risen ship's hull (scLemurianShipCycleGlow): SHIP_GLOW_COLORS of LemurianShipGlowColors at a time, from a start that moves one colour every SHIP_GLOW_STEP_TICKS ticks, through as many starts as colours shown.

Referenced by scLemurianShipCycleGlow().

Definition at line 68 of file lemurian_ship.c.

SHIP_GLOW_STEP_TICKS

#define SHIP_GLOW_STEP_TICKS 6

Referenced by scLemurianShipCycleGlow().

Definition at line 69 of file lemurian_ship.c.

CURTAIN_PART_WIDTH

#define CURTAIN_PART_WIDTH 32

The curtains, the black bars of the ending (scLemurianShipCloseCurtains): three rows of CURTAIN_ROW_PARTS sprites, 32 by 16, one row sliding down from above the screen and two up from below, CURTAIN_START_GAP pixels in all, until they rest at the top and at CURTAIN_BOTTOM_Y.

Referenced by scLemurianShipCloseCurtains() and scLemurianShipStartCurtains().

Definition at line 75 of file lemurian_ship.c.

CURTAIN_PART_HEIGHT

#define CURTAIN_PART_HEIGHT 16

Referenced by scLemurianShipCloseCurtains() and scLemurianShipStartCurtains().

Definition at line 76 of file lemurian_ship.c.

CURTAIN_ROW_PARTS

#define CURTAIN_ROW_PARTS 8

Referenced by CurtainSprites and scLemurianShipCloseCurtains().

Definition at line 77 of file lemurian_ship.c.

CURTAIN_BOTTOM_Y

#define CURTAIN_BOTTOM_Y 136

Referenced by scLemurianShipCloseCurtains().

Definition at line 78 of file lemurian_ship.c.

CURTAIN_START_GAP

#define CURTAIN_START_GAP 48

Referenced by scLemurianShipStartCurtains().

Definition at line 79 of file lemurian_ship.c.

LEMURIAN_SHIP_DEPARTURE_DELAY_TICKS

#define LEMURIAN_SHIP_DEPARTURE_DELAY_TICKS

The ticks from the curtains starting to close to the ship sailing west: 30 in the French, Spanish and Italian editions, 80 before.

Referenced by scLemurianShipSetSail().

Definition at line 83 of file lemurian_ship.c.

SHIP_NOT_ON_DECK

#define SHIP_NOT_ON_DECK (-toFIXED(1))

The deck height of a party member who has not yet boarded. The swell (scLemurianShipUpdateGlowSwellAndSpray) moves only those who have.

Referenced by LemurianShipGaretDeckY, LemurianShipIvanDeckY, LemurianShipLeaderDeckY, LemurianShipMiaDeckY and scLemurianShipUpdateGlowSwellAndSpray().

Definition at line 107 of file lemurian_ship.c.

SET_IMAGE_PRIORITY

#define SET_IMAGE_PRIORITY(actor, level)

The sprite priority of an actor's picture and of its shadow.

Referenced by scInit().

Definition at line 110 of file lemurian_ship.c.

SET_SHADOW_PRIORITY

#define SET_SHADOW_PRIORITY(actor, level)

Referenced by scInit().

Definition at line 112 of file lemurian_ship.c.

CURTAIN_PART

#define CURTAIN_PART(attributes, tile)

UB: the parts are written through a word cursor, the link among them.

Referenced by scLemurianShipCloseCurtains().

Definition at lines 933 and 940 of file lemurian_ship.c.

Enumerations in detail

anonymous enum

enum { ACTOR_GANGWAY_NORTH, ACTOR_GANGWAY_SOUTH }

The gangway, in two pieces (SPRITE_GANGWAY), north and south.

EnumeratorValueDescription
ACTOR_GANGWAY_NORTHACTOR_FIRST_PLACED
ACTOR_GANGWAY_SOUTH

Definition at line 90 of file lemurian_ship.c.

LEMURIAN_SHIP_METATILE_BEHAVIOR

enum LEMURIAN_SHIP_METATILE_BEHAVIOR

The metatile behaviors the scene's cues answer: the gangway's south end, whose behavior is the exit back into the shack, and its north end, where the Black Orb is used.

EnumeratorValueDescription
METATILE_BEHAVIOR_LEMURIAN_SHIP_TO_SHACKLEMURIAN_SHIP_TIMBER_ROOMS_C
METATILE_BEHAVIOR_LEMURIAN_SHIP_GANGWAY_END10

Definition at line 99 of file lemurian_ship.c.

anonymous enum

enum { ANIM_DROP_BURST }

The water drop's burst into a ring of spray (water_drop.png), beyond enum ACTOR_ANIMATION.

EnumeratorValueDescription
ANIM_DROP_BURST1

Definition at line 190 of file lemurian_ship.c.

Functions in detail

scInit

Sint32 scInit(void)

Lays the Lemurian ship under the sea: its two layers are lowered 90 pixels and drawn behind the sea's, which is blended over them, while the gangway and the party are drawn above. The sea starts rippling.

References fdActorGet(), fdMapGridCenterOnFollowedPoint(), gmInventoryAddItem(), MainRoutineStateWork, scLemurianShipStartRipple() and Sint32.

Definition at lines 37 and 774 of file lemurian_ship.c.

scLemurianShipStopRipple

static void scLemurianShipStopRipple(void)

Takes the ripple's events off and stops DMA 0.

References fdLineScrollArmDMA(), fdLineScrollBuildPage() and syCloseEvent().

Referenced by scLemurianShipStopRippleForReveal().

Definition at lines 86 and 913 of file lemurian_ship.c.

scLemurianShipStartCurtains

static void scLemurianShipStartCurtains(void)

Fills a curtain sprite's tiles with colour 1 and starts the curtains CURTAIN_START_GAP pixels apart from where they rest.

References CurtainGap, CurtainVramSlot, scLemurianShipCloseCurtains(), syHeapAllocateEWRAM(), syHeapCallAlternatePool(), sySetTickEvent(), syVRAMCacheFindFreeEntry() and syVRAMCacheLoad().

Referenced by scLemurianShipSetSail().

Definition at lines 87 and 993 of file lemurian_ship.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References LemurianShipEntrances.

Definition at line 115 of file lemurian_ship.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

Definition at line 120 of file lemurian_ship.c.

scGetExits

const Uint32 *scGetExits(void)

References LemurianShipExits.

Definition at line 125 of file lemurian_ship.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

The gangway's two pieces. The party's own actors fill the first three rows.

References LemurianShipActorPlacements.

Definition at line 131 of file lemurian_ship.c.

scLemurianShipWalkBackToShack

static void scLemurianShipWalkBackToShack(void)

Walking off the south end of the gangway (metatiles (18, 20) to (20, 20)) goes back into the shack in Lalivero, the backdrop cleared to black for the way out.

References syImportScriptSetExitRequest().

Referenced by LemurianShipCues.

Definition at line 139 of file lemurian_ship.c.

scLemurianShipStopRippleForReveal

static void scLemurianShipStopRippleForReveal(void)

Casting Reveal on the gangway to the Lemurian ship stops the sea rippling while the grey circle of Reveal shows; there is nothing hidden here.

References scLemurianShipStopRipple().

Referenced by LemurianShipCues.

Definition at line 147 of file lemurian_ship.c.

scLemurianShipStartRipple

static void scLemurianShipStartRipple(void)

The sea around the gangway to the Lemurian ship ripples, from the moment the party arrives and again as Reveal ends. The ripple sways the sea's layer across and up and down at once (scLineScrollInitWave).

References scLineScrollInitWave().

Referenced by LemurianShipCues and scInit().

Definition at line 155 of file lemurian_ship.c.

scGetCues

const CUE *scGetCues(void)

The way back, Reveal, and the Black Orb at the gangway's north end.

References LemurianShipCues.

Definition at line 167 of file lemurian_ship.c.

scLemurianShipCycleGlow

static void scLemurianShipCycleGlow(void)

Runs the glow along the risen ship's hull, a colour at a time.

References LemurianShipGlowColors, LemurianShipGlowStep, syDMAXCopy() and syMathDivideUnsigned().

Referenced by scLemurianShipRaiseTheShip().

Definition at line 173 of file lemurian_ship.c.

scLemurianShipSprayUpdate

static void scLemurianShipSprayUpdate(ACTOR *drop)

A drop of spray rises and wobbles for its timer in ticks, then bursts into a ring of spray (userValue, set while it rises, is cleared as it bursts) and is released 20 ticks later by LemurianShipSprayReleaseScript.

References fdActorSelectAnimation(), fdActorStartScript(), LemurianShipSprayReleaseScript, Sint32 and syRandomNext().

Referenced by scLemurianShipUpdateGlowSwellAndSpray().

Definition at line 198 of file lemurian_ship.c.

scLemurianShipFadeOrbGlow

static void scLemurianShipFadeOrbGlow(void)

Every 40 ticks, the Black Orb's glow fades a step, down to 4.

References LemurianShipOrbGlowFadeTicks, LemurianShipOrbGlowStrength and Sint32.

Referenced by scLemurianShipRaiseTheShip().

Definition at line 219 of file lemurian_ship.c.

scLemurianShipUpdateGlowSwellAndSpray

static void scLemurianShipUpdateGlowSwellAndSpray(void)

Each tick while the ship rises and after: the Black Orb's glow pulses over the sea, the risen ship rocks on the swell with those aboard, and every other tick a drop of spray rises from a random place on screen.

References fdActorGet(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), LemurianShipDeckY, LemurianShipGaretDeckY, LemurianShipHullY, LemurianShipIvanDeckY, LemurianShipLeaderDeckY, LemurianShipMiaDeckY, LemurianShipOrbGlowActive, LemurianShipOrbGlowPhase, LemurianShipOrbGlowStrength, LemurianShipSprayActive, LemurianShipSwellActive, LemurianShipSwellPhase, scFieldActorCreate(), scLemurianShipSprayUpdate(), Sint32, syMulFX(), syRandomNext(), sySin() and TickCount.

Referenced by scLemurianShipRaiseTheShip().

Definition at line 237 of file lemurian_ship.c.

scLemurianShipLeaderStepOnDeck

static Sint32 scLemurianShipLeaderStepOnDeck(ACTOR *interpreter)

Each member's boarding script calls one of these as he or she lands on the deck: the height there is kept, so that from then on the swell rocks him or her with the ship.

References fdActorGet(), LemurianShipLeaderDeckY and Sint32.

Referenced by LemurianShipLeaderBoards.

Definition at line 327 of file lemurian_ship.c.

scLemurianShipGaretStepOnDeck

static Sint32 scLemurianShipGaretStepOnDeck(ACTOR *interpreter)

References fdActorGet(), LemurianShipGaretDeckY and Sint32.

Referenced by LemurianShipGaretBoards.

Definition at line 333 of file lemurian_ship.c.

scLemurianShipMiaStepOnDeck

static Sint32 scLemurianShipMiaStepOnDeck(ACTOR *interpreter)

References fdActorGet(), LemurianShipMiaDeckY and Sint32.

Referenced by LemurianShipMiaBoards.

Definition at line 339 of file lemurian_ship.c.

scLemurianShipIvanStepOnDeck

static Sint32 scLemurianShipIvanStepOnDeck(ACTOR *interpreter)

References fdActorGet(), LemurianShipIvanDeckY and Sint32.

Referenced by LemurianShipIvanBoards.

Definition at line 345 of file lemurian_ship.c.

scLemurianShipSetSail

static void scLemurianShipSetSail(void)

On the gangway beside the risen Lemurian ship, Garet, Mia and Ivan step out and talk the journey over with Isaac, who answers three questions: whether the journey ends when they find Jenna, whether to find her before Lemuria, and whether they will be all right on the rough sea. Each answer picks one of two replies. Then all four hop up onto the deck, Mia last after a look back at the shore, and the ship sails away west as black bars close in from above and below and the ending theme plays, until the screen fades to the staff credits.

References fdActorFaceDirection(), fdActorGet(), fdActorLaunchFromLeader(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetScript(), fdActorShowEmote(), fdActorWaitForMoveById(), fdActorWaitForScriptEndById(), fdActorWalkByAndWait(), fdCameraWaitForMove(), fdMapGridCopyMetatileAttributes(), fdScriptAskYesNoWithActorAnimation(), fdScriptFinishScreenTransition(), fdScriptOpenMessage(), fdScriptSetDestination(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagSet(), LemurianShipGaretBoards, LemurianShipIvanBoards, LemurianShipLeaderBoards, LemurianShipMiaBoards, scFieldActorLaunchFromLeader(), scLemurianShipStartCurtains(), state, sySoundPlay() and sySoundSetBGMTempo().

Referenced by scLemurianShipRaiseTheShip().

Definition at line 359 of file lemurian_ship.c.

scLemurianShipWaveOffset

static inline Sint32 scLemurianShipWaveOffset(Sint32 angle, FIXED amplitude, Uint16 base)

One line's ripple offset.

References LemurianShipRippleSine, Sint32 and syMulFX().

Referenced by fdLineScrollBuildPage().

Definition at line 651 of file lemurian_ship.c.

scLemurianShipRaiseTheShip

static void scLemurianShipRaiseTheShip(void)

Using the Black Orb at the north end of the gangway (metatiles (18, 12) to (20, 14)) raises the Lemurian ship. Isaac walks to the end and faces the sea; the water glows brighter and brighter, flashing three times, spray rises all over it and the screen shakes harder, and the ship slowly comes up out of the sea beside the gangway. A white flash, the puzzle-solved jingle, and the departure follows (scLemurianShipSetSail).

References fdActorFaceDirection(), fdActorWalkToAndWait(), fdEndBusyAndReveal(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), LemurianShipDeckY, LemurianShipHullY, LemurianShipOrbGlowActive, LemurianShipOrbGlowFadeTicks, LemurianShipOrbGlowPhase, LemurianShipSprayActive, LemurianShipSwellActive, mnSoundWaitForJingle(), scLemurianShipCycleGlow(), scLemurianShipFadeOrbGlow(), scLemurianShipSetSail(), scLemurianShipUpdateGlowSwellAndSpray(), Sint32, syCloseEvent(), sySetTickEvent(), sySoundPlay() and sySynch().

Referenced by LemurianShipCues.

Definition at line 668 of file lemurian_ship.c.

fdLineScrollArmDMA

void fdLineScrollArmDMA(void)

Arms DMA 0 to copy the shown ripple page into background 3's scroll registers.

References state and syDMAXCopy().

Referenced by fdLineScrollStop(), scLemurianShipStopRipple() and scLineScrollInitWave().

Definition at line 850 of file lemurian_ship.c.

fdLineScrollBuildPage

void fdLineScrollBuildPage(void)

Builds the other ripple page and swaps it in.

References BgScrollWork, line, scLemurianShipWaveOffset(), Sint32 and state.

Referenced by fdLineScrollStop(), scLemurianShipStopRipple() and scLineScrollInitWave().

Definition at line 872 of file lemurian_ship.c.

scLemurianShipCloseCurtains

static void scLemurianShipCloseCurtains(void)

Each tick from scLemurianShipStartCurtains to the end of the game: closes the curtains a pixel more, until they rest, and queues their 24 sprites.

References CurtainGap, CurtainSprites, CurtainVramSlot, Sint32, syOAMAddSpriteAtDepth() and VramCacheEntries.

Referenced by scLemurianShipStartCurtains().

Definition at line 946 of file lemurian_ship.c.

Variables in detail

LemurianShipGlowColors

extern Uint16 LemurianShipGlowColors[]

Uint16 LemurianShipGlowColors[]

The ship's glow.

scLemurianShipCycleGlow shows six of these colours at a time, from a start that moves one colour every 6 ticks.

Referenced by scLemurianShipCycleGlow().

Definition at lines 38 and 1013 of file lemurian_ship.c.

LemurianShipSprayReleaseScript

extern Sint32 LemurianShipSprayReleaseScript[]

Sint32 LemurianShipSprayReleaseScript[]

A drop of spray, 20 ticks after it bursts: released.

References Sint32.

Referenced by scLemurianShipSprayUpdate().

Definition at lines 39 and 1029 of file lemurian_ship.c.

LemurianShipRippleSine

extern Sint16 LemurianShipRippleSine[LINE_SCROLL_WAVE_ENTRIES]

Sint16 LemurianShipRippleSine[LINE_SCROLL_WAVE_ENTRIES]

The ripple's sine, the line scroll's LineScrollWaveSine kept again in this overlay.

Referenced by scLemurianShipWaveOffset().

Definition at lines 40 and 1035 of file lemurian_ship.c.

LemurianShipEntrances

extern SCENE_ENTRANCE LemurianShipEntrances[]

SCENE_ENTRANCE LemurianShipEntrances[]

Referenced by scGetEntrances().

Definition at lines 41 and 1039 of file lemurian_ship.c.

LemurianShipExits

extern Uint32 LemurianShipExits[]

Uint32 LemurianShipExits[]

Referenced by scGetExits().

Definition at lines 42 and 1047 of file lemurian_ship.c.

LemurianShipActorPlacements

extern ACTOR_PLACE LemurianShipActorPlacements[]

ACTOR_PLACE LemurianShipActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 43 and 1056 of file lemurian_ship.c.

LemurianShipCues

extern CUE LemurianShipCues[]

CUE LemurianShipCues[]

References scLemurianShipRaiseTheShip(), scLemurianShipStartRipple(), scLemurianShipStopRippleForReveal() and scLemurianShipWalkBackToShack().

Referenced by scGetCues().

Definition at lines 44 and 1071 of file lemurian_ship.c.

LemurianShipOrbGlowActive

extern Sint32 LemurianShipOrbGlowActive

Sint32 LemurianShipOrbGlowActive

The Black Orb's glow: whether it shows, its phase in ticks, its strength (BLDALPHA's first weight, a step weaker every 40 ticks down to 4) and the ticks into that step.

References Sint32.

Referenced by scLemurianShipRaiseTheShip() and scLemurianShipUpdateGlowSwellAndSpray().

Definition at lines 45 and 1090 of file lemurian_ship.c.

LemurianShipOrbGlowPhase

extern Sint32 LemurianShipOrbGlowPhase

Sint32 LemurianShipOrbGlowPhase

References Sint32.

Referenced by scLemurianShipRaiseTheShip() and scLemurianShipUpdateGlowSwellAndSpray().

Definition at lines 46 and 1091 of file lemurian_ship.c.

LemurianShipOrbGlowStrength

extern Sint32 LemurianShipOrbGlowStrength

Sint32 LemurianShipOrbGlowStrength

References Sint32.

Referenced by scLemurianShipFadeOrbGlow() and scLemurianShipUpdateGlowSwellAndSpray().

Definition at lines 47 and 1092 of file lemurian_ship.c.

LemurianShipOrbGlowFadeTicks

extern Sint32 LemurianShipOrbGlowFadeTicks

Sint32 LemurianShipOrbGlowFadeTicks

References Sint32.

Referenced by scLemurianShipFadeOrbGlow() and scLemurianShipRaiseTheShip().

Definition at lines 48 and 1093 of file lemurian_ship.c.

LemurianShipSprayActive

extern Sint32 LemurianShipSprayActive

Sint32 LemurianShipSprayActive

Set while spray flies about the rising ship.

References Sint32.

Referenced by scLemurianShipRaiseTheShip() and scLemurianShipUpdateGlowSwellAndSpray().

Definition at lines 49 and 1096 of file lemurian_ship.c.

LemurianShipSwellActive

extern Sint32 LemurianShipSwellActive

Sint32 LemurianShipSwellActive

The raised ship's swell: whether it runs, its phase in ticks, the hull's and deck's layer heights it rocks about, and the height on the deck of each of the party (16.16 pixels), SHIP_NOT_ON_DECK for one not on it.

References Sint32.

Referenced by scLemurianShipRaiseTheShip() and scLemurianShipUpdateGlowSwellAndSpray().

Definition at lines 50 and 1101 of file lemurian_ship.c.

LemurianShipSwellPhase

extern Sint32 LemurianShipSwellPhase

Sint32 LemurianShipSwellPhase

References Sint32.

Referenced by scLemurianShipUpdateGlowSwellAndSpray().

Definition at lines 51 and 1102 of file lemurian_ship.c.

LemurianShipHullY

extern Sint32 LemurianShipHullY

Sint32 LemurianShipHullY

References Sint32.

Referenced by scLemurianShipRaiseTheShip() and scLemurianShipUpdateGlowSwellAndSpray().

Definition at lines 52 and 1103 of file lemurian_ship.c.

LemurianShipDeckY

extern Sint32 LemurianShipDeckY

Sint32 LemurianShipDeckY

References Sint32.

Referenced by scLemurianShipRaiseTheShip() and scLemurianShipUpdateGlowSwellAndSpray().

Definition at lines 53 and 1104 of file lemurian_ship.c.

LemurianShipLeaderDeckY

extern Sint32 LemurianShipLeaderDeckY

Sint32 LemurianShipLeaderDeckY

References Sint32.

Referenced by scLemurianShipLeaderStepOnDeck() and scLemurianShipUpdateGlowSwellAndSpray().

Definition at lines 54 and 1105 of file lemurian_ship.c.

LemurianShipGaretDeckY

extern Sint32 LemurianShipGaretDeckY

Sint32 LemurianShipGaretDeckY

References Sint32.

Referenced by scLemurianShipGaretStepOnDeck() and scLemurianShipUpdateGlowSwellAndSpray().

Definition at lines 55 and 1106 of file lemurian_ship.c.

LemurianShipMiaDeckY

extern Sint32 LemurianShipMiaDeckY

Sint32 LemurianShipMiaDeckY

References Sint32.

Referenced by scLemurianShipMiaStepOnDeck() and scLemurianShipUpdateGlowSwellAndSpray().

Definition at lines 56 and 1107 of file lemurian_ship.c.

LemurianShipIvanDeckY

extern Sint32 LemurianShipIvanDeckY

Sint32 LemurianShipIvanDeckY

References Sint32.

Referenced by scLemurianShipIvanStepOnDeck() and scLemurianShipUpdateGlowSwellAndSpray().

Definition at lines 57 and 1108 of file lemurian_ship.c.

LemurianShipGlowStep

extern Uint16 LemurianShipGlowStep

Uint16 LemurianShipGlowStep

The ticks into the glow's run along the risen ship's hull, SHIP_GLOW_STEP_TICKS for each of its SHIP_GLOW_COLORS colours.

Referenced by scLemurianShipCycleGlow().

Definition at lines 58 and 1112 of file lemurian_ship.c.

LemurianShipLeaderBoards

extern Sint32 LemurianShipLeaderBoards[]

Sint32 LemurianShipLeaderBoards[]

How each of the party boards: a few steps north along the gangway, a high jump up onto the deck, a pause, and on to a place on it.

References scLemurianShipLeaderStepOnDeck() and Sint32.

Referenced by scLemurianShipSetSail().

Definition at lines 59 and 1116 of file lemurian_ship.c.

LemurianShipGaretBoards

extern Sint32 LemurianShipGaretBoards[]

Sint32 LemurianShipGaretBoards[]

References scLemurianShipGaretStepOnDeck() and Sint32.

Referenced by scLemurianShipSetSail().

Definition at lines 60 and 1140 of file lemurian_ship.c.

LemurianShipIvanBoards

extern Sint32 LemurianShipIvanBoards[]

Sint32 LemurianShipIvanBoards[]

References scLemurianShipIvanStepOnDeck() and Sint32.

Referenced by scLemurianShipSetSail().

Definition at lines 61 and 1162 of file lemurian_ship.c.

LemurianShipMiaBoards

extern Sint32 LemurianShipMiaBoards[]

Sint32 LemurianShipMiaBoards[]

References scLemurianShipMiaStepOnDeck() and Sint32.

Referenced by scLemurianShipSetSail().

Definition at lines 62 and 1186 of file lemurian_ship.c.

CurtainSprites

static MENU_SPR CurtainSprites[3 * CURTAIN_ROW_PARTS]

The curtains' sprites, which close in from above and below as the ship sails.

Referenced by scLemurianShipCloseCurtains().

Definition at line 926 of file lemurian_ship.c.

CurtainGap

static Sint16 CurtainGap

Referenced by scLemurianShipCloseCurtains() and scLemurianShipStartCurtains().

Definition at line 927 of file lemurian_ship.c.

CurtainVramSlot

static Sint16 CurtainVramSlot

Referenced by scLemurianShipCloseCurtains() and scLemurianShipStartCurtains().

Definition at line 928 of file lemurian_ship.c.

On this page

StructuresMacrosEnumerationsFunctionsVariablesDescriptionMacros in detailSHIP_GLOW_COLORSSHIP_GLOW_STEP_TICKSCURTAIN_PART_WIDTHCURTAIN_PART_HEIGHTCURTAIN_ROW_PARTSCURTAIN_BOTTOM_YCURTAIN_START_GAPLEMURIAN_SHIP_DEPARTURE_DELAY_TICKSSHIP_NOT_ON_DECKSET_IMAGE_PRIORITYSET_SHADOW_PRIORITYCURTAIN_PARTEnumerations in detailanonymous enumLEMURIAN_SHIP_METATILE_BEHAVIORanonymous enumFunctions in detailscInitscLemurianShipStopRipplescLemurianShipStartCurtainsscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscLemurianShipWalkBackToShackscLemurianShipStopRippleForRevealscLemurianShipStartRipplescGetCuesscLemurianShipCycleGlowscLemurianShipSprayUpdatescLemurianShipFadeOrbGlowscLemurianShipUpdateGlowSwellAndSprayscLemurianShipLeaderStepOnDeckscLemurianShipGaretStepOnDeckscLemurianShipMiaStepOnDeckscLemurianShipIvanStepOnDeckscLemurianShipSetSailscLemurianShipWaveOffsetscLemurianShipRaiseTheShipfdLineScrollArmDMAfdLineScrollBuildPagescLemurianShipCloseCurtainsVariables in detailLemurianShipGlowColorsLemurianShipSprayReleaseScriptLemurianShipRippleSineLemurianShipEntrancesLemurianShipExitsLemurianShipActorPlacementsLemurianShipCuesLemurianShipOrbGlowActiveLemurianShipOrbGlowPhaseLemurianShipOrbGlowStrengthLemurianShipOrbGlowFadeTicksLemurianShipSprayActiveLemurianShipSwellActiveLemurianShipSwellPhaseLemurianShipHullYLemurianShipDeckYLemurianShipLeaderDeckYLemurianShipGaretDeckYLemurianShipMiaDeckYLemurianShipIvanDeckYLemurianShipGlowStepLemurianShipLeaderBoardsLemurianShipGaretBoardsLemurianShipIvanBoardsLemurianShipMiaBoardsCurtainSpritesCurtainGapCurtainVramSlot