Build a complete Commodore 64 game in assembly, one playable step at a time
Count Dracula is away at the annual Monsters’ Convention, and Tom Darkfang’s werewolves have taken Dreadcastle. His grandson Oscar, a small vampire still learning to fly, wakes at midnight in the Village of Mortals, miles from home, and the night is short. Dreadcastle is an original side-scrolling action adventure for the Commodore 64, and this book shows you how to build it yourself, from the first byte on the screen to the finished game with its music, its boss fight and its dawn.
The complete game is yours. The companion repository holds the full source code under the MIT licence: the finished game, the thirteen steps of the book, 37 ready-made experiments, the automated tests and the tools. The game is also there ready to play, as a PRG file and as a 1541 disk image.
All you need is a Windows PC and three free programs: the 64tass assembler, the VICE emulator and Python. Every listing in the book is checked line for line against the source code, and every screen of the game was captured in VICE, nothing drawn or retouched.
Dreadcastle is the third volume of the C64 Game Manual Series, where every book is independent and brings a new original game to life. Start the emulator, wake Oscar at midnight and get him home before dawn.
Inside the book
- Eight levels that scroll smoothly both ways, from the Village of Mortals to the Throne Tower, drawn from packed maps of metatiles
- A young vampire who walks, jumps higher the longer you hold the stick, and turns into a bat that flies on beats of its wings and eats moths for energy
- Heirlooms, lanterns, gates and a night that runs out at dawn, with a HUD for health, energy, night and a six-digit score
- Eleven kinds of enemy that walk, fly and pounce, the Count's staff to strike them, and hazards from brambles to fire
- A boss fight against Tom Darkfang, a werewolf made of four sprites, twice Oscar's size
- Original SID music, jingles and fifteen sound effects, a MUSIC, SOUND FX or SILENT menu, a title screen, victory and dawn
- The finished program on a 1541 disk image, its loading time measured