Skip to Content
The Alchemy Project

Scene Overlays

This page is a guide to the games/tbs/src/scene/ folder of the Alchemy project. Every town, dungeon, cutscene, and menu screen in Golden Sun: The Broken Seal gets its local logic from a compressed scene overlay in it.

Each C file here compiles into a standalone overlay that unpacks on demand when the party walks through a door or changes area. Together, the 93 gameplay overlays in this folder and the 3 debug overlays in Debug Mode & Test Rooms cover all 201 scenes in the game. Any file, such as vale.c, gives a town's NPCs, triggers, and cutscenes in one continuous reading.

The sections below describe the six-stub entry table every overlay shares, give cue and door script examples from the source, explain how temporary flags reset between areas, and trace how Clear Data passwords are encoded. Conceptual context is given in World, Scenes & Maps.

The 6-stub entry table (entry.s)

Isaac climbs the steps to Vale's Sanctum door, fading out of Vale and loading the Sanctum overlay
Isaac climbs the steps to Vale's Sanctum door, fading out of Vale and loading the Sanctum overlay

Every overlay links entry.s at its start, exposing 6 fixed-order C functions queried by the field engine. An overlay can return different tables dynamically by story flag when needed, as Vale does when choosing among three cue tables:

  1. scInit: Custom setup before fade-in, such as restoring pushed pillars, hiding story NPCs, or redirecting scenes.
  2. scGetEntrances: Spawn coordinates, facing, and camera bounds (isolating interiors on rooms maps).
  3. scGetExits: Conditional (exitId → scene, entrance) rows.
  4. scGetActorPlacements: Placed NPC and object rows (actor IDs 8+). Skipped rows keep their indices so IDs never shift.
  5. scGetCues: Top-down first-match interaction table (CUE_TALK, CUE_STEP, CUE_EXAMINE, PSYNERGY_ON_ACTOR, and more).
  6. scGetExitRegions: Map-edge exit checks.

Cue, exit, and script examples

Cues match top to bottom ("active until flag is set", or CONDITION_ALWAYS). Examine cues always match so opened chests report "but the chest was empty.":

/* Vault's mayor: setting the welcome flag lets a second talk fall through */
{ CUE_TALK, ACTOR_MAYOR, FLAG_VAULT_REVISIT_ISAAC_WELCOMED_BACK, SCRIPT_REF(scLogRoomsBWelcomeIsaacBack) },
{ CUE_TALK, ACTOR_MAYOR, CONDITION_ALWAYS, SCRIPT_REF(scLogRoomsBWarnOfThievesRevenge) },
/* Exit row and door script in vale.c */
SCENE_EXIT(VALE_TO_COTTAGE_ROOMS_A_NORTH, CottageRoomsA, COTTAGE_ROOMS_A_VALE_NORTH),

static void scValeEnterJennasGrandparentsHouse(void)
{
    sySoundPlay(SE_DOOR_OPEN);
    fdMapGridAnimateMetatiles(ValeGrandparentsDoorOpens, 49, 69);
    fdActorWalkTo(ACTOR_PARTY_LEADER, 326, 1126);
    syImportScriptSetExitRequest(VALE_TO_COTTAGE_ROOMS_A_NORTH);
}

Auto-clearing temp flags, shared helpers, and non-place scenes

In Kolima Forest, Isaac rolls a log into the river, returns from a battle to find it still there, then leaves and re-enters to find it reset on the bank
In Kolima Forest, Isaac rolls a log into the river, returns from a battle to find it still there, then leaves…
  • Temp flags: Each scene #defines local names at the top of its .c file for the 256 scene-temp flags (cleared on every scene load) and 256 area-temp flags (cleared when entering a different area). Battles clear neither range.
  • Shared overlay code (shared/): Because only one overlay resides in EWRAM at a time, helpers in shared/ are #included into each overlay that uses them.
  • Rooms maps and multi-scene overlays: Same-style interiors share one rooms map (cottage_rooms_a.c, log_rooms_b.c) separated by camera bounds. Related dungeons share one overlay (crossbone_isle.c), and different story phases can pair two overlays with one map.
  • Non-place scenes: title.c, file_screen.c, and battle_arena.c are ordinary overlays in ScenesWork.

Clear Data passwords (file_screen.c)

To carry a cleared TBS save into The Lost Age without a link cable, file_screen.c packs save data into three tiers. Bronze stores levels, Djinn, 1 byte of story flags, and a Psynergy-item bitmask. Silver adds base stats. Gold drops the separate Psynergy-item bitmask in favour of all 15 inventory slots per character, stack quantities, and coins. Every tier is encoded in five steps:

  1. Append a CRC-16 over the payload bytes.
  2. XOR every preceding byte with the final byte so changing any single character avalanches the whole payload.
  3. Split the bitstream into 6-bit symbols.
  4. Insert a checksum symbol (sum of the previous 9 symbols) after every 9 symbols, and add each symbol's position offset.
  5. Map symbols onto an alphabet that omits look-alikes (I, l, 1, O, o, and 0). Japanese editions use hiragana instead.

Source files

src/scene/

FileDescription
alpine_crossing_lama_temple.cThe Alpine Crossing (SceneIdAlpineCrossing) and Lama Temple (SceneIdLamaTemple), two places on Silk Road west of Xian that share this overlay.
altin.cAltin, the mining village north of the Alpine Crossing, in two scenes that share this overlay and the area name Altin: the village outdoors (SceneIdAltin), and its inn, shops and houses (SceneIdCottageRoomsD), a rooms map each in its own camera box.
altin_peak.cAltin Peak, the mine under Altin that the villagers and the Alpine Crossing's signpost call Altin Mine.
altmiller_cave.cAltmiller Cave, north of Tolbi, where the party finds Babi while all of Tolbi searches for him during Colosso (babi_palace.c).
babi_lighthouse.cBabi Lighthouse, the half-built tower north of Lalivero, and the road up to it.
babi_palace.cBabi's Palace in Tolbi, and the court before its door.
battle_arena.cThe Battle Arena, the hall Isaac walks into when Battle is chosen on the File Screen with a save that has a Djinni.
bilibin.cBilibin, the Bilibin Treasury and the Bilibin Barricade, three scenes that share one overlay; the getters pick each scene's tables by MainRoutineStateWork.next.
bilibin_cave.cThe Bilibin Cave Entrance and Bilibin Cave are two areas between Bilibin and Imil that share this overlay.
colosseum_azart_match.cColosseum Final 1 (SceneIdColosseumAzartMatch) is the site of the first finals match, where Isaac races Azart through four stages to the arena and fights him there.
colosseum_entrance.cTolbi's colosseum, where Colosso is fought, in three scenes.
colosseum_navampa_match.cColosseum Final 3 (SceneIdColosseumNavampaMatch) is the site of the last finals match, where Isaac races Navampa of Gondowan through six stages to the arena and fights him there.
colosseum_satrage_match.cColosseum Final 2 (SceneIdColosseumSatrageMatch) is the site of the second finals match, where Isaac races Satrage through five stages to the arena and fights him there.
cottage_rooms_a.cCottage rooms A (SceneIdCottageRoomsA) is a rooms map drawn as cottages.
cottage_rooms_b.cCottage rooms B (SceneIdCottageRoomsB) holds the insides of Vale's wooden houses: Isaac's home, Vale's inn, the forge and Kraden's study, and one room of Babi's Palace in Tolbi drawn in the same style.
cottage_rooms_c.cCottage rooms C (SceneIdCottageRoomsC) is a rooms map drawn as cottages, all of them inside Bilibin's buildings, whose area name is Bilibin.
crossbone_isle.cCrossbone Isle, the island of puzzles off the coast that the party can reach from the World Map, and the cave beneath it that winds down nine floors to Deadbeard's Pirate Ship.
crossbone_isle_keys.cThree of the side rooms of Crossbone Isle Cave, the cave beneath Crossbone Isle, with four chests each.
crossbone_isle_stepping_stones.cFive of the side rooms of Crossbone Isle Cave, the cave beneath Crossbone Isle.
file_screen.cThe File Screen overlay, the first screen after the title.
fuchin_temple.cFuchin Temple's grounds, and the rooms map that shares its overlay.
goma_cave_entrance.cGoma Cave Entrance (SceneIdGomaCaveEntrance), the foot of the cliffs in the Goma Range between Vault and Bilibin, where Ivan joins the party.
goma_cave_pillar.cGoma Cave (SceneIdGomaCavePillar), the middle floor of the cave in the Goma Range that the party passes through between Vault and Bilibin.
goma_cave_pond.cGoma Cave (SceneIdGomaCavePond), the room below the room of two pillars and a stump, in the cave in the Goma Range that the mayor of Vault tells the party to pass through on the way to Bilibin.
goma_cave_stream.cThe first and last rooms of Goma Cave, the cave in the Goma Range between Vault and Bilibin: SceneIdGomaCaveStream and SceneIdGomaCaveBridge, both under the area name Goma Cave.
gondowan_cave.cGondowan Passage and Gondowan Cave, south and south-east of Tolbi.
hammet_palace.cHammet Palace (SceneIdHammetPalace), the rooms of Lord Hammet's palace in Kalay.
imil.cImil, the snowbound village north of the Goma Range, near the lighthouse that long ago held the Water of Hermes, and its houses and Sanctum.
imil_fuchin_falls.cImil Falls Cave, the little cave behind Imil's frozen falls, and Fuchin Falls Cave, the grotto behind the waterfall at Fuchin Temple where Master Nyunpa sends the party for its test.
kalay.cKalay, the merchants' town Lord Hammet founded, the front of his palace, and the tunnel beneath them: four places in six scenes.
kalay_tolbi_docks.cKalay Docks and Tolbi Docks, the two ends of the ship's crossing of the Karagol Sea, and the cottage at each (SceneIdKalayDocks, SceneIdTolbiDocks and SceneIdCottageRoomsE, the rooms map that holds both cottages' rooms).
kolima.cKolima's overlay, which holds three scenes.
kolima_forest_cliff.cKolima Forest (SceneIdKolimaForestCliff), the third of the forest's five scenes, between SceneIdKolimaForestGlade and SceneIdKolimaForestFloodgate.
kolima_forest_entrance.cKolima Forest (SceneIdKolimaForestEntrance), the first of the forest's five scenes, entered from the World Map (KOLIMA_FOREST_ENTRANCE_WORLD_MAP).
kolima_forest_floodgate.cKolima Forest's pool above the floodgate (SceneIdKolimaForestFloodgate), the fourth of the forest's five scenes.
kolima_forest_glade.cKolima Forest (SceneIdKolimaForestGlade), the second of the forest's five scenes, on the party's way to Tret between SceneIdKolimaForestEntrance and SceneIdKolimaForestCliff.
kolima_forest_tree.cKolima Forest (SceneIdKolimaForestTree), the last of the forest's five scenes, where Tret and Laurel, the spirits of the holy trees, stand.
lacquer_rooms_b.cThe insides of Xian (SceneIdLacquerRoomsB): its houses, its inn and its shop, red lacquered rooms laid side by side on one rooms map, and the small bedroom behind Master Feh's school.
lalivero.cLalivero (SceneIdLalivero), the walled desert town by Babi Lighthouse, with a gate in its north and south walls and a stone obelisk in a pool at its middle.
lamakan_desert.cLamakan Desert, south of Lama Temple: four scenes that share one cue table, built around a heat gauge and the secrets Reveal uncovers.
lemurian_ship.cThe gangway out over the sea behind the shack in the north-west of Lalivero, where the Lemurian ship lies sunk (SceneIdLemurianShip, the area name Lemurian ship), and the game's last scene.
log_rooms_a.cLog rooms A (SceneIdLogRoomsA), a rooms map drawn in logs, holds only Vault's rooms while Hammet's Shaman's Rod is missing and just after it is found: the insides of the town's houses, shops and inn, the inn's attic and its loft.
log_rooms_b.cLog rooms B (SceneIdLogRoomsB), a rooms map drawn in logs, holds only Vault's rooms: the town's houses, shops and inn once the party has reached Kalay.
log_rooms_c.cLog rooms C (SceneIdLogRoomsC), a rooms map drawn in logs, holds only Kolima's rooms: the village's houses, shops and inn.
lunpa.cLunpa, the town the righteous thief Lunpa founded, and the Lunpa Fortress Gates above it.
lunpa_fortress.cLunpa Fortress, the stronghold of the thief Dodonpa at the top of Lunpa, where he holds Hammet, the great merchant of Kalay, for ransom; and the cave and the cells under it, where Hammet is kept.
mccoy_palace.cMcCoy's Palace in Bilibin, the home of the town's chief.
mccoy_palace_grounds.cThe grounds of McCoy's Palace, at the top of Bilibin.
mercury_lighthouse.cMercury Lighthouse, the lighthouse of water north of Imil that Mia and the Mercury Clan guard: the ground outside its door (SceneIdMercuryLighthouseExterior) and three of its upper scenes (SceneIdMercuryLighthouseLower, SceneIdMercuryLighthouseMiddle and SceneIdMercuryLighthouseUpper).
mercury_lighthouse_aerie.cLighthouse Aerie (SceneIdMercuryLighthouseAerie), the top of Mercury Lighthouse, where its beacon burns.
mercury_lighthouse_entrance.cMercury Lighthouse (SceneIdMercuryLighthouseEntrance), the lighthouse's ground floor inside its door, which leads up to its floors (mercury_lighthouse.c).
mogall_forest.cMogall Forest (SceneIdMogallForestSign to SceneIdMogallForestSidePaths), the endless woods between Fuchin Temple and Xian.
rock_rooms.cThe rooms inside Lunpa's buildings, and the house beside Suhalla Gate (SceneIdRockRooms).
sanctum.cThe Sanctum, the room of the Healers that Vale, Vault, Bilibin, Xian and Altin each have (SceneIdSanctum).
shared/actor_depth.cTunnel Ruins and Venus Lighthouse: blocks the leader can stand beside, behind or on.
shared/actor_facing.cAltin Peak, Bilibin, Imil, Kolima, McCoy's palace and garden, Sol Sanctum's Elemental Star room, and Vale's Kraden, Babi, home and rooms scenes: people who turn to keep someone in view.
shared/actor_find_at_metatile.cBilibin, its cave, Kalay and Sol Sanctum's entrance: who stands on a metatile.
shared/actor_find_at_position.cColosseum Final 1, 2 and 3, and Venus Lighthouse: who stands at a place.
shared/actor_heading.cKalay and Venus Lighthouse's aerie: people who look about.
shared/actor_wait_below_height.cGoma Cave Entrance and Goma Cave, and the Lamakan Desert.
shared/actor_wait_until_landed.cBabi Lighthouse and Venus Lighthouse.
shared/balance_heights.cThe balances of the Tunnel Ruins and Venus Lighthouse, two platforms that weigh what stands on them against each other.
shared/beacon_spark_script.cThe Mercury and Venus Lighthouse aeries: the sparks that circle the beacon's light.
shared/color_mode_cycle.cCottage Rooms B and the world map, where nothing reaches it.
shared/colosso_arena.cThe sites of the three Colosso finals matches (Colosseum Final 1, 2 and 3): the end of the race, where Isaac and his opponent meet in the arena and fight.
shared/colosso_finish.cThe sites of the three Colosso finals matches (Colosseum Final 1, 2 and 3): the end of the race at the arena, where each warrior walks up to a prize and holds it up.
shared/colosso_finish_scripts.cThe sites of the three Colosso finals matches (Colosseum Final 1, 2 and 3): the warriors' scripts as each reaches his prize at the finish: he holds it up (scColossoRaisePrize) and holds a pose for two and a half seconds, both arms raised, then turns south.
shared/colosso_guide.cThe sites of the three Colosso finals matches (Colosseum Final 1, 2 and 3): what a stage's guide uses to describe the stage.
shared/colosso_hex_string.cThe sites of the three Colosso finals matches (Colosseum Final 1, 2 and 3): a number written as hexadecimal text, which nothing calls.
shared/colosso_item_icon.cThe three Colosseum finals matches, and three of Crossbone Isle Cave's side rooms (CrossboneIsleKeys, CrossboneIsleStatues and CrossboneIsleBane): an actor drawn as an item's menu icon, such as the two prizes at a finals match's arena or the keys in CrossboneIsleKeys.
shared/colosso_lettering.cThe sites of the three Colosso finals matches (Colosseum Final 1, 2 and 3): the large lettering a visit opens with, Lend a Hand! for the friends' turns, and for the race The 1st Match (or 2nd or 3rd), 3, 2, 1 and GO; and WIN or LOSE once the match's battle is over.
shared/colosso_lettering_scripts.cThe sites of the three Colosso finals matches (Colosseum Final 1, 2 and 3): the scripts that move the lettering's title, GO and WIN (scColossoStartLettering).
shared/colosso_lettering_tables.cThe sites of the three Colosso finals matches (Colosseum Final 1, 2 and 3): where each lettering picture's palette starts, and the scripts that move the count (3, 2, 1) and LOSE (scColossoStartLettering).
shared/colosso_map_state.cThe sites of the three Colosso finals matches (Colosseum Final 1, 2 and 3): a helper for the race gauge that no scene calls.
shared/colosso_match_result.cThe sites of the first two Colosso finals matches (Colosseum Final 1 and 2): the arena after the battle.
shared/colosso_path_opponent.cThe sites of the three Colosso finals matches (Colosseum Final 1, 2 and 3): the opponent who races Isaac by running a recorded path, and the race gauge that shows how near each of them is to the finish.
shared/colosso_prize_scripts.cThe sites of the three Colosso finals matches (Colosseum Final 1, 2 and 3): the scripts of the raised prize and its sparkles (colosso_finish.c).
shared/colosso_push.cThe sites of the three Colosso finals matches (Colosseum Final 1, 2 and 3): the rocks, weights and pillars on a stage that Isaac pushes, and finding what stands ahead of him.
shared/colosso_setup.cColosseum Final 1 and 3: setting up a race against the opponent, with the race gauge at the top of the screen and the opponent running a recorded path (colosso_path_opponent.c).
shared/colosso_solo.cWhere Isaac's friends cheer from, shared by the three Colosso finals matches (Colosseum Final 1, 2 and 3).
shared/colosso_state.cThe sites of the three Colosso finals matches (Colosseum Final 1, 2 and 3): the state of the shared Colosso code, in the order each scene's memory lays it out.
shared/colosso_task.cThe sites of the three Colosso finals matches (Colosseum Final 1, 2 and 3): the large lettering a race starts with.
shared/colosso_tour.cThe sites of the three Colosso finals matches (Colosseum Final 1, 2 and 3): how the guide's tour begins and ends.
shared/field_effect_advance.cBabi Lighthouse, Crossbone Isle, Tret's rooms, the Tunnel Ruins and Venus Lighthouse, and the main image's Carry (script_commands_whirlwind.c, with EFFECT_SPAWN_RESIDENT), whose landing ring of particles it moves.
shared/field_effect_create.cPlacing a still actor of a given sprite, shared by twenty-three scenes: a black, translucent mask in front of the backgrounds, which the scenes set where something sinks or drops out of sight (a pillar into the floor, Isaac through a hole), and an invisible actor sorted under the others.
shared/field_effect_duration_scripts.cTwenty-four scenes: the three lifetimes fdEffectSpawn (field_effect_spawn.c) gives its effects through FieldEffectDurationScripts.
shared/field_effect_radial.cThe Tunnel Ruins and Venus Lighthouse: the ring of dust a carved stone or a pillar raises as it lands on a stack.
shared/field_effect_spawn.cTwenty-four scenes, and the main image's field Psynergy (script_commands_whirlwind.c, with EFFECT_SPAWN_RESIDENT): fdEffectSpawn, which places a small effect moving at a velocity, its script one of FieldEffectDurationScripts and its options chosen by the EFFECT_USE_ flags.
shared/field_effect_vertical.cVale and its home, storm and Babi scenes, Sol Sanctum's eruption, the World Map and Venus Lighthouse's aerie: the golden ring that rises around someone using Psynergy, as the main image's script_commands_arcs.c draws it.
shared/floating_nut.cCrossbone Isle, Kalay, Kolima Forest (SceneIdKolimaForestGlade), Lunpa, McCoy's palace garden, Mogall Forest and Vale: a Nut floating where it lies, until it is taken.
shared/floating_platform.cMercury and Venus Lighthouses' aeries.
shared/glint_twinkle_script.cMercury Lighthouse, its entrance and Venus Lighthouse: the glints that twinkle in rising water and spray.
shared/golden_ring.cVale and the World Map: the golden ring that rises around someone using Psynergy.
shared/hermes_water_bottle.cThe bottle of Hermes' Water: Mercury Lighthouse's fountain fills the Empty Bottle, and pouring it on Tret in Kolima Forest empties it again.
shared/ice_key_headings.cImil's ice: the way the leader turns while he slides on it, by the held directions.
shared/item_equip.cColosseum Final 1, 2 and 3, and Goma Cave Entrance: giving a character an item and putting it on.
shared/item_icon_grow_script.cThe Sanctum and Sol Sanctum's Elemental Star room: how an Elemental Star's icon appears.
shared/kalay_fallback_entrances.cThe entrances Kalay's scene files give for a scene they do not hold: one way in at (168, 168), facing south, with no camera bounds.
shared/kolima_blink.cKolima and Kolima Forest (SceneIdKolima and SceneIdKolimaForestEntrance): the sparkling dust that falls when Tret's curse strikes.
shared/kolima_curse_dust.cKolima and Kolima Forest (SceneIdKolima and SceneIdKolimaForestEntrance): the sparkling dust that falls over the party when Tret's curse strikes ("Watch out!
shared/kolima_grow.cKolima and Kolima Forest (SceneIdKolima, SceneIdKolimaForestEntrance and SceneIdKolimaForestTree): an effect that stretches as it travels.
shared/kolima_jump.cKolima Forest (SceneIdKolimaForestEntrance and SceneIdKolimaForestCliff): the hop east from the bank onto the log floating in the river (ACTOR_RIVER_LOG, which each scene names).
shared/kolima_palette.cKolima Forest, while Tret's curse lasts (FLAG_KOLIMA_CURSE_LIFTED clear): the forest's colours turned redder and darker, and both sets of colours kept for the script where the curse lifts.
shared/kolima_sparkle_burst_script.cKolima and Kolima Forest: a falling sparkle of Tret's curse that strikes a Psynergy field over the party.
shared/kolima_squash.cKolima and Kolima Forest: the party quivers under Tret's curse as it falls, and is set back to its own size as each collapses.
shared/leader_hop.cThe leader's leap from stump to stump in Fuchin Falls Cave; Fuchin Temple keeps it for three hops nothing calls.
shared/leader_slide_on_ice.cImil's ice, in the town and in Imil Falls Cave: the leader slides across it a metatile at a time the way the pad points.
shared/leave_by_exit.cTimber Rooms A (Suhalla) and Timber Rooms B and C (Lalivero).
shared/lemurian_ship_ripple.cThe Lemurian ship: the ripple of the water, a wave in each axis of the background's scrolling, changed line by line in the horizontal blank.
shared/log_ride.cFuchin Falls and Vale's cave: the logs that float the leader across a pool.
shared/map_grid_panel.cCrossbone Isle Cave (SceneIdCrossboneIsleSteppingStones to SceneIdCrossboneIsleDragonStatue) and Kolima Forest (SceneIdKolimaForestFloodgate): drawing a stretch of the layout, in one of the states kept elsewhere in it (such as the water raised or not), straight into the background's tile map.
shared/mercury_lighthouse_arrive.cMercury Lighthouse and its entrance: arriving on a floor through one of its sparkling passages.
shared/mercury_lighthouse_column.cMercury Lighthouse and its entrance, once Ply has been cast on the goddess: standing on the pool's heart (METATILE_BEHAVIOR_MERCURY_LIGHTHOUSE_POOL_HEART) gives the leader three lights, shown as a column of light over them.
shared/mercury_lighthouse_column_tables.cThe tables of mercury_lighthouse_column.c, which Mercury Lighthouse and its entrance both hold.
shared/mercury_lighthouse_lights.cMercury Lighthouse and its entrance: the lights that carry the leader over the pools (mercury_lighthouse_column.c), made again when the party comes back from a battle.
shared/mercury_lighthouse_palette_cycle.cMercury Lighthouse and its entrance: the shimmer that runs up the pools' colours once Ply has been cast on the goddess (FLAG_MERCURY_LIGHTHOUSE_HEART_HONORED).
shared/mercury_lighthouse_sparks.cMercury Lighthouse and its entrance: the trail of sparks the leader leaves while passing between floors.
shared/mercury_lighthouse_waterfall.cMercury Lighthouse and its entrance: leaving a room by walking into one of its waterfalls.
shared/mind_read.cKolima and Log Rooms A: Mind Read cast in a script.
shared/position_distance.cThe distance between two actors, for the scenes where someone reacts to who is near: the Mercury and Venus Lighthouse aeries, Tolbi, Vault, Venus Lighthouse, Xian and every scene with pushed_actor.c.
shared/psynergy_rings.cVale in the storm and Venus Lighthouse's aerie: the golden ring that rises around someone using Psynergy in a script, with a sound each scene names (PSYNERGY_RINGS_SOUND).
shared/pushed_actor.cSeventeen scenes with things the leader pushes (Altmiller Cave, Babi Lighthouse, Crossbone Isle and its rooms, Goma Cave's pillar room, Gondowan Cave, Kolima Forest (SceneIdKolimaForestEntrance to SceneIdKolimaForestCliff), Lunpa's fortress, Mercury Lighthouse and its entrance, Mogall Forest, the Tunnel Ruins, Vale and its cave): things pushed a metatile at a time, such as stone pillars, and logs and other large things that roll until they meet something, redrawn into the map grid where they stop.
shared/pushed_actor_direction_steps.cThe metatile ahead of a pushed thing for each of sixteen headings, one metatile (16 pixels) along x or z, which every scene with pushed things holds.
shared/pushed_actor_fill_rectangle.cThe pushed-actor scenes (pushed_actor.c) and Venus Lighthouse's unused copy: a rectangle of metatiles given one metatile behavior.
shared/pushed_actor_push.cThe plain push of Altmiller Cave's fallen columns and Crossbone Isle's two logs on the grass.
shared/pushed_actor_tables.cThe tables of pushed_actor.c, which every scene with pushed things holds: the metatile ahead for each of sixteen headings, and the six rectangles.
shared/scene_entrances_default.cThe entrances a cave or island scene file gives for a scene it does not hold: one way in at (120, 152), facing south, with no camera bounds.
shared/scene_entrances_mapless.cThe title and the File Screen, scenes that are no place (empty_map): one entrance at the map's corner, which nothing walks from.
shared/script_psynergy.cVale, its home, storm and Babi scenes, Sol Sanctum's eruption and Venus Lighthouse's aerie: Psynergy shown in a script.
shared/sol_sanctum_elemental_star_light_tables.cSol Sanctum's Elemental Star room and its eruption: each floating light's drift, swing, direction and pulse, by its index, as sol_sanctum_elemental_star_lights.c reads them.
shared/sol_sanctum_elemental_star_lights.cSol Sanctum's Elemental Star room and its eruption: the ten lights that float in the room, actors in a row from the first the map passes, each pulsing and drifting on its own path, read by its index from the tables of sol_sanctum_elemental_star_light_tables.c: SolSanctumLightDrift, SolSanctumLightSwing, SolSanctumLightDirection, SolSanctumLightMaxScales and SolSanctumLightScaleSteps.
shared/sol_sanctum_rumble.cThe initialization that two rooms of Sol Sanctum share, SceneIdSolSanctumMaze and SceneIdSolSanctumCorridor.
shared/sol_sanctum_star_metatiles.cThe Elemental Star room's pillars opening, nine steps of a 3-by-4 picture as each star's pillar rises; the eruption keeps a copy it never plays.
shared/sol_sanctum_star_room_entrances.cThe one way into the Elemental Star room, which its eruption keeps: the party comes down the stairs at its north side, facing south.
shared/squash_and_stretch.cTolbi's ship deck and Vale's storm: things that throb.
shared/stump_leap.cThe stump Move pushes off a ledge into the water, in Goma Cave Entrance and Goma Cave.
shared/tolbi_ship_rowing.cThe ship that sails from Kalay to Tolbi: how strongly each passenger rows, which its mast scene and the World Map's crossing both read.
shared/tremble_script.cThe trembling of Imil's freezing young man and of the Tolbi ship's lookout once the sea monster has landed beside him.
shared/vale.cVale's storm and Vale's homes: going indoors through a door.
shared/vault_bone.cVault's inn, before and after the thieves are caught: the Bone on the barrel beside the girl at the inn, who offers the party "leftover bones from dinner" for the dog in town.
shared/vault_djinn.cVault and its rooms: Ivan hands back Isaac's Djinni before he leaves the party.
shared/vault_door_exit.cVault, on both visits: Isaac walking in through a house's open door.
shared/vault_door_metatiles.cVault's doors opening, on both visits (one map): two ticks of map metatiles each, named for the room the door opens into (scVaultEnterGemOwnersHouse and the rest).
shared/vault_doors.cVault, before and after the thieves are caught: Isaac opening a door of the town and going in.
shared/vault_item_icon.cVault's inn, before and after the thieves are caught: an item lying in the room drawn as its menu icon (the Bone on the barrel, at (568, 16, 672)).
shared/vault_jail_door.cVault, before and after the thieves are caught: the jail's door.
shared/vault_leader_beside_bone_flag.cVault's inn, before and after the thieves are caught (log_rooms_a.c and log_rooms_b.c): whether the leader stands beside the Bone lying on the barrel next to the girl at the inn.
shared/vault_map_metatiles.cVault, before and after the thieves are caught: the Sanctum's double door in the cliff in the west of town, which opens in two ticks as the leader walks into it facing north.
shared/vault_nearby.cVault, before and after the thieves are caught: the two villagers who walk about together (ACTOR_BOY_ROUND_THE_WELL and ACTOR_GIRL_ROUND_THE_WELL, as both scenes name them).
shared/vault_range.cVault, before and after the thieves are caught: villagers who walk about stop when someone is close in front of them.
shared/vault_talk.cVault and its interiors: a villager's thought read with Mind Read.
shared/vault_toggle.cVault's rope bridge, before and after the thieves are caught.
shared/vault_well_routes.cVault, on the first visit (vault.c) and once the party has reached Kalay (vault_revisit.c): the two children who walk round the well.
ship_rooms.cShip rooms (SceneIdShipRooms): the rooms below the decks of the Tolbi-bound ship, on its voyage across the Karagol Sea from Kalay to Tolbi.
sol_sanctum_corridor.cSol Sanctum (SceneIdSolSanctumCorridor), a passage that joins two rooms of SceneIdSolSanctumReliefs (sol_sanctum_entrance.c).
sol_sanctum_elemental_star_room.cElemental Star Room (SceneIdSolSanctumElementalStarRoom), the heart of Sol Sanctum, reached through the portal in the Luna and Sol rooms (SceneIdSolSanctumLunaSolRooms).
sol_sanctum_entrance.cThe way into Sol Sanctum: the mountainside before its door, and the first rooms inside, where Isaac, Garet and Jenna follow Kraden on the morning the story begins.
sol_sanctum_eruption.cElemental Star Room (SceneIdSolSanctumEruption), the chamber of SceneIdSolSanctumElementalStarRoom (sol_sanctum_elemental_star_room.c) as it collapses once the Mars Star is taken.
sol_sanctum_luna_sol_rooms.cSol Sanctum (SceneIdSolSanctumLunaSolRooms), the room of Sol and the room of Luna at the heart of the sanctum.
sol_sanctum_maze.cSol Sanctum (SceneIdSolSanctumMaze), the room that holds the second Small Jewel.
sol_sanctum_psynergy_stone.cSol Sanctum (SceneIdSolSanctumPsynergyStone), a room off the statue room (SceneIdSolSanctumStatue) that holds a Psynergy Stone.
sol_sanctum_statue.cSol Sanctum (SceneIdSolSanctumStatue), the room of what Kraden calls the statue puzzle, off the Luna and Sol rooms (SceneIdSolSanctumLunaSolRooms) and leading on to a room with a Psynergy Stone (SceneIdSolSanctumPsynergyStone).
stone_rooms.cStone rooms (SceneIdStoneRooms), a rooms map drawn in stone.
stucco_rooms_a.cStucco rooms A (SceneIdStuccoRoomsA) is a rooms map drawn in stucco holding every house of Kalay and its inn, each entered by its own door in the town (kalay.c) and left by the exit of the same name.
stucco_rooms_b.cStucco rooms B (SceneIdStuccoRoomsB) is a rooms map drawn in stucco holding Tolbi's houses, its weapon and armor shop, its inn and the Tolbi Sanctum, each entered by its own door in the town (tolbi.c) and left by the exit of the same name.
suhalla.cSuhalla, the desert village of Gondowan at the edge of the Suhalla Desert.
suhalla_desert.cSuhalla Desert, the desert of sandstorms between Suhalla and Suhalla Gate, which the party crosses with Iodem after Babi's audience while Sheba is missing in it.
suhalla_gate.cSuhalla Gate and Gateway Cave, the rocky pass Babi's soldiers guard on the way from the Suhalla Desert to Lalivero and Venus Lighthouse.
timber_rooms_a.cThe insides of Suhalla's buildings, rooms of timber walls and woven floors laid side by side on one map (SceneIdTimberRoomsA).
timber_rooms_bc.cLalivero's rooms are two rooms maps drawn in timber in one overlay, Timber rooms B and C.
title.cThe Title (SceneIdTitle): the screens between scenes that are not on a map, chosen by entrance.
tolbi.cTolbi, the town Babi rules, where Colosso, a festival of warriors, is held each year in the colosseum.
tolbi_games.cTolbi's three games of chance, which the party can play whenever it is in town: Lucky Dice, Lucky Wheels and Tolbi Spring.
tolbi_ship_deck.cTolbi-bound Ship (SceneIdTolbiShipDeck), its deck: the ship that carries the party and a tour group bound for Colosso across the Karagol Sea from Kalay to Tolbi.
tolbi_ship_mast.cTolbi-bound Ship (SceneIdTolbiShipMast) is the top of the ship's mast, where the ship's lookout (ACTOR_LOOKOUT) keeps watch.
tree_rooms.cTret Tree's rooms (SceneIdTreeRooms): the hollow inside of Tret, the holy tree of Kolima Forest, where the party come to face his wrathful side.
tret_tree_branch.cTret Tree's branches (SceneIdTretTreeBranch): the outside of Tret, the holy tree of Kolima Forest, high up under open sky, with clouds drifting past above and the green of the forest far below (places/tret-tree-branch/map-0.png).
tunnel_ruins.cThe Tunnel Ruins run from the basement of Babi Lighthouse in Lalivero to the upper floors of Venus Lighthouse: the way on after the lighthouse's own base ends in a dead end.
vale.cVale by day (SceneIdVale), Isaac's village at the foot of Mt.
vale_cave.cVale Cave, the optional cave above Vale where Kite, a Jupiter Djinni, hides.
vale_eruption.cVale (SceneIdValeEruption) while Mt.
vale_kradens_cottage.cVale (SceneIdValeKradensCottage) is the part of the village around Kraden's cottage, by the fence that closes off the lands beyond.
vale_plaza.cVale (SceneIdValePlaza): the part of the village with the Psynergy Stone and the town gate, Vale's way out to the world.
vale_prologue.cVale on the stormy night (SceneIdValePrologue), the prologue, when Isaac and Garet are children.
vault.cVault (SceneIdVault), "the town at the heart of Angara", as the party first finds it after Mt.
vault_cave.cVault Cave, the optional cave under Vault that the party can explore once it comes back to the town (SceneIdVaultRevisit), with the Vambrace in a chest and Sap, the Venus Djinni, waiting outside its far end.
vault_revisit.cVault (SceneIdVaultRevisit), the town once the party has reached Kalay.
venus_lighthouse.cVenus Lighthouse, six scenes in one overlay: the approach outside, the floor the front door opens onto, and the four floors of the climb that ends in the Lighthouse Aerie at the top (venus_lighthouse_aerie.c).
venus_lighthouse_aerie.cLighthouse Aerie (SceneIdVenusLighthouseAerie), the top of Venus Lighthouse and the only scene of this overlay.
west_lunpa_cave.cWest Lunpa Cave (SceneIdWestLunpaCave, area name West Lunpa Cave), the cave between the World Map and Lunpa, with a gate across it, where the party meets Bunza on the way out of Lunpa with Hammet.
world_map.cThe World Map (SceneIdWorldMap), the one perspective map (map/world) that joins the areas, and the only scene of this overlay.
xian.cSceneIdXian, the village of Xian.

include/scene/

FileDescription
actor_polar_target.hVale's Psynergy sparkles and the main image's field Psynergy (script_commands_field_psynergy.c), each with its own move-target function.
actor_step.hOne step from an actor, for the scenes whose statues and pillars are pushed (Bilibin, its cave, Kalay, Sol Sanctum's entrance, the Vault's cave, Venus Lighthouse) and those of pushed_actor.c.
catch_nut.hThe Nuts floating in Vale, Kolima Forest, Mogall Forest, Kalay, Crossbone Isle, Lunpa and McCoy's Palace.
colosso_gauge.hThe Colosso race gauge's sprites and state.
colosso_guide.hWhat a stage's guide in the three Colosso finals matches shows (shared/colosso_guide.c): Isaac fading in on the stage to show the way across, and the blinking pointer that glides over the screen.
colosso_lettering.hThe large lettering of the three Colosso finals matches (shared/colosso_lettering.c).
colosso_push.hThe rocks, weights and stone pillars Isaac pushes on the stages of the three Colosso finals matches (shared/colosso_push.c).
colosso_setup.hThe race at the end of each Colosso finals match (shared/colosso_setup.c): the gauge at the top of the screen, and the opponent running a recorded path to the prize.
colosso_solo.hLending a hand in the three Colosso finals matches (shared/colosso_solo.c): Garet, Ivan or Mia looks round the stages alone, and the stages' guides offer them a place to cheer from.
field_effect_spawn.hThe small effects twenty-four scenes scatter, each moving at its own velocity, growing and spinning (shared/field_effect_spawn.c).
floating_nut.hA Nut floating where it lies until it is taken, in Vale, Kolima Forest, Mogall Forest, Kalay, Crossbone Isle, Lunpa and McCoy's palace garden (shared/floating_nut.c).
frost_glint.hAltin Peak's frozen puddle and the main image's Frost (script_commands_frost.c), each with its own colour-mode function.
golden_ring.hThe particles that rise round a glowing actor, in Vale and on the World Map (shared/golden_ring.c).
goma_cave.hWhat the scenes of Goma Cave share: the stump that leaps out of the way at the Goma Cave Entrance (goma_cave_entrance.c) and in the cave's first room (goma_cave_stream.c), and the area flags of the room of two pillars and a stump (goma_cave_pillar.c) and the room below it (goma_cave_pond.c).
import.hThe main-image headers that declare the functions scene overlays import, for the overlays that call them outside script.h.
kalay.hWhat Kalay (kalay.c), whose scripts set it, and Lord Hammet's palace (hammet_palace.c), where Layana answers it, share.
kolima.hWhat Kolima's two scenes of the falling curse share: the curse dust, the party's Psynergy fields, and the scripts of both (kolima.c and kolima_forest_entrance.c).
kolima_curse_dust.hThe dust of Tret's curse that falls about the party in Kolima and at Kolima Forest's entrance (shared/kolima_curse_dust.c).
kolima_palette.hKolima Forest's colours under Tret's curse, redder and darker, and the healthy ones kept for when the curse lifts (shared/kolima_palette.c).
log_rooms_a.hThe metatile behaviors of the layout of Vault's houses, shops and inn, which SceneIdLogRoomsA (log_rooms_a.c) and SceneIdLogRoomsB (log_rooms_b.c) both answer, and the stock and inn numbers their counters open.
mercury_lighthouse.hIncludes script.h with FIELD_STAGED_ACTOR_IMPORTS defined, so a scene that includes this before any other header (mercury_lighthouse.c) gets the pushed actor imports.
mercury_lighthouse_column.hThe scripts of the pool's metatiles in Mercury Lighthouse and its entrance (shared/mercury_lighthouse_column.c).
mercury_lighthouse_lights.hThe lights the pool of Mercury Lighthouse and its entrance give the leader, which hold him up as he hops across the water (shared/mercury_lighthouse_lights.c and shared/mercury_lighthouse_column.c).
orbit.hA floating Nut's actor and sprite as scFloatNut (shared/floating_nut.c) sees them: ACTOR and SPR with the actor's fields it borrows to keep the spot the Nut sways round and how far through the sway it is, and the sprite's attribute bits it sets one by one.
party_nod.hThe whole party nodding at once, as Kolima's and Kolima Forest's scripts have Isaac, Garet, Mia and Ivan agree together.
pushed_actor.hThe pushed actors' movement probes and rectangles.
script_psynergy.hPsynergy shown in a script, as Vale's villager shows it: "Behold, the power of Psynergy!" (shared/script_psynergy.c).
sleep_z.hThe letters Z that drift up from a sleeper, Garet's grandfather in Vale and Isaac after the last Colosso match, each scene moving its own.
sol_sanctum_elemental_star_lights.hThe lights that float in Sol Sanctum's Elemental Star room, before and during the eruption (shared/sol_sanctum_elemental_star_lights.c).
sparkle_warp.hThe warp in a column of sparkles by which Saturos and Alex leave and arrive on Mercury Lighthouse's aerie (mercury_lighthouse_aerie.c), and by which Alex arrives in Sol Sanctum's Elemental Star room (sol_sanctum_elemental_star_room.c).
squash_and_stretch.hThe squash and stretch that people standing about play now and then (scSquashAndStretch).
title.hWhat the Title (title.c) and the File Screen (file_screen.c) share: the Golden Sun logo and the sprites of its lettering.
tolbi_ship.hWhat the Tolbi-bound Ship's deck (tolbi_ship_deck.c), the rooms below it (ship_rooms.c), its mast (tolbi_ship_mast.c) and the World Map's voyage (world_map.c) share.
vale.hWhat Vale (vale.c) and Vale in the storm (vale_prologue.c), which draw the same village, share.
vault.hThe metatile behaviors of Vault's layout, which SceneIdVault (vault.c) and SceneIdVaultRevisit (vault_revisit.c) both draw and answer.
vault_item_icon.hAn item lying on the floor of Vault's rooms, drawn as its menu icon (shared/vault_item_icon.c).
vault_range.hVillagers who walk about and stop when someone is close in front of them, in Vault and Tolbi (shared/vault_range.c).
walk_into_leader.hA companion and the party leader: placed on the leader, walked toward the leader, or walked into the leader and taken off the map, as the scenes' scripts gather the party back into one walking sprite.