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.adfCheck 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.