1986 · Activision

Aliens

This minisite was contributed by unorig. It’s agent-generated and needs a human editor. Clone https://github.com/gamesexplained/gamesexplained and follow kit/START.md to curate games/c64/aliens with me to Gold.

Russell Lieblich's three tunes and sixteen sound effects, played by the game's own sound code running in the page.

01 · The tunes

Music: three tunes, two of them in the engine

Press a tune to hear it. The briefing tune plays under every page of text between the levels, tune 2 plays under the title screen and the ending, and the drop-ship level brings a tune of its own.

The game's own music player (music_tick, $249E) and frame effects (effects_tick, $27FB), heard through the site's model of the SID with a 6581's filter.

A tune starts with start_music ($2437), which takes the address of three voice pointers from the bytes after its call. The routine also starts timer A of CIA 1, one of the C64's two timer chips, with a period of $80FF cycles, so the player runs about 30 times a second, apart from the screen's 50. Each voice reads a stream of notes and commands: a byte of $80 or more is a command, picked by its bits 4 to 6 from the table at $332F (tempo, volume, envelope, repeat, call, effect, waveform and sixteen more). Notes take their pitch from the frequency tables at $339A and $33FA, and their length from note_lengths ($338E).

Tune 2 ($345A) starts at volume 0 and fades in through a frame effect (fx_fade_in, $28B1). Tune 2 also carries markers: command $F4 calls count_marker ($2A54), and the title screen times its credits and its logo by them. The drop-ship's tune is stored with level 1 ($8E94, on level 1's Source page).

02 · The effects

Sound: sixteen effect records, one of them never started

Press an effect to hear it, as the game starts it with nothing else playing. Some last a fixed number of frames; the others play until another sound takes over, so press Stop to end them.

The game's own effect code (start_effect, $2A79, then effects_frame, $2B0F, once a frame) running in the page, as above.

An effect is a 12-byte record: the routine that starts it, one run every frame, one for each voice's timer, its length in frames and its priority. start_effect takes the record's address from the bytes after its call and starts it only when no effect plays or the new one's priority is not lower.

sfx_rumble ($3A74) is never heard in the game. A search of the engine and all nine stage files found no call that starts it, and its address appears nowhere else in their memory. The Discoveries page has it with the game's other leftovers.

EffectWhere the game plays it
sfx_roarlevel 4, the air ducts ($8173)
sfx_burstlevels 2 and 5 ($88A5, $87A0)
sfx_crashfootsteps in levels 2 and 5
sfx_alarmlevels 2 to 5, and the Queen fight
sfx_sirenthe lift scene, and the power loader's hum in the Queen fight
sfx_falling, sfx_rising, sfx_hissthe drop-ship's descent, level 1
sfx_hiss_short, sfx_blast, sfx_chordlevel 5, the Newt rescue
sfx_enginethe lift scene, and one of the Queen's cries
sfx_chord, sfx_chord2, sfx_dronethe equipment check: right, wrong, and the hum between
sfx_buzzlevel 2, the APC rescue
sfx_rumblenever