Skip to Content
The Alchemy Project

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 Lost Age intro fades in: watch the clouds brighten from dark red toward their true colours as hardware palette entries step forward
The Lost Age intro fades in: watch the clouds brighten from dark red toward their true colours as hardware…

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. 8bpp assets index all 256 entries directly, while 4bpp assets select one of sixteen 16-colour sub-palettes using a 4-bit palette number (index 0 is 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	loop

Picture 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

The Lost Age intro valley pulled apart into its background layer and flying bird sprite before closing back together
The Lost Age intro valley pulled apart into its background layer and flying bird sprite before closing back…
  • Tilesets (tileset/): Maps borrow palettes (14×16 colours, so that sub-palettes 14 and 15 stay reserved for UI) and 512-tile 4bpp sheets independently, backed by standalone recolour palettes in tileset/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 in VRAM together for credits crossfades), alongside variable-sized battle_effects/ and summon/ 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)

Felix scoops under a puddle in Daila: watch the Psy Crystal rise as the treasure jingle ducks Daila's music
Felix scoops under a puddle in Daila: watch the Psy Crystal rise as the treasure jingle ducks Daila's music

All audio is routed through sySoundPlay in sound/sound.c, which takes a numeric ID from include/sounds.h:

RangeKindBehaviour
0–79Music (MUS_*)Loops continuously (0 is MUS_SILENCE); requesting the active track is a no-op
80–99Jingle (MUS_*)Plays once while ducking BGM to silence, then fades BGM back in
100–699Sound 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

Felix stays at Daila's inn: watch how long the screen stays black while it waits for the inn fanfare to finish before town music swells back in
Felix stays at Daila's inn: watch how long the screen stays black while it waits for the inn fanfare to…
  • Area rules (fdChooseMusic): Scans field/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 match EncounterBattleMusic (field/battle_music.c), and link battles keep lobby music. Normal fights play MUS_BATTLE_ON_THE_SEA while sailing before the ship gains wings, or take the standard battle theme from the character leading the front row (MUS_BATTLE_THE_LOST_AGE with Felix, MUS_BATTLE_THE_BROKEN_SEAL with Isaac, MUS_BATTLE_JENNA with Jenna).
  • VBlank jingle ducking (sySoundUpdateBGMRamps): A jingle drops BGM volume to 0 while 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