C64 BASIC Dungeon Crawler: Chasing Goblins and Fixing Memory Bugs

C64 Basic Dungeon Crawler: Goblin Attack (C64 Basic Part 8)

C64 BASIC Dungeon Crawler: Chasing Goblins and Fixing Memory Bugs

In this update, I transformed static goblins into chasing enemies and implemented a real d20 combat system. We also added a feature to redefine control keys, moving away from the standard QAOP layout. However, the biggest lesson came from a nasty memory bug that silently corrupted my character set, teaching me a vital lesson about Commodore BASIC variable naming traps.

The bug is probably the most useful lesson in this whole part, so if you skim, don't miss the memory section.
  1. noufalibrahim

    This reminded me of an old DOS game I used to play called Castle Adventure. I'd almost forgotten about it. Apparently, the original programmer was just 14 when he made it and the source was stolen and sold by some other companies.

    https://en.wikipedia.org/wiki/Castle_Adventure

  2. runtime_lens

    Constraints like these are such a good way to learn programming.

    When you have limited memory and a slow CPU, every variable and every line of code has a purpose. It's hard not to come away with a better appreciation for how software actually work.

  3. ido

    Neat idea, very distracting with the incessant meme clips constantly inserted into the youtube video.

More from this day

2026-07-19