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…
#include "flags.h"#include "field/field_engine.h"#include "field/actor_script.h"#include "scene/dust.h"#include "shop/shop.h"#include "macros.h"#include "field/script_inline.h"#include "text/msg_ids.h"#include "field/field_script.h"#include "scene/scene.h"#include "scene/ground_effects.h"#include "field/map.h"#include "graphics/palette_buffers.h"#include "edition.h"#include "shared/actor_set_sprite_priority.c"#include "shared/actor_create_silhouette.c"#include "shared/scene_create_actor.c"#include "../field/field_effect_move.c"#include "shared/field_effect_spawn.c"#include "shared/actor_flash_white.c"#include "shared/scroll_start_hblank.c"#include "shared/actor_spawn_wading_splash.c"#include "shared/actor_emit_ripples.c"#include "shared/moai_add_water.c"#include "shared/leader_spin_away.c"#include "shared/actor_emit_mist.c"#include "shared/leader_sink_away.c"#include "shared/leader_rise_from_water.c"#include "shared/ground_particles_draw.c"#include "shared/ground_particles_start.c"#include "shared/ground_particles_set_anchor.c"#include "shared/field_effect_duration_scripts.c"#include "shared/ripple_script.c"#include "shared/ground_particle_frames.c"#include "shared/scene_entrances_default.c"
Structures
| Name | Description | |
|---|---|---|
struct | METATILE_MARKER | A 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. |
struct | METATILE_MARKER_SET | scApojiiIslandsDrawMetatileMarkers's table: the markers' VRAM cache entry and the markers. |
Macros
| Name | Description | |
|---|---|---|
#define | FLAG_APOJII_AQUA_STONE_DOUSED 0x95f | Set once Douse has woken the Aqua 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. |
#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. |
#define | FLAG_APOJII_ISLANDS_HERB_TAKEN 0xf9b | |
#define | FLAG_APOJII_ISLANDS_BRAMBLE_SEED_TAKEN 0xf9e | |
#define | FLAG_HAZE_ROPE_TIED FLAG_SCENE_TEMP(0x00) | Haze's islet: set once Lash has tied the rope between its posts. |
#define | METATILE_MARKERS 128 | The markers the woken Aqua Stone lays over the spring: at most this many. |
#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. |
#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. |
#define | STONE_CYCLE_COLORS (PALETTE_COLORS - 1) | The woken Aqua Stone's cycle turns every colour but the transparent first. |
#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). |
#define | EFFECT_SET_MODE fdActorSelectAnimation | |
#define | EFFECT_SET_SCRIPT fdActorStartScript | |
#define | EFFECT_SPRITE_PRIORITY | |
#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. |
#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. |
#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. |
#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. |
#define | COPY_TILES (fromTile, toTile) | Copies two tiles of the map's pictures to the markers' tiles in sprite VRAM. |
#define | COPY_PICTURE (from, to) | Copies the map's picture from to marker picture to, upper half first. |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous 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. |
enum | APOJII_ISLANDS_VILLAGE_ACTOR_ID { ACTOR_WELCOMING_YOUNG_MAN, ACTOR_WOMAN_WARNING_OF_THE_EDGE, … } | The village by the Aqua Stone (ApojiiIslandsVillagePlacements). |
enum | APOJII_ISLANDS_HOUSES_ACTOR_ID { ACTOR_WOMAN_ABOUT_THE_STARING_MAN, ACTOR_SON, ACTOR_STRICT_F … } | The houses (ApojiiIslandsShopsPlacements). |
enum | APOJII_ISLANDS_HAZE_ACTOR_ID { ACTOR_FALLS_ROPE_POST, ACTOR_CLIFF_ROPE_POST, ACTOR_HAZE } | Haze's islet (ApojiiIslandsHazePlacements). |
enum | anonymous 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). |
enum | anonymous enum { VILLAGE_SEA_PALETTE, SHORE_PALETTE, FALLS_PALETTE, SPRAY_PAL … } | The palettes the colour cycles read and write: background palettes but for the last. |
enum | anonymous 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. |
enum | anonymous 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. |
enum | anonymous enum { SHOP_APOJII } | The Apojii Islands' general store, as mnShopRun numbers the shops. |
enum | anonymous enum { INN_ID_APOJII } | The Apojii Islands' inn, as mnInnCheckIn numbers the inns. |
enum | anonymous enum { ACTOR_ENTRANCE_PUDDLE_C } | The Aqua Rock room's actor the copy below splashes at, as aqua_rock_inside.c names it. |
Functions
| Name | Description | |
|---|---|---|
void | scApojiiIslandsCycleFallsColors (void) | The islet's falls and their spray cycle their last colours, held while Psynergy or Reveal runs. |
void | scApojiiIslandsCycleSeaColors (void) | The village's sea and shore cycle their last colours, held while Psynergy or Reveal runs. |
void | scApojiiIslandsCycleAquaStoneColors (void) | The woken Aqua Stone's colours turn a step every other tick, in the sprite palette the spring's markers take. |
void | scApojiiIslandsStopFlashing (ACTOR *actor) | A flashing actor's last update: its sprite's colour back to normal. |
void | scActorFlashWhite (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. |
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. |
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. |
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. |
void | scScrollStartHBlank (void) | Starts the split: scScrollHBlank on every line, and scLayerTrackScroll each tick. |
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. |
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. |
void | scActorSpawnWadingSplash (ACTOR *actor) | A splash at the actor's feet as it wades, on its sprite's priority. |
Sint32 | scActorEmitMist (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. |
void | scLeaderRiseFromWater (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. |
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. |
void | scApojiiIslandsStartMetatileMarkers (void) | Clears the markers, takes a free VRAM cache entry for their four pictures, left empty, and starts drawing them each tick. |
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. |
void | fdGroundParticlesDraw (void) | Event: the drops of rain falling about the stone Douse has struck (scGroundParticlesSetAnchor), the overlay's copy of fdGroundParticlesUpdate. |
void | scGroundParticlesSetAnchor (Sint32 id) | Lets the rain fall about actor id, or, for 0, nowhere on screen. |
BSS_DATA | ALIGNED (4) | The falls' palette as loaded, the source of each cycle. |
void | scApojiiIslandsSinkIntoSand (void) | Sand takes the leader into the sand (and scApojiiIslandsRiseFromSand back up). |
void | scApojiiIslandsRiseFromSand (void) | Sand ends: the leader is back on the ground layer. |
void | scApojiiIslandsResumeSeaColors (void) | The sea's colour cycle runs again as Reveal fades. |
void | scApojiiIslandsScatterHazeWeeds (void) | Cyclone on Haze's islet's weeds scatters them. |
void | scApojiiIslandsScatterWeedsOverBrambleSeed (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. |
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). |
void | scApojiiIslandsJumpDownLedge (void) | Walking south off Haze's ledge jumps the leader down. |
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. |
void | scApojiiIslandsHazeJoinsParty (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. |
void | scApojiiIslandsPauseSeaColors (void) | Reveal holds the sea's colour cycle as it takes effect. |
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). |
void | scApojiiIslandsScatterWeeds (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. |
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. |
Sint32 | scApojiiIslandsMindReadSon (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. |
void | scApojiiIslandsTalkToInnkeeper (Sint32 actor) | The innkeeper: across the counter, the inn; from elsewhere, his words about the fancy boat. |
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. |
void | scApojiiIslandsTalkToGeneralStorekeeper (Sint32 actor) | The general storekeeper: across the counter, the store; from elsewhere, her wish for imported goods. |
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. |
Sint32 | scPrepareMap (void) | Once Briggs is caught the pool has dried up: its colours take the dry ground's. |
void | scApojiiIslandsFlowWithStream (void) | Unused here: Aqua Rock's stream carries the leader south, splashing, and off a ledge he drops with the water (scLeaderFlowWithStream). |
Variables
| Name | Description | |
|---|---|---|
Uint16 | ApojiiIslandsFallsColors [PALETTE_COLORS] | The falls' palette as loaded, the source of each cycle. |
Uint16 | ApojiiIslandsFallsCycled [PALETTE_COLORS] | The falls' palette as this tick's cycle leaves it. |
Uint16 | ApojiiIslandsSprayColors [PALETTE_COLORS] | The spray's palette as loaded. |
Uint16 | ApojiiIslandsSprayCycled [PALETTE_COLORS] | The spray's palette as this tick's cycle leaves it. |
Uint16 | ApojiiIslandsSeaColors [PALETTE_COLORS] | The sea's palette as loaded. |
Uint16 | ApojiiIslandsSeaCycled [PALETTE_COLORS] | The sea's palette as this tick's cycle leaves it. |
Uint16 | ApojiiIslandsShoreColors [PALETTE_COLORS] | The shore's palette as loaded. |
Uint16 | ApojiiIslandsShoreCycled [PALETTE_COLORS] | The shore's palette as this tick's cycle leaves it. |
Uint16 | ApojiiIslandsStoneColors [PALETTE_COLORS] | The woken Aqua Stone's colours as loaded. |
Uint16 | ApojiiIslandsStoneCycled [PALETTE_COLORS] | The woken Aqua Stone's colours as this tick's cycle leaves them. |
Sint32 | ApojiiIslandsSplitLine | The islet's screen line below which BG1 drifts and is blended (scScrollHBlank), and BG1's scroll above and below it. |
Uint16 | ApojiiIslandsUpperScrollX | |
Uint16 | ApojiiIslandsLowerScrollX | |
METATILE_MARKER_SET | ApojiiIslandsMetatileMarkers | The markers drawn over the spring once the Aqua Stone is woken. |
extern Uint32 | WadingSplashScript [] | A splash's script: it shows for 20 ticks, then is released. |
extern Uint32 | RippleScript [] | A ripple rises a quarter of a pixel a tick for 31 ticks, then is released. |
extern ACTOR_PLACE | ApojiiIslandsPlacements [] | The scene's other rooms' actors: none. |
extern ACTOR_PLACE | ApojiiIslandsVillagePlacements [] | The village's actors, in APOJII_ISLANDS_VILLAGE_ACTOR_ID's order. |
extern ACTOR_PLACE | ApojiiIslandsShopsPlacements [] | The houses' actors, in APOJII_ISLANDS_HOUSES_ACTOR_ID's order. |
extern ACTOR_PLACE | ApojiiIslandsHazePlacements [] | Haze's islet's actors, in APOJII_ISLANDS_HAZE_ACTOR_ID's order. |
extern Sint32 | ApojiiIslandsStoneCycleTick [] | Ticks the Aqua Stone's cycle has run; -1 until it loads the palette. |
extern CUE | ApojiiIslandsCues [] | The scene's other rooms' cues: none. |
extern CUE | ApojiiIslandsVillageCues [] | The village's exits, doors, talks and Psynergy. |
extern CUE | ApojiiIslandsShopsCues [] | The houses' exits, doors, talks and Psynergy. |
extern CUE | ApojiiIslandsHazeCues [] | Haze's islet's ways into the water, its ledge, Haze, Lash on the rope and Cyclone on the weeds. |
extern Uint32 | FieldEffectShortScript [] | |
extern Uint32 | FieldEffectMediumScript [] | The flash about the Tomegathericon: held 45 ticks, then put away and freed. |
extern Uint32 | FieldEffectLongScript [] | |
extern 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. |
extern Sint32 | ApojiiIslandsFallsCycleTick | Ticks the falls' cycle has run; -1 until it loads the palettes. |
extern Sint32 | ApojiiIslandsSeaCycleTick | Ticks the sea's cycle has run; -1 until it loads the palettes. |
extern Sint16 | GroundParticleFrames [] | 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. |
Uint32 | SceneExits [] | 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.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_STREAM_BANK | 33 | |
METATILE_BEHAVIOR_HAZE_LEDGE_EDGE | 40 | |
METATILE_BEHAVIOR_WEEDS | 21 | |
METATILE_BEHAVIOR_WEEDS_OVER_HERB | 22 | |
METATILE_BEHAVIOR_WEEDS_OVER_MINT | 23 | |
METATILE_BEHAVIOR_WEEDS_OVER_BRAMBLE_SEED | 22 |
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).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_WELCOMING_YOUNG_MAN | ACTOR_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_FATHER | The father who wished on the rock: "What... What just happened? That rock couldn't have heard my wishes..." | |
ACTOR_AQUA_STONE | The 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).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_WOMAN_ABOUT_THE_STARING_MAN | ACTOR_FIRST_PLACED | "There's this guy in town who spends his time at the spring, staring at the Aqua Stone." |
ACTOR_SON | His 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_SEA | In 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).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_FALLS_ROPE_POST | ACTOR_FIRST_PLACED | The 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).
| Enumerator | Value | Description |
|---|---|---|
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.
| Enumerator | Value | Description |
|---|---|---|
VILLAGE_SEA_PALETTE | 3 | the village's sea |
SHORE_PALETTE | 13 | the village's shore |
FALLS_PALETTE | 3 | the islet's falls |
SPRAY_PALETTE | 4 | the islet's spray |
STONE_PALETTE | 4 | the village's palette the woken Aqua Stone's colours load from |
STONE_SPRITE_PALETTE | 14 | the 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.
| Enumerator | Value | Description |
|---|---|---|
CYCLE_FIRST_COLOR | 12 | |
CYCLE_COLORS | 4 | |
CYCLE_STEP_TICKS | 8 |
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.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_MINT | FIELD_TREASURE_ACTOR | |
ACTOR_HERB | ||
ACTOR_BRAMBLE_SEED | FIELD_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.
| Enumerator | Value | Description |
|---|---|---|
SHOP_APOJII | 23 |
Definition at line 778 of file apojii_islands.c.
anonymous enum
enum { INN_ID_APOJII }
The Apojii Islands' inn, as mnInnCheckIn numbers the inns.
| Enumerator | Value | Description |
|---|---|---|
INN_ID_APOJII | 8 |
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.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_ENTRANCE_PUDDLE_C | ACTOR_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.