Skip to Content
The Alchemy Project

src/scene/lemuria.c

Lemuria, the hidden city beyond the Sea of Time, which Piers leads the party into. More…

Macros

NameDescription
#defineOWN_fdActorTakeLeaderLayerLemuria declares fdActorTakeLeaderLayer itself, in the form the update below calls it.
#defineFLAG_LEMURIA_SPRING_LUCK_TRIED 0x908Set once the party has taken the test of luck offered at the Spring of Lemuria (scLemuriaOfferSpringLuck).
#defineFLAG_LEMURIA_VINE_GROWN 0x963Set once Growth has grown the vine (scLemuriaGrowVine); the set-up grows it again on every visit.
#defineFLAG_LEMURIA_CITY_ADMIRED 0x964Set once the party has marvelled at the city ("This place is remarkable...
#defineFLAG_LEMURIA_TOLD_DOOR_IS_BROKEN 0x968Set once Lunpa has told the party from his balcony that his door is broken and to climb through the window above it ("The door's broken, I'm afraid.").
#defineFLAG_LEMURIA_ROPE_LET_DOWN 0x96fSet once Lunpa has let a rope down from the window ("There!
#defineFLAG_LEMURIA_ROPE_TIED 0x962Set once Lash has tied the rope between the low post and the high one; fdRopePlace keeps it tied.
#defineFLAG_LEMURIA_HARD_NUT 0xfbbSet once the party has taken the Hard Nut hidden in the pasture's weeds (Lemuria's scene item 106).
#defineFLAG_WATER_OF_LIFE_DUG_UP FLAG_AREA_TEMP(0x00)For this visit: each Scoop spot dug, by the treasure it holds.
#defineFLAG_NUT_DUG_UP FLAG_AREA_TEMP(0x01)
#defineFLAG_BRAMBLE_SEED_DUG_UP FLAG_AREA_TEMP(0x02)
#defineFLAG_LUCKY_MEDAL_DUG_UP FLAG_AREA_TEMP(0x03)
#defineFLAG_RUSTY_SWORD_DUG_UP FLAG_AREA_TEMP(0x04)
#defineFLAG_BONE_DUG_UP FLAG_AREA_TEMP(0x06)
#defineFLAG_STAR_DUST_DUG_UP FLAG_AREA_TEMP(0x07)
#defineFLAG_VIAL_DUG_UP FLAG_AREA_TEMP(0x08)
#defineWATER_PALETTE (n) ((volatile Uint16 *)&BG_PLTT_COLOR(n, 0))Background palette n, as the water's colour cycle turns it.

Enumerations

NameDescription
enumLEMURIA_ACTOR_ID { ACTOR_ROPE_LOW_POST, ACTOR_ROPE_HIGH_POST, ACTOR_SPROUT, ACT … }Lemuria, by the rows of ActorPlacements; Piers's row goes to his party slot.
enumLEMURIA_METATILE_BEHAVIOR { METATILE_BEHAVIOR_LEMURIA_BEFORE_PALACE, METATILE_BEHAVIOR_L … }The metatiles whose step, examine and Psynergy cues run Lemuria's scripts: before the palace guards, the paths west and east of the avenue above the spring, the stairs down through the colonnade, the spring's pool, Lunpa's stuck front door, the clumps of weeds Cyclone scatters and the spots Scoop digs.
enumLEMURIA_TREASURE_ACTOR_ID { ACTOR_BURIED_WATER_OF_LIFE, ACTOR_BURIED_NUT, ACTOR_BURIED_B … }The actors of Lemuria's treasure spots, in the order of its rows in SceneItems (the scene items 101 to 109): eight buried for Scoop, and the Hard Nut in the pasture's weeds.
enumanonymous enum { HARD_NUT_X, HARD_NUT_Z }Where the Hard Nut shows once its weeds are scattered.
enumanonymous enum { WATER_STREAMS_PALETTE, WATER_FALLS_PALETTE }The water's two palettes.
enumanonymous enum { WATER_CYCLE_FIRST_COLOR, WATER_CYCLE_LAST_COLOR }The water's cycling colours in each of its palettes, 1 to 14: all but the palette's first and last.
enumanonymous enum { RIPPLE_SWAY_SHIFT }The ripple's sway: a sine shifted down to at most 2 pixels either way.

Functions

NameDescription
voidscLemuriaTakeLeaderLayer (void)An actor's per-tick hook: it is drawn on the party leader's layer.
Sint32scLemuriaNoticeLeader (ACTOR *self)An update for the two walking children: each stands while it is talked to, while Mind Read shows its thoughts, or while it faces the other child or the leader close by, and walks on otherwise or once the leader is right by it.
const SCENE_ENTRANCE *scGetEntrances (void)Where the party can enter: the cave under the spring has its own entrances.
const SCENE_REGION *scGetExitRegions (void)The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room.
const Uint32 *scGetExits (void)The dock's ways lead back the way the party came into Lemuria, which the harbour and the shore of Ancient Lemuria note in FLAG_LEMURIA_OTHER_WAY_IN.
const ACTOR_PLACE *scGetActorPlacements (void)The scene's actor placements: a room of names for its entrance, else the debug room's.
voidscLemuriaRestoreGirl (void)Puts the girl who stood in for Kraden or Lunpa back in her place at the south of the town, as herself.
voidscLemuriaOpenDoorAndEnter (const MAP_EDIT *door, Sint32 exit, Sint32 straight)The door opens and Felix walks in through it as the screen closes: lined up with the door first, or straight ahead through a door two metatiles wide (straight).
voidscLemuriaEnterDoor (Sint32 exit)Felix walks north into one of Lemuria's doors: the door opens and he goes in.
voidscLemuriaTalkToSpoiledChild (void)Felix talks to the child who walks about with another in the west of the town: the child stops and turns to him, "It has been many, many years since a new child was born in Lemuria." Mind Read hears the child think, "Everyone spoils me so much...
voidscLemuriaTalkToLonelyChild (void)Felix talks to the other walking child in the west of the town: the child stops and turns to him, "We are the only children in Lemuria.
voidscLemuriaCycloneLoneWeeds (void)Felix casts Cyclone on the lone clump of weeds at the foot of the cliff below the colonnade's east end, west of the cow's pasture, metatiles (39, 71) to (40, 72): leaves whirl up and the clump is gone, leaving bare grass.
voidscLemuriaCyclonePastureWeeds (void)Felix casts Cyclone on the weeds beside the tree in the cow's pasture, below the cliff under Lunpa's tower, metatiles (49, 71) to (52, 73): leaves whirl up and the clumps are gone, leaving bare grass.
voidscLemuriaCycloneWeedsSouthOfCow (void)Felix casts Cyclone on the clump of weeds just south of the cow in its pasture, metatile (53, 69): leaves whirl up and the clump is gone.
voidscLemuriaCycloneWeedsNorthOfCow (void)Felix casts Cyclone on the clump of weeds just north of the cow, at the foot of the cliff the vine hangs down, metatile (52, 64): leaves whirl up and the clump is gone.
voidscLemuriaCycloneHardNutWeeds (void)Felix casts Cyclone over the south of the weeds beside the tree in the cow's pasture, metatile (50, 73): the clumps are gone as for scLemuriaCyclonePastureWeeds, and a Hard Nut lies in the grass where they were until it is picked up.
voidscLemuriaTeleportToGirlsHouse (void)Unused: teleports the party, with sparks and a fade, to the door of the girl's house.
voidscLemuriaGrowVine (void)Felix casts Growth on the sprout at the cliff's edge below Lunpa's tower: a vine grows down the cliff, and from then on Felix can climb it down to the cow's pasture and back up.
voidscLemuriaScoopWaterOfLife (Sint32 id)Unused: Scoop digs up the Water of Life of Lemuria's first treasure spot.
voidscLemuriaScoopNut (Sint32 id)Unused: Scoop digs up the Nut of Lemuria's second treasure spot.
voidscLemuriaScoopBrambleSeed (Sint32 id)Unused: Scoop digs up the Bramble Seed of Lemuria's third treasure spot.
voidscLemuriaScoopLuckyMedal (Sint32 id)Felix casts Scoop on the patch of ground right of the Spring of Lemuria, where a butterfly flutters, metatile (33, 61): he digs up a Lucky Medal.
voidscLemuriaScoopRustySword (Sint32 id)Felix casts Scoop on the patch of ground near Lunpa's tower in the east of the town, where a butterfly flutters, metatile (55, 58): he digs up a Rusty Sword.
voidscLemuriaScoopBone (Sint32 id)Felix casts Scoop on the patch of ground near the dog, where a butterfly flutters, metatile (23, 38): he digs up a Bone.
voidscLemuriaScoopStarDust (Sint32 id)Felix casts Scoop on the patch of ground left of the palace, where a butterfly flutters, metatile (18, 26): he digs up Star Dust.
voidscLemuriaScoopVial (Sint32 id)Unused: Scoop digs up the Vial of Lemuria's ninth treasure spot.
voidscLemuriaTryStuckDoor (void)Felix checks the front door of Lunpa's tower in the east of the town, metatile (54, 52): "The door doesn't want to open." Once Piers has gone to his mother's grave, the first time, Lunpa looks down from the top balcony and asks whether they are Piers's traveling companions: "The door's broken, I'm afraid.
voidscLemuriaDrinkFromSpring (void)Felix drinks from the spring in the middle of the town, the turtles' pool beside the man who offers the test of luck, metatiles (27, 57) to (30, 58): "Felix and the others drank of the spring.
voidscLemuriaOfferSpringLuck (void)Felix talks to the man before the spring: "Do you wish to test your luck at the Spring of Lemuria?" Said no, he will take a turn himself; said yes, he steps aside so that the party can walk up to the spring, and from then on he only wishes the party good luck.
const CUE *scGetCues (void)The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's.
BSS_DATAALIGNED (16)The water's two tables of BG2 horizontal offsets, a halfword a screen line.
voidscLemuriaCycleWaterColors (void)Every fourth tick rotates the colours of the streams and of their falls by one place.
voidscLemuriaStartRippleDMA (void)Puts the per-line BG2 horizontal scroll on an HBlank DMA.
voidscLemuriaFillRippleLines (void)An event: fills the back buffer of line scrolls with the water's ripple, a sine of the line and the tick, and swaps the buffers.
voidscLemuriaStartRipple (void)Starts the water's ripple: its line scrolls are worked out each tick and put on the DMA each VBlank.
Sint32scInit (void)Sets up the town: the water's colours cycling, the two children walking together, the palace guards, the spring's man, Piers by his mother's grave, the ropes, the vine and Lunpa's opened window as the story leaves them.
Sint32scPrepareMap (void)Once Briggs is caught the pool has dried up: its colours take the dry ground's.
voidscLemuriaAdmirePalace (Sint32 id)Felix steps onto the stone path west of the spring's avenue, metatiles (22, 56) to (23, 57), or east of it, metatiles (34, 56) to (35, 57), before the party has gone up to the palace: Kraden comes out, looks round, "Oh!
voidscLemuriaKeepLookingAround (void)Felix heads down the stairs through the colonnade, metatiles (28, 45) and (29, 45), before the party has gone up to the palace: Kraden comes up behind him, "Where are you going, Felix?
voidscLemuriaMarvelAtCity (void)Felix walks up to the palace at the top of the avenue, metatiles (28, 33) and (29, 33), the first time: Kraden marvels, "This place is remarkable...
voidfdActorTakeLeaderLayer (void)UB: declared to take nothing and return nothing, as scLemuriaTakeLeaderLayer calls it; the definition takes the actor, which reaches it as the update's own argument, and returns an Sint32.

Variables

NameDescription
extern Sint32LemuriaSpoiledChildWalk []The two children walk round the same square of the town's west, (40, 904) to (88, 952), from opposite corners: the spoiled child's walk.
extern Sint32LemuriaLonelyChildWalk []The lonely child's walk.
extern Uint16LemuriaDoorOpening []How a door opens, as two ticks of metatiles copied over the closed door.
extern Uint16LemuriaWideDoorOpening []The same for the Senate's and the palace's doors, two metatiles wide.
extern MAP_EDITLemuriaUnclesDoorEach door's opening at its place on the map grid: Piers's uncle's house, the girl's house, the House of the Senate, the window on the middle balcony of Lunpa's tower that Lunpa opened for the party, the palace's front and upper doors, and the front door of Lunpa's tower.
extern MAP_EDITLemuriaGirlsHouseDoor
extern MAP_EDITLemuriaSenateDoor
extern MAP_EDITLemuriaLunpasWindow
extern MAP_EDITLemuriaPalaceFrontDoor
extern MAP_EDITLemuriaPalaceUpperDoor
extern MAP_EDITLemuriaLunpasDoor
Uint8LemuriaRippleBufferWhich of LemuriaRippleLines' two tables the HBlank DMA reads; the other is filled for the next tick.
Sint16LemuriaRippleLines [2][160]The water's two tables of BG2 horizontal offsets, a halfword a screen line.
extern Uint16LemuriaWindowOpening []The window on Lunpa's balcony opens in one tick.
SCENE_ENTRANCESceneEntrances []Besides the party's return to the pier after the ship is stolen, four unused spots about the mast: below the huge block, on the dock by its crate, on the deck, and at the top of the sail's east pole.
Uint32SceneExits []The room has no exits of its own.
ACTOR_PLACEActorPlacements []The room's people: the party's four rows, then PSYNERGY_TEST_ACTOR_ID's.
CUESceneCues []The room's scripts: talking to its people, Mind Read on them, the metatiles examined, and the field Psynergy each spot answers.

Description

Lemuria, the hidden city beyond the Sea of Time, which Piers leads the party into. At the top of the avenue the two palace guards stop the party until Piers speaks for it, and Kraden runs up from the paths above the spring to admire the palace, calling Felix back if he heads down the stairs through the colonnade first. The Senate, Piers's uncle's house and a girl's house open off the west of the town, the Spring of Lemuria is in the middle, and in the east stands Lunpa's tower, whose stuck front door sends the party up a rope to the window above it. Growth on a sprout at the cliff's edge below the tower grows a vine down to the cow's pasture, whose weeds Cyclone scatters (one clump hides a Hard Nut), and Scoop digs up a Lucky Medal, a Rusty Sword, a Bone and Star Dust about the town. The water ripples and its colours cycle.

Macros in detail

OWN_fdActorTakeLeaderLayer

#define OWN_fdActorTakeLeaderLayer

Lemuria declares fdActorTakeLeaderLayer itself, in the form the update below calls it.

Definition at line 15 of file lemuria.c.

FLAG_LEMURIA_SPRING_LUCK_TRIED

#define FLAG_LEMURIA_SPRING_LUCK_TRIED 0x908

Set once the party has taken the test of luck offered at the Spring of Lemuria (scLemuriaOfferSpringLuck).

Referenced by SceneCues, scInit() and scLemuriaOfferSpringLuck().

Definition at line 104 of file lemuria.c.

FLAG_LEMURIA_VINE_GROWN

#define FLAG_LEMURIA_VINE_GROWN 0x963

Set once Growth has grown the vine (scLemuriaGrowVine); the set-up grows it again on every visit.

Referenced by SceneCues, scInit() and scLemuriaGrowVine().

Definition at line 107 of file lemuria.c.

FLAG_LEMURIA_CITY_ADMIRED

#define FLAG_LEMURIA_CITY_ADMIRED 0x964

Set once the party has marvelled at the city ("This place is remarkable... Truly remarkable...").

Referenced by SceneCues, scInit() and scLemuriaMarvelAtCity().

Definition at line 110 of file lemuria.c.

FLAG_LEMURIA_TOLD_DOOR_IS_BROKEN

#define FLAG_LEMURIA_TOLD_DOOR_IS_BROKEN 0x968

Set once Lunpa has told the party from his balcony that his door is broken and to climb through the window above it ("The door's broken, I'm afraid.").

Referenced by scLemuriaTryStuckDoor().

Definition at line 113 of file lemuria.c.

FLAG_LEMURIA_ROPE_LET_DOWN

#define FLAG_LEMURIA_ROPE_LET_DOWN 0x96f

Set once Lunpa has let a rope down from the window ("There! Is that better? Now climb up here.").

Referenced by scInit() and scLemuriaTryStuckDoor().

Definition at line 116 of file lemuria.c.

FLAG_LEMURIA_ROPE_TIED

#define FLAG_LEMURIA_ROPE_TIED 0x962

Set once Lash has tied the rope between the low post and the high one; fdRopePlace keeps it tied.

Referenced by SceneCues, scInit() and scLemuriaTryStuckDoor().

Definition at line 119 of file lemuria.c.

FLAG_LEMURIA_HARD_NUT

#define FLAG_LEMURIA_HARD_NUT 0xfbb

Set once the party has taken the Hard Nut hidden in the pasture's weeds (Lemuria's scene item 106).

Referenced by scLemuriaCycloneHardNutWeeds().

Definition at line 122 of file lemuria.c.

FLAG_WATER_OF_LIFE_DUG_UP

#define FLAG_WATER_OF_LIFE_DUG_UP FLAG_AREA_TEMP(0x00)

For this visit: each Scoop spot dug, by the treasure it holds. Only four spots have a cue; the Water of Life, Nut, Bramble Seed and Vial are never dug.

Referenced by scLemuriaScoopWaterOfLife().

Definition at line 135 of file lemuria.c.

FLAG_NUT_DUG_UP

#define FLAG_NUT_DUG_UP FLAG_AREA_TEMP(0x01)

Referenced by scLemuriaScoopNut().

Definition at line 136 of file lemuria.c.

FLAG_BRAMBLE_SEED_DUG_UP

#define FLAG_BRAMBLE_SEED_DUG_UP FLAG_AREA_TEMP(0x02)

Referenced by scLemuriaScoopBrambleSeed().

Definition at line 137 of file lemuria.c.

FLAG_LUCKY_MEDAL_DUG_UP

#define FLAG_LUCKY_MEDAL_DUG_UP FLAG_AREA_TEMP(0x03)

Referenced by SceneCues, scInit() and scLemuriaScoopLuckyMedal().

Definition at line 138 of file lemuria.c.

FLAG_RUSTY_SWORD_DUG_UP

#define FLAG_RUSTY_SWORD_DUG_UP FLAG_AREA_TEMP(0x04)

Referenced by SceneCues, scInit() and scLemuriaScoopRustySword().

Definition at line 139 of file lemuria.c.

FLAG_BONE_DUG_UP

#define FLAG_BONE_DUG_UP FLAG_AREA_TEMP(0x06)

Referenced by SceneCues, scInit() and scLemuriaScoopBone().

Definition at line 140 of file lemuria.c.

FLAG_STAR_DUST_DUG_UP

#define FLAG_STAR_DUST_DUG_UP FLAG_AREA_TEMP(0x07)

Referenced by SceneCues, scInit() and scLemuriaScoopStarDust().

Definition at line 141 of file lemuria.c.

FLAG_VIAL_DUG_UP

#define FLAG_VIAL_DUG_UP FLAG_AREA_TEMP(0x08)

Referenced by scLemuriaScoopVial().

Definition at line 142 of file lemuria.c.

WATER_PALETTE

#define WATER_PALETTE(n) ((volatile Uint16 *)&BG_PLTT_COLOR(n, 0))

Background palette n, as the water's colour cycle turns it.

Referenced by scLemuriaCycleWaterColors().

Definition at line 769 of file lemuria.c.

Enumerations in detail

LEMURIA_ACTOR_ID

enum LEMURIA_ACTOR_ID

Lemuria, by the rows of ActorPlacements; Piers's row goes to his party slot.

EnumeratorValueDescription
ACTOR_ROPE_LOW_POSTACTOR_FIRST_PLACEDThe posts of the rope Lash ties
ACTOR_ROPE_HIGH_POSTup the east side of Lunpa's tower: the low one on the grass, where the rope lies coiled, and the high one on the tower's middle balcony.
ACTOR_SPROUTGrown into a hanging vine (FLAG_LEMURIA_VINE_GROWN).
ACTOR_SIGN"House of the Senate", below the Senate's door.
ACTOR_KRADEN_STAND_INA girl at the south of the town, whom the scripts dress as Kraden to speak his lines, and as Lunpa on the top balcony of his tower; scLemuriaRestoreGirl puts her back.
ACTOR_WOMAN_ON_PARADISE"Lemuria has no disease, no war..."
ACTOR_MAN_ON_LEMURIAN_WAYS"In Lemuria, we do not..."
ACTOR_LEMURIAN_ON_UNCHANGING_LIFE"Life never changes here..."
ACTOR_OLD_WOMAN"I ought to feel surprised to see outsiders here..."
ACTOR_GIRL_FORGETTING_HER_AGE"How old am I again?"
ACTOR_SPOILED_CHILDscLemuriaTalkToSpoiledChild.
ACTOR_LONELY_CHILDscLemuriaTalkToLonelyChild.
ACTOR_CAT
ACTOR_DOG
ACTOR_COW
ACTOR_CHICKEN
ACTOR_WEST_PALACE_GUARDThe two guards at the palace stair. "Who goes
ACTOR_EAST_PALACE_GUARDthere!"
ACTOR_GIRL_ON_LUNPA"If you and Lunpa..."
ACTOR_LET_DOWN_ROPE_LOW_ENDThe rope Lunpa throws down from his tower's middle balcony (FLAG_LEMURIA_ROPE_LET_DOWN): its end on the ground, and the post at the window it lies coiled at and is thrown from (fdRopePlace, fdRopeLash).
ACTOR_LET_DOWN_ROPE_HIGH_POST
ACTOR_GIRL_BY_THE_SPRING
ACTOR_MAN_AT_THE_SPRINGscLemuriaOfferSpringLuck.
ACTOR_SPRINGscLemuriaDrinkFromSpring.

Definition at line 28 of file lemuria.c.

LEMURIA_METATILE_BEHAVIOR

enum LEMURIA_METATILE_BEHAVIOR

The metatiles whose step, examine and Psynergy cues run Lemuria's scripts: before the palace guards, the paths west and east of the avenue above the spring, the stairs down through the colonnade, the spring's pool, Lunpa's stuck front door, the clumps of weeds Cyclone scatters and the spots Scoop digs. A door's or an exit's metatiles take the number of the exit they lead through (LEMURIA_TO_), which scLemuriaEnterDoor passes to scFieldScriptSetExitRequest. A Scoop spot's number is its row in the scene's treasure spots and items.

EnumeratorValueDescription
METATILE_BEHAVIOR_LEMURIA_BEFORE_PALACE20
METATILE_BEHAVIOR_LEMURIA_WEST_PATH
METATILE_BEHAVIOR_LEMURIA_EAST_PATH
METATILE_BEHAVIOR_LEMURIA_COLONNADE_STAIRS
METATILE_BEHAVIOR_LEMURIA_SPRING25
METATILE_BEHAVIOR_LEMURIA_LONE_WEEDS30
METATILE_BEHAVIOR_LEMURIA_PASTURE_WEEDS
METATILE_BEHAVIOR_LEMURIA_WEEDS_SOUTH_OF_COW
METATILE_BEHAVIOR_LEMURIA_WEEDS_NORTH_OF_COW
METATILE_BEHAVIOR_LEMURIA_HARD_NUT_WEEDS38
METATILE_BEHAVIOR_LEMURIA_STUCK_DOOR40
METATILE_BEHAVIOR_LEMURIA_LUCKY_MEDAL104
METATILE_BEHAVIOR_LEMURIA_RUSTY_SWORD
METATILE_BEHAVIOR_LEMURIA_BONE107
METATILE_BEHAVIOR_LEMURIA_STAR_DUST

Definition at line 83 of file lemuria.c.

LEMURIA_TREASURE_ACTOR_ID

enum LEMURIA_TREASURE_ACTOR_ID

The actors of Lemuria's treasure spots, in the order of its rows in SceneItems (the scene items 101 to 109): eight buried for Scoop, and the Hard Nut in the pasture's weeds.

EnumeratorValueDescription
ACTOR_BURIED_WATER_OF_LIFEFIELD_TREASURE_ACTOR
ACTOR_BURIED_NUT
ACTOR_BURIED_BRAMBLE_SEED
ACTOR_BURIED_LUCKY_MEDAL
ACTOR_BURIED_RUSTY_SWORD
ACTOR_HARD_NUT
ACTOR_BURIED_BONE
ACTOR_BURIED_STAR_DUST
ACTOR_BURIED_VIAL

Definition at line 147 of file lemuria.c.

anonymous enum

enum { HARD_NUT_X, HARD_NUT_Z }

Where the Hard Nut shows once its weeds are scattered.

EnumeratorValueDescription
HARD_NUT_X808
HARD_NUT_Z1176

Definition at line 437 of file lemuria.c.

anonymous enum

enum { WATER_STREAMS_PALETTE, WATER_FALLS_PALETTE }

The water's two palettes. The streams that run down either side of the avenue below the palace take the lighter blues; their heads under the palace and the falls where they drop into the two pools take the darker ones.

EnumeratorValueDescription
WATER_STREAMS_PALETTE7
WATER_FALLS_PALETTE8

Definition at line 774 of file lemuria.c.

anonymous enum

enum { WATER_CYCLE_FIRST_COLOR, WATER_CYCLE_LAST_COLOR }

The water's cycling colours in each of its palettes, 1 to 14: all but the palette's first and last.

EnumeratorValueDescription
WATER_CYCLE_FIRST_COLOR1
WATER_CYCLE_LAST_COLOR14

Definition at line 782 of file lemuria.c.

anonymous enum

enum { RIPPLE_SWAY_SHIFT }

The ripple's sway: a sine shifted down to at most 2 pixels either way.

EnumeratorValueDescription
RIPPLE_SWAY_SHIFT15

Definition at line 830 of file lemuria.c.

Functions in detail

scLemuriaTakeLeaderLayer

void scLemuriaTakeLeaderLayer(void)

An actor's per-tick hook: it is drawn on the party leader's layer.

References fdActorTakeLeaderLayer().

Referenced by scInit().

Definition at lines 124 and 1450 of file lemuria.c.

scLemuriaNoticeLeader

Sint32 scLemuriaNoticeLeader(ACTOR *self)

An update for the two walking children: each stands while it is talked to, while Mind Read shows its thoughts, or while it faces the other child or the leader close by, and walks on otherwise or once the leader is right by it.

References fdActorGet(), fdActorGetSpritePriority(), fdActorSelectAnimation(), fdActorSetSpritePriorityDirect(), MainRoutineStateWork, scActorIsFacingNear(), scPosDistance() and Sint32.

Referenced by scInit().

Definition at line 165 of file lemuria.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 217 of file lemuria.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

Definition at line 222 of file lemuria.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 227 of file lemuria.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References ActorPlacements.

Definition at line 232 of file lemuria.c.

scLemuriaRestoreGirl

void scLemuriaRestoreGirl(void)

Puts the girl who stood in for Kraden or Lunpa back in her place at the south of the town, as herself.

References fdActorFaceDirection(), fdActorGet(), fdActorSetAnimation() and fdActorSetFirstSpriteAnimation().

Referenced by scLemuriaAdmirePalace(), scLemuriaKeepLookingAround(), scLemuriaMarvelAtCity() and scLemuriaTryStuckDoor().

Definition at line 239 of file lemuria.c.

scLemuriaOpenDoorAndEnter

void scLemuriaOpenDoorAndEnter(const MAP_EDIT *door, Sint32 exit, Sint32 straight)

The door opens and Felix walks in through it as the screen closes: lined up with the door first, or straight ahead through a door two metatiles wide (straight).

References fdActorCenterAndWalk(), fdActorGet(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdMapGridAnimateMetatiles(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptStart(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptWait() and Sint32.

Referenced by scLemuriaEnterDoor().

Definition at line 251 of file lemuria.c.

scLemuriaEnterDoor

void scLemuriaEnterDoor(Sint32 exit)

Felix walks north into one of Lemuria's doors: the door opens and he goes in. The doors are those of Piers's uncle's house left of the spring, metatile (22, 47); the girl's house, metatile (35, 47); the House of the Senate in the west, metatile (9, 40); the window above Lunpa's door, metatile (54, 45), and Lunpa's own door below it, metatile (54, 50); and the palace's front and upper doors, metatiles (28, 20) and (28, 13). Once the party has met King Hydros the Senate's door stays shut: "The door is locked... It sounds as if there's a raucous caucus going on inside..."

References fdScriptGetFlag(), fdScriptShowMessage(), LemuriaGirlsHouseDoor, LemuriaLunpasDoor, LemuriaLunpasWindow, LemuriaPalaceFrontDoor, LemuriaPalaceUpperDoor, LemuriaSenateDoor, LemuriaUnclesDoor, scFieldScriptSetMessageId(), scLemuriaOpenDoorAndEnter() and Sint32.

Referenced by SceneCues.

Definition at line 284 of file lemuria.c.

scLemuriaTalkToSpoiledChild

void scLemuriaTalkToSpoiledChild(void)

Felix talks to the child who walks about with another in the west of the town: the child stops and turns to him, "It has been many, many years since a new child was born in Lemuria." Mind Read hears the child think, "Everyone spoils me so much... I don't ever want to grow up!" Afterwards the child faces the way it was walking again.

References fdActorFaceEachOther(), fdActorGet(), fdActorSetAnimation(), fdScriptEnd(), fdScriptStart(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), Sint32 and sySynch().

Referenced by SceneCues.

Definition at line 341 of file lemuria.c.

scLemuriaTalkToLonelyChild

void scLemuriaTalkToLonelyChild(void)

Felix talks to the other walking child in the west of the town: the child stops and turns to him, "We are the only children in Lemuria. I often wish there were other children to play with." Mind Read hears the child wonder, "Are there other children in the lands beyond the Sea of Time?"

References fdActorFaceEachOther(), fdActorGet(), fdActorSetAnimation(), fdScriptEnd(), fdScriptStart(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), Sint32 and sySynch().

Referenced by SceneCues.

Definition at line 375 of file lemuria.c.

scLemuriaCycloneLoneWeeds

void scLemuriaCycloneLoneWeeds(void)

Felix casts Cyclone on the lone clump of weeds at the foot of the cliff below the colonnade's east end, west of the cow's pasture, metatiles (39, 71) to (40, 72): leaves whirl up and the clump is gone, leaving bare grass.

References scFieldTileCopiesCopyTouchedMetatiles().

Referenced by SceneCues.

Definition at line 408 of file lemuria.c.

scLemuriaCyclonePastureWeeds

void scLemuriaCyclonePastureWeeds(void)

Felix casts Cyclone on the weeds beside the tree in the cow's pasture, below the cliff under Lunpa's tower, metatiles (49, 71) to (52, 73): leaves whirl up and the clumps are gone, leaving bare grass.

References scFieldTileCopiesCopyTouchedMetatiles().

Referenced by SceneCues.

Definition at line 416 of file lemuria.c.

scLemuriaCycloneWeedsSouthOfCow

void scLemuriaCycloneWeedsSouthOfCow(void)

Felix casts Cyclone on the clump of weeds just south of the cow in its pasture, metatile (53, 69): leaves whirl up and the clump is gone.

References scFieldTileCopiesCopyTouchedMetatiles().

Referenced by SceneCues.

Definition at line 423 of file lemuria.c.

scLemuriaCycloneWeedsNorthOfCow

void scLemuriaCycloneWeedsNorthOfCow(void)

Felix casts Cyclone on the clump of weeds just north of the cow, at the foot of the cliff the vine hangs down, metatile (52, 64): leaves whirl up and the clump is gone.

References scFieldTileCopiesCopyTouchedMetatiles().

Referenced by SceneCues.

Definition at line 431 of file lemuria.c.

scLemuriaCycloneHardNutWeeds

void scLemuriaCycloneHardNutWeeds(void)

Felix casts Cyclone over the south of the weeds beside the tree in the cow's pasture, metatile (50, 73): the clumps are gone as for scLemuriaCyclonePastureWeeds, and a Hard Nut lies in the grass where they were until it is picked up. If Felix stands on that very spot he hops a step east off it.

References fdActorGet(), fdActorSetAttachedEffect(), fdActorSetDestinationOffset(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), MainRoutineStateWork, scFieldActorWaitForMoveById(), scFieldScriptEndLastingPsynergy() and scFieldTileCopiesCopyTouchedMetatiles().

Referenced by SceneCues.

Definition at line 448 of file lemuria.c.

scLemuriaTeleportToGirlsHouse

void scLemuriaTeleportToGirlsHouse(void)

Unused: teleports the party, with sparks and a fade, to the door of the girl's house. No cue or call of the scene reaches it.

References fdScriptSetDestination(), fdTeleportPlaySparksAndFade() and MainRoutineStateWork.

Definition at line 477 of file lemuria.c.

scLemuriaGrowVine

void scLemuriaGrowVine(void)

Felix casts Growth on the sprout at the cliff's edge below Lunpa's tower: a vine grows down the cliff, and from then on Felix can climb it down to the cow's pasture and back up. The vine stays grown.

References fdMapGridGetMetatileAttributesAt(), fdMapGridSetMetatileAttributesAt(), fdScriptSetFlag() and Sint32.

Referenced by SceneCues and scInit().

Definition at line 491 of file lemuria.c.

scLemuriaScoopWaterOfLife

void scLemuriaScoopWaterOfLife(Sint32 id)

Unused: Scoop digs up the Water of Life of Lemuria's first treasure spot. No cue reaches it.

References fdScriptDigUpTreasure() and Sint32.

Definition at line 513 of file lemuria.c.

scLemuriaScoopNut

void scLemuriaScoopNut(Sint32 id)

Unused: Scoop digs up the Nut of Lemuria's second treasure spot. No cue reaches it.

References fdScriptDigUpTreasure() and Sint32.

Definition at line 521 of file lemuria.c.

scLemuriaScoopBrambleSeed

void scLemuriaScoopBrambleSeed(Sint32 id)

Unused: Scoop digs up the Bramble Seed of Lemuria's third treasure spot. No cue reaches it.

References fdScriptDigUpTreasure() and Sint32.

Definition at line 528 of file lemuria.c.

scLemuriaScoopLuckyMedal

void scLemuriaScoopLuckyMedal(Sint32 id)

Felix casts Scoop on the patch of ground right of the Spring of Lemuria, where a butterfly flutters, metatile (33, 61): he digs up a Lucky Medal.

References fdScriptDigUpTreasure() and Sint32.

Referenced by SceneCues.

Definition at line 536 of file lemuria.c.

scLemuriaScoopRustySword

void scLemuriaScoopRustySword(Sint32 id)

Felix casts Scoop on the patch of ground near Lunpa's tower in the east of the town, where a butterfly flutters, metatile (55, 58): he digs up a Rusty Sword.

References fdScriptDigUpTreasure() and Sint32.

Referenced by SceneCues.

Definition at line 545 of file lemuria.c.

scLemuriaScoopBone

void scLemuriaScoopBone(Sint32 id)

Felix casts Scoop on the patch of ground near the dog, where a butterfly flutters, metatile (23, 38): he digs up a Bone.

References fdScriptDigUpTreasure() and Sint32.

Referenced by SceneCues.

Definition at line 553 of file lemuria.c.

scLemuriaScoopStarDust

void scLemuriaScoopStarDust(Sint32 id)

Felix casts Scoop on the patch of ground left of the palace, where a butterfly flutters, metatile (18, 26): he digs up Star Dust.

References fdScriptDigUpTreasure() and Sint32.

Referenced by SceneCues.

Definition at line 560 of file lemuria.c.

scLemuriaScoopVial

void scLemuriaScoopVial(Sint32 id)

Unused: Scoop digs up the Vial of Lemuria's ninth treasure spot. No cue reaches it.

References fdScriptDigUpTreasure() and Sint32.

Definition at line 567 of file lemuria.c.

scLemuriaTryStuckDoor

void scLemuriaTryStuckDoor(void)

Felix checks the front door of Lunpa's tower in the east of the town, metatile (54, 52): "The door doesn't want to open." Once Piers has gone to his mother's grave, the first time, Lunpa looks down from the top balcony and asks whether they are Piers's traveling companions: "The door's broken, I'm afraid. But I opened up a window just above the door." If no one in the party has Lash and the rope east of the tower is not tied, Felix just looks up, and Lunpa throws a rope down from the middle balcony: "There! Is that better? Now climb up here." From up on the tower, or once Lunpa has burst the door open, the A button opens the field menu as if nothing were there. A girl of the town stands in for Lunpa.

References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorGet(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetFirstSpriteAnimation(), fdActorShowEmote(), fdActorWalkByAndWait(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdRopeCoil(), fdRopeLash(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetFlag(), fdScriptShowMessage(), fdScriptStart(), gmPartyFindOwnerWithAction(), MainRoutineStateWork, scFieldActorJump(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait(), scLemuriaRestoreGirl(), scScriptCameraFollowActor(), Sint32 and Value3().

Referenced by SceneCues.

Definition at line 582 of file lemuria.c.

scLemuriaDrinkFromSpring

void scLemuriaDrinkFromSpring(void)

Felix drinks from the spring in the middle of the town, the turtles' pool beside the man who offers the test of luck, metatiles (27, 57) to (30, 58): "Felix and the others drank of the spring. Their HP and PP were fully replenished!" From up on the spring's rim the A button opens the field menu instead.

References fdActorGet(), fdScriptPlaySound(), gmPartyRestoreHpPp(), MainRoutineStateWork, mnMessageShowCentered() and Sint32.

Referenced by SceneCues.

Definition at line 683 of file lemuria.c.

scLemuriaOfferSpringLuck

void scLemuriaOfferSpringLuck(void)

Felix talks to the man before the spring: "Do you wish to test your luck at the Spring of Lemuria?" Said no, he will take a turn himself; said yes, he steps aside so that the party can walk up to the spring, and from then on he only wishes the party good luck.

References fdActorFaceActor(), fdActorFaceDirectionAndWait(), fdActorSetAnimationAndWait(), fdActorShowEmote(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, scFieldActorWaitForScriptEndById(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait() and Sint32.

Referenced by SceneCues.

Definition at line 704 of file lemuria.c.

scGetCues

const CUE *scGetCues(void)

References SceneCues.

Definition at line 757 of file lemuria.c.

scLemuriaCycleWaterColors

void scLemuriaCycleWaterColors(void)

Every fourth tick rotates the colours of the streams and of their falls by one place.

References Sint32 and TickCount.

Referenced by scInit().

Definition at line 790 of file lemuria.c.

scLemuriaStartRippleDMA

void scLemuriaStartRippleDMA(void)

Puts the per-line BG2 horizontal scroll on an HBlank DMA.

References LemuriaRippleBuffer, LemuriaRippleLines and syDMAXCopy().

Referenced by scLemuriaStartRipple().

Definition at line 811 of file lemuria.c.

scLemuriaFillRippleLines

void scLemuriaFillRippleLines(void)

An event: fills the back buffer of line scrolls with the water's ripple, a sine of the line and the tick, and swaps the buffers.

References fdMapGridGetLayer(), LemuriaRippleBuffer, LemuriaRippleLines, Sint32, sySin() and TickCount.

Referenced by scLemuriaStartRipple().

Definition at line 837 of file lemuria.c.

scLemuriaStartRipple

void scLemuriaStartRipple(void)

Starts the water's ripple: its line scrolls are worked out each tick and put on the DMA each VBlank.

References scLemuriaFillRippleLines(), scLemuriaStartRippleDMA(), Sint32 and sySetTickEvent().

Definition at line 860 of file lemuria.c.

scInit

Sint32 scInit(void)

Sets up the town: the water's colours cycling, the two children walking together, the palace guards, the spring's man, Piers by his mother's grave, the ropes, the vine and Lunpa's opened window as the story leaves them.

References Call4(), fdActorGet(), fdActorSetAnimation(), fdActorSetScript(), fdActorSetSpriteFlags(), fdActorSetWideSprite(), fdEffectStartBlankOverlay(), fdHangingVinePlace(), fdMapGridCopyMetatilesLayered(), fdRopeInit(), fdRopePlace(), fdScriptGetFlag(), LemuriaLonelyChildWalk, LemuriaSpoiledChildWalk, scFieldActorSetSpritePriority(), scFieldSetTickEvent(), scLemuriaCycleWaterColors(), scLemuriaGrowVine(), scLemuriaNoticeLeader(), scLemuriaTakeLeaderLayer() and Sint32.

Definition at line 873 of file lemuria.c.

scPrepareMap

Sint32 scPrepareMap(void)

References Sint32.

Definition at line 975 of file lemuria.c.

scLemuriaAdmirePalace

void scLemuriaAdmirePalace(Sint32 id)

Felix steps onto the stone path west of the spring's avenue, metatiles (22, 56) to (23, 57), or east of it, metatiles (34, 56) to (35, 57), before the party has gone up to the palace: Kraden comes out, looks round, "Oh! Goodness!", and runs up the avenue and the stairs through the colonnade, jumping for joy: "Felix! Look over here! This palace is magnificient!" Felix follows him up the stairs.

References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorGet(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetDestination(), fdActorSetFirstSpriteAnimation(), fdActorShowEmote(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptStart(), MainRoutineStateWork, scFieldActorJump(), scFieldActorLaunchFromLeader(), scFieldActorSetSpritePriority(), scFieldActorWaitForMoveById(), scFieldActorWatchAndSetScript(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait(), scLemuriaRestoreGirl(), scScriptCameraFollowActor() and Sint32.

Referenced by SceneCues.

Definition at line 986 of file lemuria.c.

scLemuriaKeepLookingAround

void scLemuriaKeepLookingAround(void)

Felix heads down the stairs through the colonnade, metatiles (28, 45) and (29, 45), before the party has gone up to the palace: Kraden comes up behind him, "Where are you going, Felix? Let's take a longer look around!", and Felix steps back up.

References fdActorFaceDirectionAndWait(), fdActorGet(), fdActorSetAnimation(), fdActorSetDestination(), fdActorSetFirstSpriteAnimation(), fdActorWalkByAndWait(), fdScriptEnd(), fdScriptStart(), MainRoutineStateWork, scFieldActorLaunchFromLeader(), scFieldActorSetSpritePriority(), scFieldActorWaitForMoveById(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait(), scLemuriaRestoreGirl() and Sint32.

Referenced by SceneCues.

Definition at line 1072 of file lemuria.c.

scLemuriaMarvelAtCity

void scLemuriaMarvelAtCity(void)

Felix walks up to the palace at the top of the avenue, metatiles (28, 33) and (29, 33), the first time: Kraden marvels, "This place is remarkable... Truly remarkable...", and the two guards at the palace stair stop the party, "Who goes there! I've not seen you in Lemuria before!", until Piers steps forward and asks to see King Hydros.

References fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetDestination(), fdActorSetFirstSpriteAnimation(), fdActorShowEmote(), fdActorWalkByAndWait(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptStart(), MainRoutineStateWork, result, scFieldActorJump(), scFieldActorLaunchFromLeader(), scFieldActorSetSpritePriority(), scFieldActorStartRepeatedMotion(), scFieldActorWaitForMoveById(), scFieldActorWatchAndSetScript(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait(), scLemuriaRestoreGirl(), scScriptCameraFollowActor() and Sint32.

Referenced by SceneCues.

Definition at line 1109 of file lemuria.c.

Variables in detail

LemuriaSpoiledChildWalk

extern Sint32 LemuriaSpoiledChildWalk[]

Sint32 LemuriaSpoiledChildWalk[]

The two children walk round the same square of the town's west, (40, 904) to (88, 952), from opposite corners: the spoiled child's walk.

References Sint32.

Referenced by scInit().

Definition at lines 125 and 1460 of file lemuria.c.

LemuriaLonelyChildWalk

extern Sint32 LemuriaLonelyChildWalk[]

Sint32 LemuriaLonelyChildWalk[]

The lonely child's walk.

References Sint32.

Referenced by scInit().

Definition at lines 126 and 1477 of file lemuria.c.

LemuriaDoorOpening

extern Uint16 LemuriaDoorOpening[]

Uint16 LemuriaDoorOpening[]

How a door opens, as two ticks of metatiles copied over the closed door.

Referenced by LemuriaGirlsHouseDoor, LemuriaLunpasDoor and LemuriaUnclesDoor.

Definition at lines 127 and 1580 of file lemuria.c.

LemuriaWideDoorOpening

extern Uint16 LemuriaWideDoorOpening[]

Uint16 LemuriaWideDoorOpening[]

The same for the Senate's and the palace's doors, two metatiles wide.

Referenced by LemuriaPalaceFrontDoor, LemuriaPalaceUpperDoor and LemuriaSenateDoor.

Definition at lines 128 and 1587 of file lemuria.c.

LemuriaUnclesDoor

extern MAP_EDIT LemuriaUnclesDoor

MAP_EDIT LemuriaUnclesDoor

Each door's opening at its place on the map grid: Piers's uncle's house, the girl's house, the House of the Senate, the window on the middle balcony of Lunpa's tower that Lunpa opened for the party, the palace's front and upper doors, and the front door of Lunpa's tower.

References LemuriaDoorOpening.

Referenced by scLemuriaEnterDoor().

Definition at lines 209 and 1604 of file lemuria.c.

LemuriaGirlsHouseDoor

extern MAP_EDIT LemuriaGirlsHouseDoor

MAP_EDIT LemuriaGirlsHouseDoor

References LemuriaDoorOpening.

Referenced by scLemuriaEnterDoor().

Definition at lines 210 and 1605 of file lemuria.c.

LemuriaSenateDoor

extern MAP_EDIT LemuriaSenateDoor

MAP_EDIT LemuriaSenateDoor

References LemuriaWideDoorOpening.

Referenced by scLemuriaEnterDoor().

Definition at lines 211 and 1606 of file lemuria.c.

LemuriaLunpasWindow

extern MAP_EDIT LemuriaLunpasWindow

MAP_EDIT LemuriaLunpasWindow

References LemuriaWindowOpening.

Referenced by scLemuriaEnterDoor().

Definition at lines 212 and 1607 of file lemuria.c.

LemuriaPalaceFrontDoor

extern MAP_EDIT LemuriaPalaceFrontDoor

MAP_EDIT LemuriaPalaceFrontDoor

References LemuriaWideDoorOpening.

Referenced by scLemuriaEnterDoor().

Definition at lines 213 and 1608 of file lemuria.c.

LemuriaPalaceUpperDoor

extern MAP_EDIT LemuriaPalaceUpperDoor

MAP_EDIT LemuriaPalaceUpperDoor

References LemuriaWideDoorOpening.

Referenced by scLemuriaEnterDoor().

Definition at lines 214 and 1609 of file lemuria.c.

LemuriaLunpasDoor

extern MAP_EDIT LemuriaLunpasDoor

MAP_EDIT LemuriaLunpasDoor

References LemuriaDoorOpening.

Referenced by scLemuriaEnterDoor().

Definition at lines 215 and 1610 of file lemuria.c.

LemuriaRippleBuffer

Uint8 LemuriaRippleBuffer

Which of LemuriaRippleLines' two tables the HBlank DMA reads; the other is filled for the next tick.

Referenced by scLemuriaFillRippleLines() and scLemuriaStartRippleDMA().

Definition at line 764 of file lemuria.c.

LemuriaRippleLines

Sint16 LemuriaRippleLines[2][160]

The water's two tables of BG2 horizontal offsets, a halfword a screen line.

Referenced by scLemuriaFillRippleLines() and scLemuriaStartRippleDMA().

Definition at line 766 of file lemuria.c.

LemuriaWindowOpening

extern Uint16 LemuriaWindowOpening[]

Uint16 LemuriaWindowOpening[]

The window on Lunpa's balcony opens in one tick.

Referenced by LemuriaLunpasWindow.

Definition at lines 1455 and 1594 of file lemuria.c.

SceneEntrances

SCENE_ENTRANCE SceneEntrances[]

Referenced by scGetEntrances().

Definition at line 1493 of file lemuria.c.

SceneExits

Uint32 SceneExits[]

Referenced by scGetExits().

Definition at line 1498 of file lemuria.c.

ActorPlacements

ACTOR_PLACE ActorPlacements[]

Referenced by scGetActorPlacements().

Definition at line 1525 of file lemuria.c.

SceneCues

CUE SceneCues[]

References scLemuriaAdmirePalace(), scLemuriaCycloneHardNutWeeds(), scLemuriaCycloneLoneWeeds(), scLemuriaCyclonePastureWeeds(), scLemuriaCycloneWeedsNorthOfCow(), scLemuriaCycloneWeedsSouthOfCow(), scLemuriaDrinkFromSpring(), scLemuriaEnterDoor(), scLemuriaGrowVine(), scLemuriaKeepLookingAround(), scLemuriaMarvelAtCity(), scLemuriaOfferSpringLuck(), scLemuriaScoopBone(), scLemuriaScoopLuckyMedal(), scLemuriaScoopRustySword(), scLemuriaScoopStarDust(), scLemuriaTalkToLonelyChild(), scLemuriaTalkToSpoiledChild() and scLemuriaTryStuckDoor().

Referenced by scGetCues().

Definition at line 1612 of file lemuria.c.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailOWN_fdActorTakeLeaderLayerFLAG_LEMURIA_SPRING_LUCK_TRIEDFLAG_LEMURIA_VINE_GROWNFLAG_LEMURIA_CITY_ADMIREDFLAG_LEMURIA_TOLD_DOOR_IS_BROKENFLAG_LEMURIA_ROPE_LET_DOWNFLAG_LEMURIA_ROPE_TIEDFLAG_LEMURIA_HARD_NUTFLAG_WATER_OF_LIFE_DUG_UPFLAG_NUT_DUG_UPFLAG_BRAMBLE_SEED_DUG_UPFLAG_LUCKY_MEDAL_DUG_UPFLAG_RUSTY_SWORD_DUG_UPFLAG_BONE_DUG_UPFLAG_STAR_DUST_DUG_UPFLAG_VIAL_DUG_UPWATER_PALETTEEnumerations in detailLEMURIA_ACTOR_IDLEMURIA_METATILE_BEHAVIORLEMURIA_TREASURE_ACTOR_IDanonymous enumanonymous enumanonymous enumanonymous enumFunctions in detailscLemuriaTakeLeaderLayerscLemuriaNoticeLeaderscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscLemuriaRestoreGirlscLemuriaOpenDoorAndEnterscLemuriaEnterDoorscLemuriaTalkToSpoiledChildscLemuriaTalkToLonelyChildscLemuriaCycloneLoneWeedsscLemuriaCyclonePastureWeedsscLemuriaCycloneWeedsSouthOfCowscLemuriaCycloneWeedsNorthOfCowscLemuriaCycloneHardNutWeedsscLemuriaTeleportToGirlsHousescLemuriaGrowVinescLemuriaScoopWaterOfLifescLemuriaScoopNutscLemuriaScoopBrambleSeedscLemuriaScoopLuckyMedalscLemuriaScoopRustySwordscLemuriaScoopBonescLemuriaScoopStarDustscLemuriaScoopVialscLemuriaTryStuckDoorscLemuriaDrinkFromSpringscLemuriaOfferSpringLuckscGetCuesscLemuriaCycleWaterColorsscLemuriaStartRippleDMAscLemuriaFillRippleLinesscLemuriaStartRipplescInitscPrepareMapscLemuriaAdmirePalacescLemuriaKeepLookingAroundscLemuriaMarvelAtCityVariables in detailLemuriaSpoiledChildWalkLemuriaLonelyChildWalkLemuriaDoorOpeningLemuriaWideDoorOpeningLemuriaUnclesDoorLemuriaGirlsHouseDoorLemuriaSenateDoorLemuriaLunpasWindowLemuriaPalaceFrontDoorLemuriaPalaceUpperDoorLemuriaLunpasDoorLemuriaRippleBufferLemuriaRippleLinesLemuriaWindowOpeningSceneEntrancesSceneExitsActorPlacementsSceneCues