Skip to Content
The Alchemy Project

src/scene/apojii_islands.c

The Apojii Islands, at the edge of the world in the Eastern Sea, in three rooms of this overlay: the village round the spring where the Aqua Stone stands, which Douse wakes (scApojiiIslandsDouseAquaStone) to carry the party across the sea to Aqua Rock; its houses, with the inn and the general store, and beside them the Sea of Time Islet's house; and the islet among the falls where the Jupiter Djinni Haze waits (scApojiiIslandsHazeJoinsParty). More…

Structures

NameDescription
structMETATILE_MARKERA marker drawn over a metatile of the spring: its place, the height it rests at, its kind (the metatile's collision code less METATILE_BEHAVIOR_SPRING), its state and its sprite's attributes.
structMETATILE_MARKER_SETscApojiiIslandsDrawMetatileMarkers's table: the markers' VRAM cache entry and the markers.

Macros

NameDescription
#defineFLAG_APOJII_AQUA_STONE_DOUSED 0x95fSet once Douse has woken the Aqua Stone.
#defineFLAG_FATHER_SEES_THE_STONE 0x95eSet by Douse on the Aqua Stone, which leaves for the World Map: back in the village, the father who wished on the stone sees it answer (scApojiiIslandsFatherSeesTheStone), and that clears it.
#defineFLAG_APOJII_ISLANDS_MINT_TAKEN 0xf9aSet once the treasures buried under the weeds are found (SceneItems): the village's Mint and Herb and the islet's Bramble Seed.
#defineFLAG_APOJII_ISLANDS_HERB_TAKEN 0xf9b
#defineFLAG_APOJII_ISLANDS_BRAMBLE_SEED_TAKEN 0xf9e
#defineFLAG_HAZE_ROPE_TIED FLAG_SCENE_TEMP(0x00)Haze's islet: set once Lash has tied the rope between its posts.
#defineMETATILE_MARKERS 128The markers the woken Aqua Stone lays over the spring: at most this many.
#defineMETATILE_MARKER_KINDS 4A marker's kinds, by its metatile's collision code from the first: kind 2 shows kind 3's picture mirrored.
#definePACER_COLLISIONThe cautious mother's collision as she paces her house: in every edition but the Japanese the leader can no longer push her.
#defineSTONE_CYCLE_COLORS (PALETTE_COLORS - 1)The woken Aqua Stone's cycle turns every colour but the transparent first.
#defineMETATILE_BEHAVIOR_SPRING 33The collision code of the spring round the Aqua Stone, the first of the four kinds of its metatiles (scApojiiIslandsAddMetatileMarkers).
#defineEFFECT_SET_MODE fdActorSelectAnimation
#defineEFFECT_SET_SCRIPT fdActorStartScript
#defineEFFECT_SPRITE_PRIORITY
#defineSCATTER_WEEDS (column, row, width, height)Cyclone scatters the weeds it touches: their metatiles take those of the scattered weeds, kept below the room in the map from row 38.
#defineDEFINE_SCATTER_WEEDS_OVER_TREASURE (Defines Cyclone on the weeds over a buried treasure: they scatter, and until the treasure is found it shows at (spotX, spotZ), the leader hopping a metatile east when he stands on it.
#defineMARKER_SOURCE_TILE 1408The markers' pictures, three of the map's animated ones: from tile 1408, counted from background character block 1 as the map's tile animation counts, each two tiles wide over two rows of 32 tiles.
#defineMARKER_PICTURE_TILES 4The tiles of a 16 by 16 marker picture in sprite VRAM: its upper half's two, then its lower half's.
#defineCOPY_TILES (fromTile, toTile)Copies two tiles of the map's pictures to the markers' tiles in sprite VRAM.
#defineCOPY_PICTURE (from, to)Copies the map's picture from to marker picture to, upper half first.

Enumerations

NameDescription
enumanonymous enum { METATILE_BEHAVIOR_STREAM_BANK, METATILE_BEHAVIOR_HAZE_LEDGE_ … }The metatile behaviours the village's and the islet's cue tables answer: the bank of the stream north of the hut by the Aqua Stone's pool, which Felix jumps across walking north; the weeds Cyclone scatters; the weeds over a buried treasure, the village's Herb and Mint and the islet's Bramble Seed; and the edge of Haze's ledge, which Felix jumps down walking south.
enumAPOJII_ISLANDS_VILLAGE_ACTOR_ID { ACTOR_WELCOMING_YOUNG_MAN, ACTOR_WOMAN_WARNING_OF_THE_EDGE, … }The village by the Aqua Stone (ApojiiIslandsVillagePlacements).
enumAPOJII_ISLANDS_HOUSES_ACTOR_ID { ACTOR_WOMAN_ABOUT_THE_STARING_MAN, ACTOR_SON, ACTOR_STRICT_F … }The houses (ApojiiIslandsShopsPlacements).
enumAPOJII_ISLANDS_HAZE_ACTOR_ID { ACTOR_FALLS_ROPE_POST, ACTOR_CLIFF_ROPE_POST, ACTOR_HAZE }Haze's islet (ApojiiIslandsHazePlacements).
enumanonymous enum { METATILE_MARKER_NONE, METATILE_MARKER_SHOWN, METATILE_MARKER … }A marker's states: none, shown over its metatile, and one nothing here sets, which the drawing keeps above the lowest priority (it is aqua_rock_inside.c's water pillar on an actor).
enumanonymous enum { VILLAGE_SEA_PALETTE, SHORE_PALETTE, FALLS_PALETTE, SPRAY_PAL … }The palettes the colour cycles read and write: background palettes but for the last.
enumanonymous enum { CYCLE_FIRST_COLOR, CYCLE_COLORS, CYCLE_STEP_TICKS }The sea's, shore's, falls' and spray's cycles turn their last four colours, a step every eighth tick.
enumanonymous enum { ACTOR_MINT, ACTOR_HERB, ACTOR_BRAMBLE_SEED }The treasures buried under the weeds, by their place in SceneItems: the village's Mint and Herb, and the islet's Bramble Seed.
enumanonymous enum { SHOP_APOJII }The Apojii Islands' general store, as mnShopRun numbers the shops.
enumanonymous enum { INN_ID_APOJII }The Apojii Islands' inn, as mnInnCheckIn numbers the inns.
enumanonymous enum { ACTOR_ENTRANCE_PUDDLE_C }The Aqua Rock room's actor the copy below splashes at, as aqua_rock_inside.c names it.

Functions

NameDescription
voidscApojiiIslandsCycleFallsColors (void)The islet's falls and their spray cycle their last colours, held while Psynergy or Reveal runs.
voidscApojiiIslandsCycleSeaColors (void)The village's sea and shore cycle their last colours, held while Psynergy or Reveal runs.
voidscApojiiIslandsCycleAquaStoneColors (void)The woken Aqua Stone's colours turn a step every other tick, in the sprite palette the spring's markers take.
voidscApojiiIslandsStopFlashing (ACTOR *actor)A flashing actor's last update: its sprite's colour back to normal.
voidscActorFlashWhite (ACTOR *actor)An actor's update that flashes it white, two ticks in every four: the Water Stone or the Aqua Stone as Douse hits it.
voidscApojiiIslandsFatherSeesTheStone (void)Back in the village after Douse, the father who wished on the Aqua Stone looks about him and wonders whether it heard his wishes.
voidscScrollHBlank (void)The islet's HBlank split: above ApojiiIslandsSplitLine BG1 scrolls with the map and blending is off; below it, BG1 drifts and is blended.
voidscLayerTrackScroll (void)Each tick, follows the overhead layer's scroll for the split, the water below it drifting west a pixel every fourth tick.
voidscScrollStartHBlank (void)Starts the split: scScrollHBlank on every line, and scLayerTrackScroll each tick.
voidscApojiiIslandsInitHaze (void)Haze's islet on entry: the falls' colours cycle, the rope is placed, tied or not, the water sounds, and the leader rises from the water when he comes up from the cave.
voidscApojiiIslandsEnterSeaOfTimeIsletHouse (void)The Sea of Time Islet's house, drawn beside the houses, entered from that islet: the window opens round the leader and the Apojii Islands' name is not shown.
voidscActorSpawnWadingSplash (ACTOR *actor)A splash at the actor's feet as it wades, on its sprite's priority.
Sint32scActorEmitMist (ACTOR *actor)Mist about an actor, as the leader walks into Aqua Rock's waterfall: every other tick a dust cloud at 0.8 of its size, white and pale blue by turns, sinks from 26 pixels above it at up to 1.4 pixels a tick, the clouds sweeping from 8 pixels right of it to 7 left every 16 ticks.
voidscLeaderRiseFromWater (void)Unless the party returns to where it was, the leader appears in the waterfall 16 pixels north of the entrance, tinted blue, as the screen opens, then comes south out of it in a trail of mist and takes his own colours and shadow back on the way.
voidscApojiiIslandsDrawMetatileMarkers (void)Each tick: copies the markers' pictures, which the map's tile animation redraws, to sprite VRAM, and draws a sprite over each live marker in view, semi-transparent in the woken Aqua Stone's turning colours, at the lowest priority while it rests.
voidscApojiiIslandsStartMetatileMarkers (void)Clears the markers, takes a free VRAM cache entry for their four pictures, left empty, and starts drawing them each tick.
voidscApojiiIslandsAddMetatileMarkers (Uint32 base, Sint32 level, Sint32 restLevel)Adds a marker over each metatile of layer 1 whose collision code is one of the METATILE_MARKER_KINDS from base, at level and resting at restLevel, each in steps of 8 pixels, and gives those metatiles MAP_SHAPE_MARKED, its entry set to level.
voidfdGroundParticlesDraw (void)Event: the drops of rain falling about the stone Douse has struck (scGroundParticlesSetAnchor), the overlay's copy of fdGroundParticlesUpdate.
voidscGroundParticlesSetAnchor (Sint32 id)Lets the rain fall about actor id, or, for 0, nowhere on screen.
BSS_DATAALIGNED (4)The falls' palette as loaded, the source of each cycle.
voidscApojiiIslandsSinkIntoSand (void)Sand takes the leader into the sand (and scApojiiIslandsRiseFromSand back up).
voidscApojiiIslandsRiseFromSand (void)Sand ends: the leader is back on the ground layer.
voidscApojiiIslandsResumeSeaColors (void)The sea's colour cycle runs again as Reveal fades.
voidscApojiiIslandsScatterHazeWeeds (void)Cyclone on Haze's islet's weeds scatters them.
voidscApojiiIslandsScatterWeedsOverBrambleSeed (void)Cyclone on the clump of weeds on Haze's islet at metatile (12, 9) blows it away and uncovers the Bramble Seed buried there.
voidscApojiiIslandsEnterDoor (void)Felix walks in at the door of one of the village's huts, and the screen fades to its room: the house of the man who stares at the Aqua Stone (its door at metatile (29, 18)), the strict father's family's (8, 17), the old couple's in the north-east (35, 7), the inn (7, 6) or the general store (12, 5).
voidscApojiiIslandsJumpDownLedge (void)Walking south off Haze's ledge jumps the leader down.
voidscApojiiIslandsJumpForward (void)Felix jumps across the stream north of the hut by the Aqua Stone's pool when he walks north into its bank (metatiles (29, 12) and (30, 12)), landing on the grass beyond.
voidscApojiiIslandsHazeJoinsParty (void)Haze, the Jupiter Djinni on the islet, joins the party.
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.
voidscApojiiIslandsPauseSeaColors (void)Reveal holds the sea's colour cycle as it takes effect.
voidscApojiiIslandsDouseAquaStone (Sint32 unused, Sint32 id)Douse on the Aqua Stone: it flickers white as Aqua Rock's music starts, sparkles rise round it and the screen flashes four times in random colours; then the sea stops cycling, markers in the stone's turning colours blend in over the spring, the father starts, and the camera pans southeast before the party leaves for the World Map, where sparkles carry it across the sea to Aqua Rock (scWorldMapCarryPartyToAquaRock).
voidscApojiiIslandsScatterWeeds (void)Cyclone on the village's weeds scatters them.
DEFINE_SCATTER_WEEDS_OVER_TREASURE(scApojiiIslandsScatterWeedsOverHerb , 68, 4, 38, 21, FLAG_APOJII_ISLANDS_HERB_TAKEN, ACTOR_HERB, 376, 376)Cyclone on the clump of weeds south of the Aqua Stone, at metatile (23, 23), blows it away and uncovers the Herb buried there.
DEFINE_SCATTER_WEEDS_OVER_TREASURE(scApojiiIslandsScatterWeedsOverMint , 68, 4, 38, 21, FLAG_APOJII_ISLANDS_MINT_TAKEN, ACTOR_MINT, 600, 408)Cyclone on the clump of weeds in the village's south-east corner, at metatile (37, 25), blows it away and uncovers the Mint buried there.
Sint32scApojiiIslandsTalkToSon (void)The staring man's son turns to the leader and asks why his father stares at the rock, unless the leader comes at him from the west, facing east.
Sint32scApojiiIslandsMindReadSon (void)Mind Read on the staring man's son: his thought, unless the leader reads it from the west, facing east.
const CUE *scGetCues (void)The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's.
voidscApojiiIslandsTalkToInnkeeper (Sint32 actor)The innkeeper: across the counter, the inn; from elsewhere, his words about the fancy boat.
voidscApojiiIslandsAskAboutWarriors (Sint32 actor)The old woman at the inn asks whether the party are the warriors who came in the boat, and answers the yes or the no.
voidscApojiiIslandsTalkToGeneralStorekeeper (Sint32 actor)The general storekeeper: across the counter, the store; from elsewhere, her wish for imported goods.
Sint32scInit (void)Sets the rooms' wading and their window transition, the houses fading from the backdrop instead, then each room's own setup: the islet's, and in the village the sea's cycle and the father's surprise once Douse has woken the Aqua Stone.
Sint32scPrepareMap (void)Once Briggs is caught the pool has dried up: its colours take the dry ground's.
voidscApojiiIslandsFlowWithStream (void)Unused here: Aqua Rock's stream carries the leader south, splashing, and off a ledge he drops with the water (scLeaderFlowWithStream).

Variables

NameDescription
Uint16ApojiiIslandsFallsColors [PALETTE_COLORS]The falls' palette as loaded, the source of each cycle.
Uint16ApojiiIslandsFallsCycled [PALETTE_COLORS]The falls' palette as this tick's cycle leaves it.
Uint16ApojiiIslandsSprayColors [PALETTE_COLORS]The spray's palette as loaded.
Uint16ApojiiIslandsSprayCycled [PALETTE_COLORS]The spray's palette as this tick's cycle leaves it.
Uint16ApojiiIslandsSeaColors [PALETTE_COLORS]The sea's palette as loaded.
Uint16ApojiiIslandsSeaCycled [PALETTE_COLORS]The sea's palette as this tick's cycle leaves it.
Uint16ApojiiIslandsShoreColors [PALETTE_COLORS]The shore's palette as loaded.
Uint16ApojiiIslandsShoreCycled [PALETTE_COLORS]The shore's palette as this tick's cycle leaves it.
Uint16ApojiiIslandsStoneColors [PALETTE_COLORS]The woken Aqua Stone's colours as loaded.
Uint16ApojiiIslandsStoneCycled [PALETTE_COLORS]The woken Aqua Stone's colours as this tick's cycle leaves them.
Sint32ApojiiIslandsSplitLineThe islet's screen line below which BG1 drifts and is blended (scScrollHBlank), and BG1's scroll above and below it.
Uint16ApojiiIslandsUpperScrollX
Uint16ApojiiIslandsLowerScrollX
METATILE_MARKER_SETApojiiIslandsMetatileMarkersThe markers drawn over the spring once the Aqua Stone is woken.
extern Uint32WadingSplashScript []A splash's script: it shows for 20 ticks, then is released.
extern Uint32RippleScript []A ripple rises a quarter of a pixel a tick for 31 ticks, then is released.
extern ACTOR_PLACEApojiiIslandsPlacements []The scene's other rooms' actors: none.
extern ACTOR_PLACEApojiiIslandsVillagePlacements []The village's actors, in APOJII_ISLANDS_VILLAGE_ACTOR_ID's order.
extern ACTOR_PLACEApojiiIslandsShopsPlacements []The houses' actors, in APOJII_ISLANDS_HOUSES_ACTOR_ID's order.
extern ACTOR_PLACEApojiiIslandsHazePlacements []Haze's islet's actors, in APOJII_ISLANDS_HAZE_ACTOR_ID's order.
extern Sint32ApojiiIslandsStoneCycleTick []Ticks the Aqua Stone's cycle has run; -1 until it loads the palette.
extern CUEApojiiIslandsCues []The scene's other rooms' cues: none.
extern CUEApojiiIslandsVillageCues []The village's exits, doors, talks and Psynergy.
extern CUEApojiiIslandsShopsCues []The houses' exits, doors, talks and Psynergy.
extern CUEApojiiIslandsHazeCues []Haze's islet's ways into the water, its ledge, Haze, Lash on the rope and Cyclone on the weeds.
extern Uint32FieldEffectShortScript []
extern Uint32FieldEffectMediumScript []The flash about the Tomegathericon: held 45 ticks, then put away and freed.
extern Uint32FieldEffectLongScript []
extern Sint32ApojiiIslandsPaceScript []The cautious mother paces her house: a step east and up to the north wall, a pause, then back to her place, a pause.
extern Sint32ApojiiIslandsFallsCycleTickTicks the falls' cycle has run; -1 until it loads the palettes.
extern Sint32ApojiiIslandsSeaCycleTickTicks the sea's cycle has run; -1 until it loads the palettes.
extern Sint16GroundParticleFrames []A drop's frames, five halfwords each, played from the last to the first: its offset from where it lands, x and y in pixels, its first tile, its OAM shape and its size.
const Sint32 *FieldEffectDurationScripts []The field effects' three scripts by how long an effect lasts: short, medium and long.
Uint32SceneExits []The room has no exits of its own.

Description

The Apojii Islands, at the edge of the world in the Eastern Sea, in three rooms of this overlay: the village round the spring where the Aqua Stone stands, which Douse wakes (scApojiiIslandsDouseAquaStone) to carry the party across the sea to Aqua Rock; its houses, with the inn and the general store, and beside them the Sea of Time Islet's house; and the islet among the falls where the Jupiter Djinni Haze waits (scApojiiIslandsHazeJoinsParty). The village's sea and the islet's falls cycle their colours.

Macros in detail

FLAG_APOJII_AQUA_STONE_DOUSED

#define FLAG_APOJII_AQUA_STONE_DOUSED 0x95f

Set once Douse has woken the Aqua Stone.

Referenced by ApojiiIslandsVillageCues and scApojiiIslandsDouseAquaStone().

Definition at line 16 of file apojii_islands.c.

FLAG_FATHER_SEES_THE_STONE

#define FLAG_FATHER_SEES_THE_STONE 0x95e

Set by Douse on the Aqua Stone, which leaves for the World Map: back in the village, the father who wished on the stone sees it answer (scApojiiIslandsFatherSeesTheStone), and that clears it.

Referenced by scApojiiIslandsDouseAquaStone(), scApojiiIslandsFatherSeesTheStone() and scInit().

Definition at line 20 of file apojii_islands.c.

FLAG_APOJII_ISLANDS_MINT_TAKEN

#define FLAG_APOJII_ISLANDS_MINT_TAKEN 0xf9a

Set once the treasures buried under the weeds are found (SceneItems): the village's Mint and Herb and the islet's Bramble Seed.

Definition at line 23 of file apojii_islands.c.

FLAG_APOJII_ISLANDS_HERB_TAKEN

#define FLAG_APOJII_ISLANDS_HERB_TAKEN 0xf9b

Definition at line 24 of file apojii_islands.c.

FLAG_APOJII_ISLANDS_BRAMBLE_SEED_TAKEN

#define FLAG_APOJII_ISLANDS_BRAMBLE_SEED_TAKEN 0xf9e

Definition at line 25 of file apojii_islands.c.

FLAG_HAZE_ROPE_TIED

#define FLAG_HAZE_ROPE_TIED FLAG_SCENE_TEMP(0x00)

Haze's islet: set once Lash has tied the rope between its posts.

Referenced by ApojiiIslandsHazeCues and scApojiiIslandsInitHaze().

Definition at line 27 of file apojii_islands.c.

METATILE_MARKERS

#define METATILE_MARKERS 128

The markers the woken Aqua Stone lays over the spring: at most this many.

Referenced by scApojiiIslandsDrawMetatileMarkers().

Definition at line 160 of file apojii_islands.c.

METATILE_MARKER_KINDS

#define METATILE_MARKER_KINDS 4

A marker's kinds, by its metatile's collision code from the first: kind 2 shows kind 3's picture mirrored.

Referenced by scApojiiIslandsAddMetatileMarkers() and scApojiiIslandsStartMetatileMarkers().

Definition at line 163 of file apojii_islands.c.

PACER_COLLISION

#define PACER_COLLISION

The cautious mother's collision as she paces her house: in every edition but the Japanese the leader can no longer push her.

Referenced by ApojiiIslandsPaceScript.

Definition at line 237 of file apojii_islands.c.

STONE_CYCLE_COLORS

#define STONE_CYCLE_COLORS (PALETTE_COLORS - 1)

The woken Aqua Stone's cycle turns every colour but the transparent first.

Referenced by scApojiiIslandsCycleAquaStoneColors().

Definition at line 266 of file apojii_islands.c.

METATILE_BEHAVIOR_SPRING

#define METATILE_BEHAVIOR_SPRING 33

The collision code of the spring round the Aqua Stone, the first of the four kinds of its metatiles (scApojiiIslandsAddMetatileMarkers).

Referenced by scApojiiIslandsDouseAquaStone().

Definition at line 270 of file apojii_islands.c.

EFFECT_SET_MODE

#define EFFECT_SET_MODE fdActorSelectAnimation

Referenced by EFFECT_SPAWN.

Definition at line 286 of file apojii_islands.c.

EFFECT_SET_SCRIPT

#define EFFECT_SET_SCRIPT fdActorStartScript

Referenced by EFFECT_SPAWN.

Definition at line 287 of file apojii_islands.c.

EFFECT_SPRITE_PRIORITY

#define EFFECT_SPRITE_PRIORITY

Definition at line 288 of file apojii_islands.c.

SCATTER_WEEDS

#define SCATTER_WEEDS(column, row, width, height)

Cyclone scatters the weeds it touches: their metatiles take those of the scattered weeds, kept below the room in the map from row 38.

Referenced by scApojiiIslandsScatterHazeWeeds() and scApojiiIslandsScatterWeeds().

Definition at line 607 of file apojii_islands.c.

DEFINE_SCATTER_WEEDS_OVER_TREASURE

#define DEFINE_SCATTER_WEEDS_OVER_TREASURE(

Defines Cyclone on the weeds over a buried treasure: they scatter, and until the treasure is found it shows at (spotX, spotZ), the leader hopping a metatile east when he stands on it.

Definition at line 620 of file apojii_islands.c.

MARKER_SOURCE_TILE

#define MARKER_SOURCE_TILE 1408

The markers' pictures, three of the map's animated ones: from tile 1408, counted from background character block 1 as the map's tile animation counts, each two tiles wide over two rows of 32 tiles.

Definition at line 1066 of file apojii_islands.c.

MARKER_PICTURE_TILES

#define MARKER_PICTURE_TILES 4

The tiles of a 16 by 16 marker picture in sprite VRAM: its upper half's two, then its lower half's.

Referenced by scApojiiIslandsDrawMetatileMarkers() and scApojiiIslandsStartMetatileMarkers().

Definition at line 1069 of file apojii_islands.c.

COPY_TILES

#define COPY_TILES(fromTile, toTile)

Copies two tiles of the map's pictures to the markers' tiles in sprite VRAM.

Definition at line 1072 of file apojii_islands.c.

COPY_PICTURE

#define COPY_PICTURE(from, to)

Copies the map's picture from to marker picture to, upper half first.

Referenced by scApojiiIslandsDrawMetatileMarkers().

Definition at line 1078 of file apojii_islands.c.

Enumerations in detail

anonymous enum

enum { METATILE_BEHAVIOR_STREAM_BANK, METATILE_BEHAVIOR_HAZE_LEDGE_EDGE, METATILE_BEHAVIOR_WEEDS, METATILE_BEHAVIOR_WEEDS_OVER_HERB, … }

The metatile behaviours the village's and the islet's cue tables answer: the bank of the stream north of the hut by the Aqua Stone's pool, which Felix jumps across walking north; the weeds Cyclone scatters; the weeds over a buried treasure, the village's Herb and Mint and the islet's Bramble Seed; and the edge of Haze's ledge, which Felix jumps down walking south.

EnumeratorValueDescription
METATILE_BEHAVIOR_STREAM_BANK33
METATILE_BEHAVIOR_HAZE_LEDGE_EDGE40
METATILE_BEHAVIOR_WEEDS21
METATILE_BEHAVIOR_WEEDS_OVER_HERB22
METATILE_BEHAVIOR_WEEDS_OVER_MINT23
METATILE_BEHAVIOR_WEEDS_OVER_BRAMBLE_SEED22

Definition at line 34 of file apojii_islands.c.

APOJII_ISLANDS_VILLAGE_ACTOR_ID

enum APOJII_ISLANDS_VILLAGE_ACTOR_ID

The village by the Aqua Stone (ApojiiIslandsVillagePlacements).

EnumeratorValueDescription
ACTOR_WELCOMING_YOUNG_MANACTOR_FIRST_PLACED"This is Apojii, the easternmost island in the Eastern Sea!"
ACTOR_WOMAN_WARNING_OF_THE_EDGE"Whatever you do, don't sail out to the eastern edge of the sea..."
ACTOR_MAN_ABOUT_GAIA_FALLS"The huge waterfall at the edge of the world is known as Gaia Falls."
ACTOR_WOMAN_ABOUT_THE_MOAI"On Aqua Island, you can see the guardian moai."
ACTOR_OLD_MAN_AT_THE_EDGE_OF_THE_WORLD"Have you any idea what it's like living on the edge of the world?"
ACTOR_SUSPICIOUS_OLD_WOMAN"I don't know what brings you to Apojii, but you'd better not be planning anything stupid."
ACTOR_BOY_COMING_OF_AGE"When they come of age, all the men of Apojii go to Aqua Island. Will I, too?"
ACTOR_GIRL_ABOUT_GAIA_FALLS"Do you think if you fall off of Gaia Falls that you keep on falling forever and ever?"
ACTOR_FATHERThe father who wished on the rock: "What... What just happened? That rock couldn't have heard my wishes..."
ACTOR_AQUA_STONEThe blue tear-shaped Aqua Stone Douse wakes.

Definition at line 47 of file apojii_islands.c.

APOJII_ISLANDS_HOUSES_ACTOR_ID

enum APOJII_ISLANDS_HOUSES_ACTOR_ID

The houses (ApojiiIslandsShopsPlacements).

EnumeratorValueDescription
ACTOR_WOMAN_ABOUT_THE_STARING_MANACTOR_FIRST_PLACED"There's this guy in town who spends his time at the spring, staring at the Aqua Stone."
ACTOR_SONHis son (scApojiiIslandsTalkToSon).
ACTOR_STRICT_FATHER"I absolutely refuse to let my son swim in the ocean until he is an adult."
ACTOR_CAUTIOUS_MOTHER"The currents around Apojii are just too strong to let children swim on their own."
ACTOR_BOY_KEPT_FROM_THE_OCEAN"I'm not allowed to go into the ocean."
ACTOR_GIRL_CALLING_FELIX_A_HERO"Hey, mister! Did you know that all the kids are calling you their hero?"
ACTOR_OLD_MAN_ABOUT_THE_AQUA_STONE"That old Aqua Stone is supposed to be the key to getting onto Aqua Island."
ACTOR_OLD_WOMAN_ABOUT_HER_HUSBANDS_DREAM"He's too old to try now, but my husband used to dream of scaling Aqua Rock."
ACTOR_GENERAL_STOREKEEPER"It'd be nice if we could import some items that our visitors would like."
ACTOR_INNKEEPER"Wow! You look just like the guy who showed up in the fancy boat."
ACTOR_OLD_WOMAN_AT_THE_INN"You guys aren't the warriors who came in that boat, are you?"
ACTOR_OLD_MAN_ABOUT_THE_WARMING_SEAIn the Sea of Time Islet's house: "The temperature of the ocean has been rising."

Definition at line 85 of file apojii_islands.c.

APOJII_ISLANDS_HAZE_ACTOR_ID

enum APOJII_ISLANDS_HAZE_ACTOR_ID

Haze's islet (ApojiiIslandsHazePlacements).

EnumeratorValueDescription
ACTOR_FALLS_ROPE_POSTACTOR_FIRST_PLACEDThe rope's posts: Lash at the one on the rock among the falls ties the rope up to the one on the cliff.
ACTOR_CLIFF_ROPE_POST
ACTOR_HAZE

Definition at line 125 of file apojii_islands.c.

anonymous enum

enum { METATILE_MARKER_NONE, METATILE_MARKER_SHOWN, METATILE_MARKER_ON_ACTOR }

A marker's states: none, shown over its metatile, and one nothing here sets, which the drawing keeps above the lowest priority (it is aqua_rock_inside.c's water pillar on an actor).

EnumeratorValueDescription
METATILE_MARKER_NONE
METATILE_MARKER_SHOWN
METATILE_MARKER_ON_ACTOR

Definition at line 182 of file apojii_islands.c.

anonymous enum

enum { VILLAGE_SEA_PALETTE, SHORE_PALETTE, FALLS_PALETTE, SPRAY_PALETTE, … }

The palettes the colour cycles read and write: background palettes but for the last.

EnumeratorValueDescription
VILLAGE_SEA_PALETTE3the village's sea
SHORE_PALETTE13the village's shore
FALLS_PALETTE3the islet's falls
SPRAY_PALETTE4the islet's spray
STONE_PALETTE4the village's palette the woken Aqua Stone's colours load from
STONE_SPRITE_PALETTE14the sprite palette they turn in, which the spring's markers take

Definition at line 244 of file apojii_islands.c.

anonymous enum

enum { CYCLE_FIRST_COLOR, CYCLE_COLORS, CYCLE_STEP_TICKS }

The sea's, shore's, falls' and spray's cycles turn their last four colours, a step every eighth tick.

EnumeratorValueDescription
CYCLE_FIRST_COLOR12
CYCLE_COLORS4
CYCLE_STEP_TICKS8

Definition at line 258 of file apojii_islands.c.

anonymous enum

enum { ACTOR_MINT, ACTOR_HERB, ACTOR_BRAMBLE_SEED }

The treasures buried under the weeds, by their place in SceneItems: the village's Mint and Herb, and the islet's Bramble Seed.

EnumeratorValueDescription
ACTOR_MINTFIELD_TREASURE_ACTOR
ACTOR_HERB
ACTOR_BRAMBLE_SEEDFIELD_TREASURE_ACTOR

Definition at line 274 of file apojii_islands.c.

anonymous enum

enum { SHOP_APOJII }

The Apojii Islands' general store, as mnShopRun numbers the shops.

EnumeratorValueDescription
SHOP_APOJII23

Definition at line 778 of file apojii_islands.c.

anonymous enum

enum { INN_ID_APOJII }

The Apojii Islands' inn, as mnInnCheckIn numbers the inns.

EnumeratorValueDescription
INN_ID_APOJII8

Definition at line 784 of file apojii_islands.c.

anonymous enum

enum { ACTOR_ENTRANCE_PUDDLE_C }

The Aqua Rock room's actor the copy below splashes at, as aqua_rock_inside.c names it.

EnumeratorValueDescription
ACTOR_ENTRANCE_PUDDLE_CACTOR_FIRST_PLACED + 7

Definition at line 1053 of file apojii_islands.c.

Functions in detail

scApojiiIslandsCycleFallsColors

void scApojiiIslandsCycleFallsColors(void)

The islet's falls and their spray cycle their last colours, held while Psynergy or Reveal runs.

References ApojiiIslandsFallsColors, ApojiiIslandsFallsCycled, ApojiiIslandsFallsCycleTick, ApojiiIslandsSprayColors, ApojiiIslandsSprayCycled, Sint32 and syWordsCopy().

Referenced by scApojiiIslandsInitHaze().

Definition at lines 137 and 368 of file apojii_islands.c.

scApojiiIslandsCycleSeaColors

void scApojiiIslandsCycleSeaColors(void)

The village's sea and shore cycle their last colours, held while Psynergy or Reveal runs.

References ApojiiIslandsSeaColors, ApojiiIslandsSeaCycled, ApojiiIslandsSeaCycleTick, ApojiiIslandsShoreColors, ApojiiIslandsShoreCycled, Sint32 and syWordsCopy().

Referenced by scApojiiIslandsDouseAquaStone(), scApojiiIslandsPauseSeaColors(), scApojiiIslandsResumeSeaColors() and scInit().

Definition at lines 138 and 419 of file apojii_islands.c.

scApojiiIslandsCycleAquaStoneColors

void scApojiiIslandsCycleAquaStoneColors(void)

The woken Aqua Stone's colours turn a step every other tick, in the sprite palette the spring's markers take.

References ApojiiIslandsStoneColors, ApojiiIslandsStoneCycled, ApojiiIslandsStoneCycleTick and Sint32.

Referenced by scApojiiIslandsDouseAquaStone().

Definition at lines 139 and 479 of file apojii_islands.c.

scApojiiIslandsStopFlashing

void scApojiiIslandsStopFlashing(ACTOR *actor)

A flashing actor's last update: its sprite's colour back to normal.

References fdActorSetSpriteColorMode().

Referenced by scApojiiIslandsFatherSeesTheStone().

Definition at lines 140 and 502 of file apojii_islands.c.

scApojiiIslandsFatherSeesTheStone

void scApojiiIslandsFatherSeesTheStone(void)

Back in the village after Douse, the father who wished on the Aqua Stone looks about him and wonders whether it heard his wishes.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdScriptClearFlag(), fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scApojiiIslandsStopFlashing(), scFieldActorJump(), scFieldActorShowEmote(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.

Referenced by scInit().

Definition at lines 142 and 573 of file apojii_islands.c.

scScrollHBlank

void scScrollHBlank(void)

The islet's HBlank split: above ApojiiIslandsSplitLine BG1 scrolls with the map and blending is off; below it, BG1 drifts and is blended.

References ApojiiIslandsLowerScrollX, ApojiiIslandsSplitLine and ApojiiIslandsUpperScrollX.

Referenced by scScrollStartHBlank().

Definition at lines 143 and 861 of file apojii_islands.c.

scLayerTrackScroll

void scLayerTrackScroll(void)

Each tick, follows the overhead layer's scroll for the split, the water below it drifting west a pixel every fourth tick.

References ApojiiIslandsLowerScrollX, ApojiiIslandsSplitLine, ApojiiIslandsUpperScrollX and TickCount.

Referenced by scScrollStartHBlank().

Definition at lines 144 and 882 of file apojii_islands.c.

scApojiiIslandsInitHaze

void scApojiiIslandsInitHaze(void)

Haze's islet on entry: the falls' colours cycle, the rope is placed, tied or not, the water sounds, and the leader rises from the water when he comes up from the cave.

References fdQueueMusic(), fdRopeInit(), fdRopePlace(), MainRoutineStateWork, scApojiiIslandsCycleFallsColors(), scLeaderRiseFromWater(), scScrollStartHBlank() and sySetTickEvent().

Referenced by scInit().

Definition at lines 146 and 937 of file apojii_islands.c.

scApojiiIslandsEnterSeaOfTimeIsletHouse

void scApojiiIslandsEnterSeaOfTimeIsletHouse(void)

The Sea of Time Islet's house, drawn beside the houses, entered from that islet: the window opens round the leader and the Apojii Islands' name is not shown.

References fdScriptClearFlag().

Referenced by scInit().

Definition at lines 147 and 959 of file apojii_islands.c.

scApojiiIslandsDrawMetatileMarkers

void scApojiiIslandsDrawMetatileMarkers(void)

Each tick: copies the markers' pictures, which the map's tile animation redraws, to sprite VRAM, and draws a sprite over each live marker in view, semi-transparent in the woken Aqua Stone's turning colours, at the lowest priority while it rests.

References ApojiiIslandsMetatileMarkers, fdMapStateView(), Sint32, syOAMAddSpriteAtDepth() and VramCacheEntries.

Referenced by scApojiiIslandsStartMetatileMarkers().

Definition at lines 151 and 1087 of file apojii_islands.c.

scApojiiIslandsStartMetatileMarkers

void scApojiiIslandsStartMetatileMarkers(void)

Clears the markers, takes a free VRAM cache entry for their four pictures, left empty, and starts drawing them each tick.

References ApojiiIslandsMetatileMarkers, mnVRAMLoad(), scApojiiIslandsDrawMetatileMarkers(), scFieldSetTickEvent() and syVRAMCacheFindFreeEntry().

Referenced by scApojiiIslandsDouseAquaStone().

Definition at lines 152 and 1155 of file apojii_islands.c.

scApojiiIslandsAddMetatileMarkers

void scApojiiIslandsAddMetatileMarkers(Uint32 base, Sint32 level, Sint32 restLevel)

Adds a marker over each metatile of layer 1 whose collision code is one of the METATILE_MARKER_KINDS from base, at level and resting at restLevel, each in steps of 8 pixels, and gives those metatiles MAP_SHAPE_MARKED, its entry set to level.

References ApojiiIslandsMetatileMarkers, fdMapGridGetLayer(), MapGridShapes and Sint32.

Referenced by scApojiiIslandsDouseAquaStone().

Definition at lines 153 and 1170 of file apojii_islands.c.

scApojiiIslandsSinkIntoSand

void scApojiiIslandsSinkIntoSand(void)

Sand takes the leader into the sand (and scApojiiIslandsRiseFromSand back up).

References fdActorGet() and MainRoutineStateWork.

Referenced by ApojiiIslandsVillageCues.

Definition at lines 301 and 351 of file apojii_islands.c.

scApojiiIslandsRiseFromSand

void scApojiiIslandsRiseFromSand(void)

Sand ends: the leader is back on the ground layer.

References fdActorGet() and MainRoutineStateWork.

Referenced by ApojiiIslandsVillageCues.

Definition at lines 302 and 358 of file apojii_islands.c.

scApojiiIslandsResumeSeaColors

void scApojiiIslandsResumeSeaColors(void)

The sea's colour cycle runs again as Reveal fades.

References scApojiiIslandsCycleSeaColors(), syResumeEvent() and sySynch().

Referenced by ApojiiIslandsVillageCues.

Definition at lines 303 and 471 of file apojii_islands.c.

scApojiiIslandsScatterHazeWeeds

void scApojiiIslandsScatterHazeWeeds(void)

Cyclone on Haze's islet's weeds scatters them.

Referenced by ApojiiIslandsHazeCues.

Definition at lines 304 and 674 of file apojii_islands.c.

scApojiiIslandsScatterWeedsOverBrambleSeed

void scApojiiIslandsScatterWeedsOverBrambleSeed(void)

DEFINE_SCATTER_WEEDS_OVER_TREASURE(scApojiiIslandsScatterWeedsOverBrambleSeed, 67, 8, 11, 6, FLAG_APOJII_ISLANDS_BRAMBLE_SEED_TAKEN, ACTOR_BRAMBLE_SEED, 200, 152)

Cyclone on the clump of weeds on Haze's islet at metatile (12, 9) blows it away and uncovers the Bramble Seed buried there.

Referenced by ApojiiIslandsHazeCues.

Definition at lines 305 and 681 of file apojii_islands.c.

scApojiiIslandsEnterDoor

void scApojiiIslandsEnterDoor(void)

Felix walks in at the door of one of the village's huts, and the screen fades to its room: the house of the man who stares at the Aqua Stone (its door at metatile (29, 18)), the strict father's family's (8, 17), the old couple's in the north-east (35, 7), the inn (7, 6) or the general store (12, 5). Each door's metatile behaviour is the number of the exit it leaves by, which the field engine keeps as stepCue.

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

Referenced by ApojiiIslandsVillageCues.

Definition at lines 306 and 697 of file apojii_islands.c.

scApojiiIslandsJumpDownLedge

void scApojiiIslandsJumpDownLedge(void)

Walking south off Haze's ledge jumps the leader down.

References fdActorJumpDownLedge() and MainRoutineStateWork.

Referenced by ApojiiIslandsHazeCues.

Definition at lines 307 and 759 of file apojii_islands.c.

scApojiiIslandsJumpForward

void scApojiiIslandsJumpForward(void)

Felix jumps across the stream north of the hut by the Aqua Stone's pool when he walks north into its bank (metatiles (29, 12) and (30, 12)), landing on the grass beyond. The field engine's fdTryJumpForward makes the jump. The second metatile is one of the weeds' metatiles, and walking north into weeds anywhere in the village tries the same jump; away from the stream it starts nothing: walking north into the weeds by the hut, metatile (26, 19), or at (11, 16), Felix only walks on, with no jump.

References fdTryJumpForward().

Referenced by ApojiiIslandsVillageCues.

Definition at lines 308 and 973 of file apojii_islands.c.

scApojiiIslandsHazeJoinsParty

void scApojiiIslandsHazeJoinsParty(void)

Haze, the Jupiter Djinni on the islet, joins the party.

References fdDjinnJoinParty().

Referenced by ApojiiIslandsHazeCues.

Definition at line 315 of file apojii_islands.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 321 of file apojii_islands.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

Definition at line 326 of file apojii_islands.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 331 of file apojii_islands.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References ApojiiIslandsHazePlacements, ApojiiIslandsPlacements, ApojiiIslandsShopsPlacements, ApojiiIslandsVillagePlacements and MainRoutineStateWork.

Definition at line 336 of file apojii_islands.c.

scApojiiIslandsPauseSeaColors

void scApojiiIslandsPauseSeaColors(void)

Reveal holds the sea's colour cycle as it takes effect.

References scApojiiIslandsCycleSeaColors(), sySuspendEvent() and sySynch().

Referenced by ApojiiIslandsVillageCues.

Definition at line 464 of file apojii_islands.c.

scApojiiIslandsDouseAquaStone

void scApojiiIslandsDouseAquaStone(Sint32 unused, Sint32 id)

Douse on the Aqua Stone: it flickers white as Aqua Rock's music starts, sparkles rise round it and the screen flashes four times in random colours; then the sea stops cycling, markers in the stone's turning colours blend in over the spring, the father starts, and the camera pans southeast before the party leaves for the World Map, where sparkles carry it across the sea to Aqua Rock (scWorldMapCarryPartyToAquaRock).

References fdActorGetById(), fdActorShowEmoteById(), fdActorTableSnapshot(), fdCameraWaitForArrival(), fdGroundParticlesStart(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdQueueMusic(), fdScriptEndLastingPsynergy(), fdScriptStart(), scActorFlashWhite(), scApojiiIslandsAddMetatileMarkers(), scApojiiIslandsCycleAquaStoneColors(), scApojiiIslandsCycleSeaColors(), scApojiiIslandsStartMetatileMarkers(), scGroundParticlesSetAnchor(), Sint32, syCloseEvent(), syGameFlagSet(), syImportScriptSetExitRequest(), syRandom(), sySetEvent(), sySoundPlay() and sySynch().

Referenced by ApojiiIslandsVillageCues.

Definition at line 516 of file apojii_islands.c.

scApojiiIslandsScatterWeeds

void scApojiiIslandsScatterWeeds(void)

Cyclone on the village's weeds scatters them.

Referenced by ApojiiIslandsVillageCues.

Definition at line 612 of file apojii_islands.c.

scApojiiIslandsScatterWeedsOverHerb

DEFINE_SCATTER_WEEDS_OVER_TREASURE(scApojiiIslandsScatterWeedsOverHerb, 68, 4, 38, 21, FLAG_APOJII_ISLANDS_HERB_TAKEN, ACTOR_HERB, 376, 376)

Cyclone on the clump of weeds south of the Aqua Stone, at metatile (23, 23), blows it away and uncovers the Herb buried there.

Referenced by ApojiiIslandsVillageCues.

Definition at line 651 of file apojii_islands.c.

scApojiiIslandsScatterWeedsOverMint

DEFINE_SCATTER_WEEDS_OVER_TREASURE(scApojiiIslandsScatterWeedsOverMint, 68, 4, 38, 21, FLAG_APOJII_ISLANDS_MINT_TAKEN, ACTOR_MINT, 600, 408)

Cyclone on the clump of weeds in the village's south-east corner, at metatile (37, 25), blows it away and uncovers the Mint buried there.

Referenced by ApojiiIslandsVillageCues.

Definition at line 663 of file apojii_islands.c.

scApojiiIslandsTalkToSon

Sint32 scApojiiIslandsTalkToSon(void)

The staring man's son turns to the leader and asks why his father stares at the rock, unless the leader comes at him from the west, facing east.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.

Referenced by ApojiiIslandsShopsCues.

Definition at line 718 of file apojii_islands.c.

scApojiiIslandsMindReadSon

Sint32 scApojiiIslandsMindReadSon(void)

Mind Read on the staring man's son: his thought, unless the leader reads it from the west, facing east.

References fdActorGet(), fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.

Referenced by ApojiiIslandsShopsCues.

Definition at line 740 of file apojii_islands.c.

scGetCues

const CUE *scGetCues(void)

References ApojiiIslandsCues, ApojiiIslandsHazeCues, ApojiiIslandsShopsCues, ApojiiIslandsVillageCues and MainRoutineStateWork.

Definition at line 764 of file apojii_islands.c.

scApojiiIslandsTalkToInnkeeper

void scApojiiIslandsTalkToInnkeeper(Sint32 actor)

The innkeeper: across the counter, the inn; from elsewhere, his words about the fancy boat.

References fdActorGet(), fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, mnInnCheckIn(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.

Referenced by ApojiiIslandsShopsCues.

Definition at line 791 of file apojii_islands.c.

scApojiiIslandsAskAboutWarriors

void scApojiiIslandsAskAboutWarriors(Sint32 actor)

The old woman at the inn asks whether the party are the warriors who came in the boat, and answers the yes or the no.

References fdScriptEnd(), fdScriptOpenMessage(), fdScriptShowMessage(), fdScriptStart(), scFieldPartyGetLeaderActor(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptWait() and Sint32.

Referenced by ApojiiIslandsShopsCues.

Definition at line 810 of file apojii_islands.c.

scApojiiIslandsTalkToGeneralStorekeeper

void scApojiiIslandsTalkToGeneralStorekeeper(Sint32 actor)

The general storekeeper: across the counter, the store; from elsewhere, her wish for imported goods.

References fdActorGet(), fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, mnShopRun(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.

Referenced by ApojiiIslandsShopsCues.

Definition at line 841 of file apojii_islands.c.

scInit

Sint32 scInit(void)

Sets the rooms' wading and their window transition, the houses fading from the backdrop instead, then each room's own setup: the islet's, and in the village the sea's cycle and the father's surprise once Douse has woken the Aqua Stone.

References fdScriptGetFlag(), MainRoutineStateWork, scApojiiIslandsCycleSeaColors(), scApojiiIslandsEnterSeaOfTimeIsletHouse(), scApojiiIslandsFatherSeesTheStone(), scApojiiIslandsInitHaze(), scFieldSetTickEvent() and Sint32.

Definition at line 899 of file apojii_islands.c.

scPrepareMap

Sint32 scPrepareMap(void)

References Sint32.

Definition at line 929 of file apojii_islands.c.

scApojiiIslandsFlowWithStream

void scApojiiIslandsFlowWithStream(void)

Unused here: Aqua Rock's stream carries the leader south, splashing, and off a ledge he drops with the water (scLeaderFlowWithStream).

References fdActorGet(), fdActorSelectAnimation(), fdActorSetAttachedEffect(), fdMapGridCheckCollision(), MainRoutineStateWork, result, scActorSpawnWadingSplash(), scFieldActorSetMoveTargetFX(), scFieldActorWaitForMove(), Sint32, sySynch() and TickCount.

Definition at line 983 of file apojii_islands.c.

Variables in detail

ApojiiIslandsFallsColors

Uint16 ApojiiIslandsFallsColors[PALETTE_COLORS]

The falls' palette as loaded, the source of each cycle.

Referenced by scApojiiIslandsCycleFallsColors().

Definition at line 199 of file apojii_islands.c.

ApojiiIslandsFallsCycled

Uint16 ApojiiIslandsFallsCycled[PALETTE_COLORS]

The falls' palette as this tick's cycle leaves it.

Referenced by scApojiiIslandsCycleFallsColors().

Definition at line 201 of file apojii_islands.c.

ApojiiIslandsSprayColors

Uint16 ApojiiIslandsSprayColors[PALETTE_COLORS]

The spray's palette as loaded.

Referenced by scApojiiIslandsCycleFallsColors().

Definition at line 203 of file apojii_islands.c.

ApojiiIslandsSprayCycled

Uint16 ApojiiIslandsSprayCycled[PALETTE_COLORS]

The spray's palette as this tick's cycle leaves it.

Referenced by scApojiiIslandsCycleFallsColors().

Definition at line 205 of file apojii_islands.c.

ApojiiIslandsSeaColors

Uint16 ApojiiIslandsSeaColors[PALETTE_COLORS]

The sea's palette as loaded.

Referenced by scApojiiIslandsCycleSeaColors().

Definition at line 207 of file apojii_islands.c.

ApojiiIslandsSeaCycled

Uint16 ApojiiIslandsSeaCycled[PALETTE_COLORS]

The sea's palette as this tick's cycle leaves it.

Referenced by scApojiiIslandsCycleSeaColors().

Definition at line 209 of file apojii_islands.c.

ApojiiIslandsShoreColors

Uint16 ApojiiIslandsShoreColors[PALETTE_COLORS]

The shore's palette as loaded.

Referenced by scApojiiIslandsCycleSeaColors().

Definition at line 211 of file apojii_islands.c.

ApojiiIslandsShoreCycled

Uint16 ApojiiIslandsShoreCycled[PALETTE_COLORS]

The shore's palette as this tick's cycle leaves it.

Referenced by scApojiiIslandsCycleSeaColors().

Definition at line 213 of file apojii_islands.c.

ApojiiIslandsStoneColors

Uint16 ApojiiIslandsStoneColors[PALETTE_COLORS]

The woken Aqua Stone's colours as loaded.

Referenced by scApojiiIslandsCycleAquaStoneColors().

Definition at line 215 of file apojii_islands.c.

ApojiiIslandsStoneCycled

Uint16 ApojiiIslandsStoneCycled[PALETTE_COLORS]

The woken Aqua Stone's colours as this tick's cycle leaves them.

Referenced by scApojiiIslandsCycleAquaStoneColors().

Definition at line 217 of file apojii_islands.c.

ApojiiIslandsSplitLine

Sint32 ApojiiIslandsSplitLine

The islet's screen line below which BG1 drifts and is blended (scScrollHBlank), and BG1's scroll above and below it.

References Sint32.

Referenced by scLayerTrackScroll() and scScrollHBlank().

Definition at line 220 of file apojii_islands.c.

ApojiiIslandsUpperScrollX

Uint16 ApojiiIslandsUpperScrollX

Referenced by scLayerTrackScroll() and scScrollHBlank().

Definition at line 221 of file apojii_islands.c.

ApojiiIslandsLowerScrollX

Uint16 ApojiiIslandsLowerScrollX

Referenced by scLayerTrackScroll() and scScrollHBlank().

Definition at line 222 of file apojii_islands.c.

ApojiiIslandsMetatileMarkers

METATILE_MARKER_SET ApojiiIslandsMetatileMarkers

The markers drawn over the spring once the Aqua Stone is woken.

Referenced by scApojiiIslandsAddMetatileMarkers(), scApojiiIslandsDrawMetatileMarkers() and scApojiiIslandsStartMetatileMarkers().

Definition at line 224 of file apojii_islands.c.

WadingSplashScript

extern Uint32 WadingSplashScript[]

Uint32 WadingSplashScript[]

A splash's script: it shows for 20 ticks, then is released.

Referenced by scActorSpawnWadingSplash().

Definition at lines 225 and 1233 of file apojii_islands.c.

ApojiiIslandsPlacements

extern ACTOR_PLACE ApojiiIslandsPlacements[]

ACTOR_PLACE ApojiiIslandsPlacements[]

The scene's other rooms' actors: none.

Referenced by scGetActorPlacements().

Definition at lines 291 and 1368 of file apojii_islands.c.

ApojiiIslandsVillagePlacements

extern ACTOR_PLACE ApojiiIslandsVillagePlacements[]

ACTOR_PLACE ApojiiIslandsVillagePlacements[]

The village's actors, in APOJII_ISLANDS_VILLAGE_ACTOR_ID's order.

Referenced by scGetActorPlacements().

Definition at lines 292 and 1373 of file apojii_islands.c.

ApojiiIslandsShopsPlacements

extern ACTOR_PLACE ApojiiIslandsShopsPlacements[]

ACTOR_PLACE ApojiiIslandsShopsPlacements[]

The houses' actors, in APOJII_ISLANDS_HOUSES_ACTOR_ID's order.

References ApojiiIslandsPaceScript and Sint32.

Referenced by scGetActorPlacements().

Definition at lines 293 and 1398 of file apojii_islands.c.

ApojiiIslandsHazePlacements

extern ACTOR_PLACE ApojiiIslandsHazePlacements[]

ACTOR_PLACE ApojiiIslandsHazePlacements[]

Haze's islet's actors, in APOJII_ISLANDS_HAZE_ACTOR_ID's order.

Referenced by scGetActorPlacements().

Definition at lines 294 and 1427 of file apojii_islands.c.

ApojiiIslandsStoneCycleTick

extern Sint32 ApojiiIslandsStoneCycleTick[]

Sint32 ApojiiIslandsStoneCycleTick[]

Ticks the Aqua Stone's cycle has run; -1 until it loads the palette.

References Sint32.

Referenced by scApojiiIslandsCycleAquaStoneColors().

Definition at lines 295 and 1449 of file apojii_islands.c.

ApojiiIslandsCues

extern CUE ApojiiIslandsCues[]

CUE ApojiiIslandsCues[]

The scene's other rooms' cues: none.

Referenced by scGetCues().

Definition at lines 297 and 1438 of file apojii_islands.c.

ApojiiIslandsVillageCues

extern CUE ApojiiIslandsVillageCues[]

CUE ApojiiIslandsVillageCues[]

The village's exits, doors, talks and Psynergy.

References scApojiiIslandsDouseAquaStone(), scApojiiIslandsEnterDoor(), scApojiiIslandsJumpForward(), scApojiiIslandsPauseSeaColors(), scApojiiIslandsResumeSeaColors(), scApojiiIslandsRiseFromSand(), scApojiiIslandsScatterWeeds(), scApojiiIslandsScatterWeedsOverHerb(), scApojiiIslandsScatterWeedsOverMint() and scApojiiIslandsSinkIntoSand().

Referenced by scGetCues().

Definition at lines 298 and 1454 of file apojii_islands.c.

ApojiiIslandsShopsCues

extern CUE ApojiiIslandsShopsCues[]

CUE ApojiiIslandsShopsCues[]

The houses' exits, doors, talks and Psynergy.

References scApojiiIslandsAskAboutWarriors(), scApojiiIslandsMindReadSon(), scApojiiIslandsTalkToGeneralStorekeeper(), scApojiiIslandsTalkToInnkeeper() and scApojiiIslandsTalkToSon().

Referenced by scGetCues().

Definition at lines 299 and 1542 of file apojii_islands.c.

ApojiiIslandsHazeCues

extern CUE ApojiiIslandsHazeCues[]

CUE ApojiiIslandsHazeCues[]

Haze's islet's ways into the water, its ledge, Haze, Lash on the rope and Cyclone on the weeds. Each way down into the water to the cave is the metatile behaviour of the exit it leaves by, which scLeaderSinkAway takes.

References scApojiiIslandsHazeJoinsParty(), scApojiiIslandsJumpDownLedge(), scApojiiIslandsScatterHazeWeeds(), scApojiiIslandsScatterWeedsOverBrambleSeed() and scLeaderSinkAway().

Referenced by scGetCues().

Definition at lines 300 and 1605 of file apojii_islands.c.

ApojiiIslandsPaceScript

extern Sint32 ApojiiIslandsPaceScript[]

Sint32 ApojiiIslandsPaceScript[]

The cautious mother paces her house: a step east and up to the north wall, a pause, then back to her place, a pause.

References Sint32.

Referenced by ApojiiIslandsShopsPlacements.

Definition at lines 312 and 1250 of file apojii_islands.c.

ApojiiIslandsFallsCycleTick

extern Sint32 ApojiiIslandsFallsCycleTick

Sint32 ApojiiIslandsFallsCycleTick

Ticks the falls' cycle has run; -1 until it loads the palettes.

References Sint32.

Referenced by scApojiiIslandsCycleFallsColors().

Definition at lines 364 and 1443 of file apojii_islands.c.

ApojiiIslandsSeaCycleTick

extern Sint32 ApojiiIslandsSeaCycleTick

Sint32 ApojiiIslandsSeaCycleTick

Ticks the sea's cycle has run; -1 until it loads the palettes.

References Sint32.

Referenced by scApojiiIslandsCycleSeaColors().

Definition at lines 415 and 1446 of file apojii_islands.c.

FieldEffectDurationScripts

const Sint32 *FieldEffectDurationScripts[]

References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.

Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().

Definition at line 1242 of file apojii_islands.c.

SceneExits

Uint32 SceneExits[]

Referenced by scGetExits().

Definition at line 1279 of file apojii_islands.c.

On this page

StructuresMacrosEnumerationsFunctionsVariablesDescriptionMacros in detailFLAG_APOJII_AQUA_STONE_DOUSEDFLAG_FATHER_SEES_THE_STONEFLAG_APOJII_ISLANDS_MINT_TAKENFLAG_APOJII_ISLANDS_HERB_TAKENFLAG_APOJII_ISLANDS_BRAMBLE_SEED_TAKENFLAG_HAZE_ROPE_TIEDMETATILE_MARKERSMETATILE_MARKER_KINDSPACER_COLLISIONSTONE_CYCLE_COLORSMETATILE_BEHAVIOR_SPRINGEFFECT_SET_MODEEFFECT_SET_SCRIPTEFFECT_SPRITE_PRIORITYSCATTER_WEEDSDEFINE_SCATTER_WEEDS_OVER_TREASUREMARKER_SOURCE_TILEMARKER_PICTURE_TILESCOPY_TILESCOPY_PICTUREEnumerations in detailanonymous enumAPOJII_ISLANDS_VILLAGE_ACTOR_IDAPOJII_ISLANDS_HOUSES_ACTOR_IDAPOJII_ISLANDS_HAZE_ACTOR_IDanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumFunctions in detailscApojiiIslandsCycleFallsColorsscApojiiIslandsCycleSeaColorsscApojiiIslandsCycleAquaStoneColorsscApojiiIslandsStopFlashingscApojiiIslandsFatherSeesTheStonescScrollHBlankscLayerTrackScrollscApojiiIslandsInitHazescApojiiIslandsEnterSeaOfTimeIsletHousescApojiiIslandsDrawMetatileMarkersscApojiiIslandsStartMetatileMarkersscApojiiIslandsAddMetatileMarkersscApojiiIslandsSinkIntoSandscApojiiIslandsRiseFromSandscApojiiIslandsResumeSeaColorsscApojiiIslandsScatterHazeWeedsscApojiiIslandsScatterWeedsOverBrambleSeedscApojiiIslandsEnterDoorscApojiiIslandsJumpDownLedgescApojiiIslandsJumpForwardscApojiiIslandsHazeJoinsPartyscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscApojiiIslandsPauseSeaColorsscApojiiIslandsDouseAquaStonescApojiiIslandsScatterWeedsscApojiiIslandsScatterWeedsOverHerbscApojiiIslandsScatterWeedsOverMintscApojiiIslandsTalkToSonscApojiiIslandsMindReadSonscGetCuesscApojiiIslandsTalkToInnkeeperscApojiiIslandsAskAboutWarriorsscApojiiIslandsTalkToGeneralStorekeeperscInitscPrepareMapscApojiiIslandsFlowWithStreamVariables in detailApojiiIslandsFallsColorsApojiiIslandsFallsCycledApojiiIslandsSprayColorsApojiiIslandsSprayCycledApojiiIslandsSeaColorsApojiiIslandsSeaCycledApojiiIslandsShoreColorsApojiiIslandsShoreCycledApojiiIslandsStoneColorsApojiiIslandsStoneCycledApojiiIslandsSplitLineApojiiIslandsUpperScrollXApojiiIslandsLowerScrollXApojiiIslandsMetatileMarkersWadingSplashScriptApojiiIslandsPlacementsApojiiIslandsVillagePlacementsApojiiIslandsShopsPlacementsApojiiIslandsHazePlacementsApojiiIslandsStoneCycleTickApojiiIslandsCuesApojiiIslandsVillageCuesApojiiIslandsShopsCuesApojiiIslandsHazeCuesApojiiIslandsPaceScriptApojiiIslandsFallsCycleTickApojiiIslandsSeaCycleTickFieldEffectDurationScriptsSceneExits