Cover of Starbraze II, C64 Assembly: the white STARBRAZE 2 logo on dark navy, Build a full game in light blue, the C64 logo, red, yellow, green and blue stripes, and a screenshot of the ship flying through a rocky canyon among purple Varkon fighters, in a cyan frame.
Commodore 64On Amazon

C64 Game Manual Series · Volume 4

Starbraze II

C64 Assembly: Build a Complete C64 Space Shooter in Assembly for the Commodore 64

Build a full game

by Eric A. Norton and Jorah Sallow

Build a complete Commodore 64 game in assembly, one playable step at a time

The Varkon fleet was slowed at Astra-7, not destroyed. The Earth Space Force is all but gone, and from the canyons of Varkonia Prime three prototype starfighters take off: past the shield generators, across the Graveyard of Helios and the Bloody Orbit, into the station Varkon-Omega and out before it blows up. Starbraze II is an original horizontal space shooter for the Commodore 64, and this book shows you how to build it, from the first canyon to the finished game with six bosses, music and an escape against the clock.

The complete game is yours. The companion repository holds the full source code under the MIT licence: the finished game, the seventeen steps of the book, 51 ready-made experiments, the tests and the tools, with a script that rebuilds every program byte for byte. The game is also there ready to play, as a 1541 disk image and as a PRG file.

All you need is a Windows PC and three free programs: the 64tass assembler, the VICE emulator and Python. The game is written for the PAL Commodore 64 and was tested in VICE. Every listing in the book is checked line for line against the source code, and the 53 screens of the game were captured in VICE, nothing drawn or retouched.

Starbraze II is the fourth volume of the C64 Game Manual Series, where every book stands alone and brings a new original game to life, and the sequel to Starbraze, the first. Choose your ship, pilot, and prove them both wrong.

Inside the book

  • Smooth horizontal scrolling, a far layer at half speed and stars in parallax on three planes
  • Three ships with their own speed, shield and four levels of weapons, a cone of plasma, a laser that flies through the enemy and a Gauss shot that bursts
  • A sprite multiplexer that shows up to 24 objects on six sprites
  • Waves of Varkon, turrets that aim, mines that burst, and capsules for weapons, speed, a missile, a satellite and a full shield
  • Six bosses in characters and sprites, from the Siege Crawler to the Super-Computer Varkon behind three rings of plates
  • Seven packed levels read from a 1541 disk when the game needs them
  • Original SID music, three jingles and ten sound effects, in MUSIC, MUSIC + FX, SOUND FX or SILENT
  • A title screen, the choice of ship, pause, GAME OVER, a session high score and a sixty-second escape
  • 83 questions with answers, a glossary of 128 terms and an index

What makes this book different

  • No assembly experience needed

    Every instruction is explained the first time it is used.

  • Seventeen playable steps

    Each step is a complete program cut from the finished game, so nothing you learn is thrown away later; its size and SHA-256 fingerprint tell you that you built exactly the program in the book.

  • Make it yours, then break it

    34 guided experiments change speeds, weapons, bosses and music, with safe values and the way back; “Where it breaks” makes 17 classic mistakes on purpose and explains them.

  • Measured, not guessed

    Cycles, memory, frame deadlines and loading time are measured in the emulator, and automated tests compare every frame of play with a model of the game.

The game in this book

The game you build

Commodore 64

Starbraze II

The sequel to Starbraze, an original horizontal space shooter for the Commodore 64. Three prototype ships take off from the canyons of Varkonia Prime, through six levels with a boss at the end of each, and out of the station Varkon-Omega before it blows up.

From Starbraze II

Contents

25 chapters

Code for every chapter →

Twenty-five chapters, seventeen steps

  1. 01Your workshop
  2. 02Memory, the VIC-II and the interrupts
  3. 03The canyons on screen
  4. 04Smooth scrolling
  5. 05Stars in parallax
  6. 06The three ships
  7. 07The Varkon
  8. 08The multiplexer and the shots
  9. 09Hits and score
  10. 10Weapons and capsules
  11. 11The SID: music and effects
  12. 12The boss engine
  13. 13The Siege Crawler and STAGE CLEAR
  14. 14The Shield Core
  15. 15Phases from the disk
  16. 16The Graveyard Warden
  17. 17The Varkon Corvette
  18. 18Varkon-Omega and the Defense Turret Array
  19. 19The Core and the Super-Computer’s house
  20. 20The Super-Computer: rings and plates
  21. 21The Super-Computer: turrets, fans and core
  22. 22The escape and the victory
  23. 23Title, choice and the states
  24. 24Reading and checking the game
  25. 25Glossary and index

Errata

Corrections

No errors have been reported for this edition yet.

Found a mistake? Open an issue on GitHub or write to [email protected], with the page number and what it should say.