← Back to Projects

UNITY · C# · AUGMENTED REALITY

Dungeon Quest AR

A tabletop augmented reality dungeon crawler featuring QR-triggered procedural generation, modular dungeon construction, and stamina-based combat. Built in Unity as a playable mobile AR prototype.

Gameplay ProgrammingAugmented RealityProcedural GenerationMobile Development

Original gameplay footage showcasing the tabletop augmented reality prototype and procedural dungeon generation.

Project Overview

Dungeon Quest AR is a mobile augmented reality prototype that transforms a real-world surface into a miniature fantasy dungeon.

Players explore a procedurally generated environment, encounter enemies, discover treasure chests, and search for the dungeon exit. The experience combines tabletop-style presentation with familiar mobile game controls.

My Role

I independently developed the gameplay systems, including procedural dungeon generation, AR-based initialization, player movement, stamina-based combat, and basic enemy behavior.

QR-Based AR Initialization

Dungeon generation begins when the application recognizes a QR marker. The detected marker position provides the initial placement reference for the virtual environment.

Once generated, the dungeon remains in its initial position without requiring the marker to stay visible. This allows players to interact with the miniature environment as a tabletop game.

SYSTEM BREAKDOWN

QR-Triggered AR Initialization

The physical marker initializes the experience, while the generated dungeon remains available after marker visibility is lost.

⌗01

QR Recognition

A QR marker is recognized by the AR system.

◎02

Initial Placement

The detected marker position defines where the dungeon appears.

▦03

Dungeon Generation

The procedural generator builds and populates the miniature environment.

✦04

Tabletop Gameplay

Players explore using mobile controls without keeping the marker visible.

The marker provides the initial placement reference; continuous marker visibility is not required during gameplay.

Procedural Dungeon Generation

I implemented a grid-based procedural generator using modular room and wall prefabs. The system begins by constructing the outer boundaries before populating the interior with randomly selected tile configurations.

A subsequent validation pass examines neighboring tiles and replaces certain problematic wall configurations with open spaces. This neighbor-based constraint repair approach helps produce more traversable layouts while preserving variation between generated dungeons.

After the layout is constructed, the generator distributes enemies and treasure chests across the environment. Finally, a randomly selected tile is replaced with an open exit tile containing a statue.

SYSTEM BREAKDOWN

Procedural Generation Pipeline

Randomized tile placement followed by neighbor-based constraint repair and dungeon population.

01Random Layout
▦
▦
▦
▦
▦

Generate modular tiles inside the boundaries.

02Constraint Repair
▦
▦
▦
▦

Replace problematic configurations with open tiles.

03Dungeon Population
▦
◆
▦
⚔
▦
★
▦

Place enemies, treasure, and the exit statue.

Simplified illustration of the generation stages. Actual levels use a larger grid and multiple modular prefabs.

Combat & Stamina

Player movement uses a virtual joystick, while on-screen GUI buttons provide access to combat actions.

The combat system supports attacking and defensive actions. Maintaining a defensive stance consumes stamina, introducing a resource management element to encounters.

Enemies implement basic pursuit and attack behavior, providing opposition as the player navigates the dungeon.

Exploration & Tabletop Presentation

Rather than placing the player inside a life-sized AR environment, Dungeon Quest AR presents its levels as miniature tabletop dioramas with an isometric-style perspective.

This approach combines the visual appeal of augmented reality with the accessibility of traditional mobile game controls.

Development Outcome

Dungeon Quest AR reached a functional prototype stage featuring one dungeon theme, procedural level generation, AR initialization, player combat, enemy behavior, and treasure placement.

The project provided practical experience combining augmented reality with procedural content generation and mobile gameplay systems.

Potential future improvements include automated connectivity validation, more data-driven tile rules, additional dungeon themes, and expanded equipment progression.