My dissertation at the University of Lincoln: a 3D multi-floor dungeon generator in Unity, based on the TinyKeep algorithm, with a playable character to explore what it builds. The whole pipeline can run at once or step by step, so each stage can be seen and tested.

  • Place rooms at random positions and sizes on a 3D grid, across several floors, and pick the main rooms
  • Triangulate the main rooms with a Delaunay triangulation, then keep a minimum spanning tree so every room is connected
  • Add loops back in, so the dungeon isn’t a pure tree
  • Carve corridors along each edge, keep the secondary rooms they pass through, and connect the floors with connector rooms
  • Sliders control the generation settings, and gizmos draw the graph at every stage
  • Explore the result with hack-and-slash controls; floors above you hide so the camera always has a clear view

Role SoloBuilt with Unity 6, C#, DelaunatorMade for CMP3753 Project (dissertation), University of Lincoln

The code for this one is private. A version you can play in your browser is on the way.

📝 Read the devlog: how it was built and what I learned.

← All projects