World, Scenes & Maps
One shared field engine runs everything outside battle and menus in Golden Sun: The Lost Age.
Towns, dungeons, the World Map, sailing and flying the Lemurian Ship, the Title
and File Screens, and the Battle Arena lobby all run on the same engine in
field/. While Felix explores Daila or pushes pillars across the Dehkan
Plateau, the field engine drives movement, collision, camera tracking, and input
while asking the active scene overlay in scene/ for local people, dialogue
cues, exits, and cutscenes.
The Lost Age keeps The Broken Seal's field design and adds several new components: a map-preparation hook before fade-in, carrier-rider physics for moving platforms, four-grid maps, 12 new field Psynergies, and the Lemurian Ship.
Field engine and the request loop

The field engine is a single function, fdEngineRun in
field/field_engine_run.c. It boots each scene in a fixed dependency order:
load the map and tilesets, run TLA's new scPrepareMap hook immediately
after map load (before camera setup) to adjust tiles or palettes from story
flags, select encounter zones, spawn up to 64 actors, run scInit, and fade in.
Once the scene is running, fdEngineRun loops on sySynch(1) and services
prioritised field requests recorded in
FIELD_STATE (RamHeapSlots->fieldState):
Every interaction starts between ticks and can block for as long as it requires. Unlike The Broken Seal, TLA services step cues and push triggers before random battles, so that a random encounter never interrupts a pressure plate or doorway mid-step.
Scenes, areas, cues, and exits

The world spans 325 scenes in ScenesWork (field/scenes.s), grouped into
97 areas and backed by 114 -Os overlays. Each scene row binds its
overlay, map, area, and flags independently. Building interiors pack side by
side onto shared 128×128 rooms maps separated by entrance camera bounds (for
example, champa_rooms.c, which also holds islet houses reached via entrances 8
and 9).
- Top-down cues: Whenever Felix talks, examines something, steps on a
trigger tile, or casts field Psynergy,
fdEngineRunscans the overlay's cue table from top to bottom and runs the first matching row. Setting a story flag therefore advances NPC dialogue without explicit state machines. - Conditional exits (
EXIT_FLAG_NONE): Exit rows map doorways to(scene, entrance)destinations based on story flags, terminated by TLA'sEXIT_FLAG_NONE(-1) default row. For instance, the Lemurian Ship's cabin exit resolves to three different places as the story moves forward.
Actors, carrier-rider physics, and movement modes

Every independent entity on the field is an
actor in ActorsWork, with up to
64 active slots per scene and 80 scene actor IDs. Each actor runs a
non-blocking SC_* bytecode actor script stepped once per tick by
fdActorUpdateAllOnField. Immediately after that pass, TLA runs
fdActorMoveWithCarriers, which carries riding actors smoothly atop moving
platforms and floating logs.
Player control is itself the leader's actor script, with eased acceleration and
braking, an 8-pixel collision probe with angled wall sliding, and talk
targeting within 32 px (beyond 11 px, roughly in front). TLA expands
SC_PLAYER into dedicated movement-mode scripts
(fdActorStartMovementModeScript) for walking, crossing ropes and tightropes,
burrowing as Sand, Hovering, walking the World Map, and sailing or flying the
Lemurian Ship.
Four-grid maps and height-based collision

Maps are 128×128 grids of 16×16-pixel metatiles drawn across three GBA background layers (ground, walls, and roofs), interleaving actors behind roofs via hardware priority overrides.
TLA adds a fourth grid per map (grid_shape.tsv) for dedicated terrain
flags alongside tile pictures (grid_picture.tsv), metatile behaviours
(grid_behavior.tsv), and ground height shapes (shape_grid.tsv). Collision
remains primarily height-based: Felix can step up at most 8 pixels and down at
most 12 pixels.
Twelve new field Psynergies, the World Map, and the Lemurian Ship

- Field Psynergies: In addition to TBS's field spells, TLA adds 12 new
field Psynergies: Lash, Pound, Tremor, Scoop, Cyclone, Parch, Sand, Burst,
Grind, Hover, Blaze, and Teleport. Every cast matches against the scene's
PSYNERGY_ON_*cue rows in priority order: faced metatile first (or the tile underfoot for Teleport), then the nearest in-reach actor target, and finally any scene-wide row. - The World Map and Lemurian Ship: The World Map streams compressed 512×512
chunks while HBlank DMA rewrites affine scaling on all 160 scanlines
(
world_map_lines.cin IWRAM). Lines near the bottom show a short strip of ground drawn large, while lines near the top show a long strip squeezed small, tilting the flat plane toward the horizon. Because that perspective mode leaves no free background layer for UI boxes, opening dialogue or menus first freezes the view onto a static still image, and pressingRopens the flat flag-driven map screen. Boarding Piers's Lemurian Ship swaps the leader for the ship actor with dedicated sea encounter zones. Once Hamma attaches wings at Atteka Inlet, the ship flies over land with zero random encounters. - Contigo's three minigames: Alongside Lucky Dice and Lucky Wheels,
Contigo's tent adds Super Lucky Dice (
ENGINE_SUPER_LUCKY_DICEin its own resident module).
Code references
- Field engine (
games/tla/src/field/):fdEngineRunsetup and event priority table, the 12 field requests, carrier-rider physics, movement modes, the 12 new field Psynergies, the World Map and Lemurian Ship, encounters, and Contigo's minigames. - Scene overlays (
games/tla/src/scene/): The 7-stubentry.s(scPrepareMap), annotated TLA cue, exit, and script examples, rooms maps, Clear Data import (clear.c), and the Battle Arena lobby. - Maps & tilesets (
games/tla/src/map/): The four-grid.tsvformat, height shapes, three-layer priority, anchor points, tileset animations, and blend scripts.