0

Building a Roguelike in 24 Hours with Claude Code

Project Story Blurb

I’m excited to share my latest project: a fully-featured turn-based roguelike dungeon crawler built entirely in vanilla JavaScript. The game features three floors of procedurally-generated dungeons, six enemy types with unique AI behaviors, twelve collectible items, multiple room types including shops and rest areas, and a mysterious Sage NPC who guides you through the depths. Players navigate through combat rooms, collect gold and items, and face off against increasingly difficult bosses as they descend deeper into the dungeon.

What makes this project remarkable isn’t just the game itself, but how quickly it came together. Using Claude Code, I went from concept to completion in roughly 24 hours. For context, during the pandemic I attempted to create a game and spent hundreds of days on it, only to eventually abandon the project unfinished. The difference this time was having an AI pair programmer that could help architect the entire system, implement complex features like A* pathfinding for enemy AI, and debug issues in real-time. Claude Code didn’t just write code—it helped me think through the design, maintain consistent patterns across the codebase, and actually finish what I started.

You can find the game here. It runs entirely in the browser with no dependencies or build process required—just pure HTML5 Canvas and JavaScript. It features sprite-based graphics, background music, sound effects, and even includes quality-of-life features like audio toggles and hover tooltips for items. If you’d like to try it out, [insert your game URL here]. Whether you make it to the final floor or die in the first room, I hope you enjoy playing it as much as I enjoyed the surprisingly quick journey of building it.

(This post was also created with AI if you couldn’t tell)