Starbraze II · the code

Every step of the game

The sources and the programs, in folders named exactly as the book names them. Free to use in your own work, commercial or not, under the MIT licence.

Build and play

You need vasm (assembler (vasmm68k_mot), built from its source), FS-UAE (emulator, with AROS's ROM inside) and Python 3 (builds the data and the disk, with numpy). Open a terminal in the folder and type:

fs-uae --amiga_model=A500 --kickstart_file=internal --chip_memory=512 --slow_memory=0 --fast_memory=0 --floppy_drive_speed=100 --floppy_drive_0=releases/starbraze2-1.0.adf

Check everything

From the top folder of the full download, this assembles every source again and compares the result with the reference bytes:

python verify.py
  • On Windows the program is fs-uae.exe. --kickstart_file=internal is the ROM that comes with FS-UAE, AROS's, a free replacement of the Kickstart: no Amiga ROM is needed.
  • Joystick in port 2: a joystick plugged into the computer, or the cursor keys with the right Ctrl key for the button.
  • To build and run a step, type python tools/build.py once, then python tools/build.py --step chain/01-the-canyons, and start FS-UAE from the step folder with --floppy_drive_0=game/build/starbraze2.adf. Never change a step: copy its folder and work on the copy.
  • vasm comes as source code: make CPU=m68k SYNTAX=mot in its folder makes vasmm68k_mot, to put in tools/bin or on the PATH. numpy is installed with python -m pip install numpy.
  • Each step folder in chain/ holds its own sources and builds on its own. variants/ holds the 30 experiments of the book, 20 “Make it yours” variants and 10 “Where it breaks” versions, each with a README, and CHAPTERS.md says which step and experiments go with each chapter.
  • Built with vasm 1.8i and tested in FS-UAE 3.2.35 with AROS's ROM; not tested on a real Amiga, nor with a Kickstart ROM.

Chapter by chapter

Ch.TitleFolderDownload
1Your workshopchain/01-the-canyons/
2The 68000 at a glance—
3Taking the machinechain/01-the-canyons/
4A level from the diskchain/01-the-canyons/
5The canyonschain/01-the-canyons/
6The shipchain/02-the-ship/
7The HUD and the choicechain/02-the-ship/
8Bobschain/03-the-varkon/
9The Varkonchain/03-the-varkon/
10Weaponschain/04-the-weapons/
11Hitschain/04-the-weapons/
12The scorechain/04-the-weapons/
13Paula and the effectschain/05-the-orchestra/
14The orchestra's playerchain/05-the-orchestra/
15Banks, packing and the modeschain/05-the-orchestra/
16The boss enginechain/06-the-crawler/
17The SIEGE CRAWLERchain/06-the-crawler/
18STAGE CLEARchain/06-the-crawler/
19Level 2: towers, fields, beamschain/07-the-shield-core/
20The SHIELD COREchain/07-the-shield-core/
21Phase 2's Varkonchain/08-the-graveyard-and-the-orbit/
22The GRAVEYARD WARDENchain/08-the-graveyard-and-the-orbit/
23The VARKON CORVETTEchain/08-the-graveyard-and-the-orbit/
24The stationchain/09-the-station-and-the-escape/
25The DEFENSE TURRET ARRAYchain/09-the-station-and-the-escape/
26The SUPER-COMPUTER, its ringschain/09-the-station-and-the-escape/
27The SUPER-COMPUTER, its turrets and corechain/09-the-station-and-the-escape/
28The escapechain/09-the-station-and-the-escape/
29The titlechain/10-the-title/
30The stateschain/10-the-title/
31Reading and checking the gamechain/10-the-title/
32Glossary and index—