Cover of Dreadcastle, C64 Assembly: white rounded title on dark crimson, rainbow stripes, the C64 logo, and four real screenshots of the game in a pink frame: the churchyard, the grey crags, the frozen pass and the wild wood.
Commodore 64On Amazon

C64 Game Manual Series · Volume 3

Dreadcastle

C64 Assembly: Build a Complete C64 Vampire Adventure 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

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

What makes this book different

  • No assembly experience needed

    Every instruction is explained the first time it is used.

  • Thirteen 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

    24 guided experiments change speeds, colours, damage, music and words, with safe values and the way back; “Where it breaks” makes 13 classic mistakes on purpose and explains them.

  • Measured, not guessed

    Cycles, memory 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

Dreadcastle

An original side-scrolling adventure for the Commodore 64. Oscar, a young vampire, crosses eight levels from the Village of Mortals to the Throne Tower, turns into a bat, and must chase Tom Darkfang out of his castle before the sun rises.

From Dreadcastle

Contents

20 chapters

Code for every chapter →

Twenty chapters, thirteen steps

  1. 01Your workshop
  2. 02Memory and the VIC-II
  3. 03The level on screen
  4. 04The raster and the HUD
  5. 05Smooth scrolling
  6. 06Oscar walks
  7. 07Jumps and solid ground
  8. 08The bat
  9. 09Heirlooms, the gate and the night
  10. 10The enemies
  11. 11The Count's staff
  12. 12Packed levels and the castle
  13. 13Tom Darkfang
  14. 14The fight with Tom
  15. 15The SID and the music
  16. 16States, title and menu
  17. 17The tally, dawn and victory
  18. 18Effects, jingles and the disk
  19. 19Reading and checking the game
  20. 20Glossary 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.