← Back to Game Projects
Unity · C# · Solo Project · Procedural Generation

PROCEDURAL
DUNGEON
GENERATOR

Solo Project Unity C# Procedural Generation Complete

A fully explorable 3D dungeon generator built from scratch in Unity — combining cellular automata cave generation, the marching cubes algorithm, and dynamic flashlight lighting to produce natural-feeling cave environments that are unique every run.

Gameplay Walkthrough
Screenshots

Overview

This project is a fully explorable 3D dungeon generator built as a solo course project in Unity. The goal was to create a system that generates natural, believable cave environments entirely through code — no hand-crafted level design. Every run produces a completely unique dungeon with different layouts, passages, and treasure chest placements that players can explore in first person.

The technical centrepiece is the combination of cellular automata for cave shape generation and the marching cubes algorithm for seamless 3D geometry — two techniques that together produce organic, non-blocky environments. The dark atmosphere with dynamic flashlight lighting gives the space genuine tension and rewards thorough exploration.

Key Features & Techniques