Graphics & Sound
Every picture and sound in Golden Sun: The Lost Age is held in an open format that compiles byte-for-byte into GBA hardware formats during the build.
Sprites, monsters, tilesets, and 3D summon textures are stored as indexed PNGs
and .tsv tables, while music and sound effects are stored as MIDI sequences
and 8-bit PCM WAV samples. Any sheet can be opened in an image editor, and any
track edited in a MIDI sequencer, and make compiles everything back into the
cartridge's packed formats.
This page covers the GBA's indexed graphics model, the way TLA expands character
sheets, monster strips, and 3D summon textures, and the sequel's upgrades to its
sound driver: 700+ music tracks, party-aware battle themes, and a higher
sample-rate mixer.
GBA graphics fundamentals

The GBA uses indexed colour. Images store palette indices while hardware
palettes map those indices to 15-bit RGB colours (32 levels per channel;
tools/ags-graphics rejects non-exact RGB values). Storing colours in palettes
rather than inside tile pixels lets fades, Psynergy tints, and enemy recolours
run without rewriting tile data.
- Palettes and bit depths: The console holds 256 background colours and 256
sprite colours.
8bppassets index all 256 entries directly, while4bppassets select one of sixteen 16-colour sub-palettes using a 4-bit palette number (index0is always transparent). - Tiles and sprites: Pixels pack into 8×8 tiles, and hardware sprites (OAM) range up to 64×64 pixels.
Character sprites and 5-direction animations
Character sheets in sprite/ are vertical PNG strips paired with tab-separated
.tsv animation scripts. For example, isaac.png holds 215 pictures of 32×32
pixels. Animation 2 (walk) of sprite/isaac.tsv reads:
2 picture 55 7
2 picture 30 7
2 picture 35 7
2 picture 40 7
2 picture 45 7
2 picture 50 7
2 loopPicture indices step in fives (S, SE, E, NE, and N, horizontally mirrored for
the 3 west facings), so that one animation script serves every facing. Monsters
reuse the same sprite concept with front and back pose pairs for the orbiting
battle camera, sharing 105 8bpp strips across 380 enemies through palette
swaps.
Tilesets, battle backgrounds, and 3D summon textures

- Tilesets (
tileset/): Maps borrow palettes (14×16 colours, so that sub-palettes 14 and 15 stay reserved for UI) and 512-tile4bppsheets independently, backed by standalone recolour palettes intileset/palette/. - Battle backgrounds and summons: 82 raw 256×120 128-colour bitmaps are held
in
battle_backgrounds/(using half a palette, so that two backdrops fit inVRAMtogether for credits crossfades), alongside variable-sizedbattle_effects/andsummon/artwork, including textures mapped onto TLA's 3D summon models.
Static assets link directly into their owning module, while dynamically loaded assets are registered in the 2,048-row resource directory.
Sound architecture, 700+ tracks, and MusicPlayer2000 (m4a)

All audio is routed through sySoundPlay in sound/sound.c, which takes a
numeric ID from include/sounds.h:
| Range | Kind | Behaviour |
|---|---|---|
0–79 | Music (MUS_*) | Loops continuously (0 is MUS_SILENCE); requesting the active track is a no-op |
80–99 | Jingle (MUS_*) | Plays once while ducking BGM to silence, then fades BGM back in |
100–699 | Sound effect (SE_*) | Plays over music and jingles |
700+ | TLA Music (MUS_*) | 31 additional looping BGM tracks added above the SFX band so shared IDs stay aligned with TBS |
Every sySoundPlay call marks the ID in a heard-track bitfield
(sySoundFlagSet) that drives the Battle Arena lobby's sound test
(L + R + Select unlocks all tracks). Beneath sound.c are the reconstructed
MusicPlayer2000 (m4a) routines matching the driver linked into the
cartridge (shared in games/common/sdk/sound/ plus five TLA-specific files in
games/tla/src/sound/sdk/) across 8 players (1 BGM, 1 jingle, and 6 SFX).
For sounds assigned to MUSIC_PLAYER_SE_LAST, TLA searches back across 3
prior SFX players (4 total) for an idle slot before cutting off an earlier
sound. Audio is mixed at 31,536 Hz inside Camelot's upgraded
528-sample/frame IWRAM mixer in system/resident_mixer.s, where it shares
the system library's r4-scratch ABI.
Rule-based area music, party-aware battle music, and VBlank ducking

- Area rules (
fdChooseMusic): Scansfield/music_rules.s(matching scene, area, entrance, and an optional flag; the first match wins) before the scene overlay loads. For example, Daila has 2 rules and the World Map has 6, two of them gated by story flags. - Battle rules (
fdEncounterSelectBattleMusic): Special bosses matchEncounterBattleMusic(field/battle_music.c), and link battles keep lobby music. Normal fights playMUS_BATTLE_ON_THE_SEAwhile sailing before the ship gains wings, or take the standard battle theme from the character leading the front row (MUS_BATTLE_THE_LOST_AGEwith Felix,MUS_BATTLE_THE_BROKEN_SEALwith Isaac,MUS_BATTLE_JENNAwith Jenna). - VBlank jingle ducking (
sySoundUpdateBGMRamps): A jingle drops BGM volume to0while the music continues to play unheard, then raises the volume again over VBlank frames once it has finished. The track advances as though it had been audible throughout, and holds exact tempo during slowdown.
Code references
- Graphics assets (
games/tla/src/graphics/): Folder inventory of all ~3,400 PNGs and.tsvtables, monster strips, andags-graphicsbuild details. - Sound and music (
games/tla/src/sound/):sound.c,sound_test.c,sounds.h,music_rules.s,EncounterBattleMusic, the 528-sample/frame mixer, TLA'ssound/sdk/overrides, and MIDI and WAV sources.