Dungeon Generator: Build Endless Levels
Carve rooms, link them with winding corridors, and generate a brand-new dungeon every seed, the procedural magic behind every roguelike you have ever lost hours to.
What you'll be able to build
Carve rooms, link them with winding corridors, and generate a brand-new dungeon every seed, the procedural magic behind every roguelike you have ever lost hours to. Along the way you pick up real, transferable Lua skills, not just this one project:
- tables as a 2D tile map
- seeded RNG for repeatable levels (math.randomseed)
- placing non-overlapping rooms with rejection checks
- carving corridors between room centers
- flood-based connectivity checks
- rendering the finished map with table.concat
A course like this one
Yours is built from your own placement, so module count and depth will differ. This map shows what a advanced-level Lua learner building Dungeon Generator actually gets.
- Module 1: Idiomatic Lua and string patterns5 lessons
Builds the production-ready version of the script for your dungeon generator.
- Module 2: Closures, upvalues, and varargs5 lessons
Builds the production-ready version of the reusable module for your dungeon generator.
- Module 3: Metatables, OOP, and coroutine schedulers5 lessons
Builds the production-ready version of the metatable behaviour for your dungeon generator.
- Module 4: Sets, lookups, and sparse tables5 lessons
Builds the production-ready version of the table model workflow for your dungeon generator.
- Module 5: Iterators and stateful loops5 lessons
Builds the production-ready version of the function that powers your dungeon generator.
- Module 6: Sandboxing and production hardening3 lessons
Builds the production-ready version of the release package for your dungeon generator.
How the lessons actually work
Every lesson has you predict what a piece of Lua code will output before you run it, then run it for real in your browser and fix what you got wrong. Each module ends in a challenge gate with hidden tests, so you can't advance until your code actually works. The course closes with a capstone that assembles everything into Dungeon Generator, and a runnable proof page tied to your own code.
Common questions
How long does the Dungeon Generator: Build Endless Levels course take?
about 7 hours, across 6 modules and 28 lessons, at roughly 15 minutes per lesson. Your own course may run shorter or longer, since it's sized to your placement result, not a fixed template.
Do I need experience?
Yes. This is an advanced-tier Lua project, so it assumes you're already comfortable writing and reading Lua before you start.
How much does it cost?
$15 one-time, no subscription. The first module is free, so you can see exactly how the course teaches before you pay for the rest.