# C64 BASIC Dungeon Crawler: Chasing Goblins and Fixing Memory Bugs

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

> Hacker News story 48968949 · language: en · submitted 2026-07-19
> Web version: https://zeli.app/story/48968949
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 88 · by [ibobev](<https://news.ycombinator.com/user?id=ibobev>) · 💬 6
[original](<https://retrogamecoders.com/c64-basic-dungeon-part8/>) · [HN discussion](<https://news.ycombinator.com/item?id=48968949>)

## Summary

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.

## Key quote

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

## HN discussion (6 comments)

### [noufalibrahim](<https://news.ycombinator.com/item?id=48975058>)

> 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

### [runtime_lens](<https://news.ycombinator.com/item?id=48976026>)

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

### [ido](<https://news.ycombinator.com/item?id=48970964>)

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

---

## Cite

- Page: https://zeli.app/story/48968949
- Date: 2026-07-19
- Source: retrogamecoders.com (https://retrogamecoders.com/c64-basic-dungeon-part8/)
- Hacker News: https://news.ycombinator.com/item?id=48968949

## Other languages

- zh: https://zeli.app/zh/story/48968949 · markdown: https://zeli.app/zh/story/48968949.md
- ja: https://zeli.app/ja/story/48968949 · markdown: https://zeli.app/ja/story/48968949.md
- ko: https://zeli.app/ko/story/48968949 · markdown: https://zeli.app/ko/story/48968949.md
- de: https://zeli.app/de/story/48968949 · markdown: https://zeli.app/de/story/48968949.md
- es: https://zeli.app/es/story/48968949 · markdown: https://zeli.app/es/story/48968949.md
