Skip to content

Procedural Dungeon

You'll build a roguelike on a grid with rooms that never repeat, enemies that hunt you, and a death that sticks.

About

Grid movement, procedural levels, enemy AI and permadeath are each a small piece, and together they make a roguelike. You'll build one on a grid using ASCII or tiles. The free Roguelike Tutorial at rogueliketutorials.com covers all of it, and it takes about a month if you follow it and longer if you wander. Field of view is where most people stall, because the first version sees straight through walls and the fix means reading about shadowcasting.

At a glance

Per requirement
35 XP
Completion bonus
300 XP
Requirements
6
Takes
A month
Skill level
Intermediate (months of practice)
Cost
Free
Supplies
Nothing special
Where
At home
Other people
On your own
Locked for now
Earn two more Uncommon badges in Game Dev to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Generate a dungeon of rooms and corridors that's different on every run. Place rectangular rooms that don't overlap, then connect them in order with L-shaped corridors. Seed the generator so you can replay a bug. Show us three different generated floors, as screenshots or a clip of a few restarts. Photo or video
  2. 2
    Add field of view so the player only sees what's lit. Use shadowcasting or a simple raycast, and remember tiles you've already seen in gray. This one feature turns a map into a place. Record walking into a dark room and watching it fill in. Video
  3. 3
    Add enemies with a state machine that wanders, chases and attacks. Pathfind with breadth-first search or A star. Enemies should only chase when they can see you. Record an enemy noticing you and giving chase around a corner. Video
  4. 4
    Add items, an inventory and at least two consumables. A health potion and a scroll that does something are enough. You need pickup, use and drop. Take a screenshot of the inventory with two items in it and the message log after using one. Photo
  5. 5
    Add stairs, five floors of rising difficulty and permadeath. Die and the save is gone, because that's the deal. Scale the difficulty by enemy count and type per floor. Record a death on floor three with the run summary. Video
  6. 6
    Add a morgue file and post your best run. On death, write a text file with the floor reached, the turns taken and what killed you, which is a classic roguelike tradition. Take a screenshot of your best morgue file and the game's public page. Photo