Dungeon Stomp is a full, playable, deterministic dungeon crawler engine that puts DirectX 12 Ultimate features to work in a live codebase — featuring DXR 1.1 inline ray tracing, PBR materials, Variable Rate Shading, context steering AI, real-time minimap, SSAO, and deterministic simulation.
Play Now · Dungeon Generator · Features · Screenshots · Controls · Deterministic Simulation & Demos · Build · Repository · Credits
Play immediately using the pre-compiled DungeonStomp.exe in bin/:
git clone https://github.com/moonwho101/DungeonStompDX12UltimateDXR.git
cd DungeonStompDX12UltimateDXR/bin
DungeonStomp.exeRequirements: Windows 10/11 with a DirectX 12 GPU. DXR 1.1 hardware (NVIDIA RTX / AMD RX 6000+ / Intel Arc) is required for ray tracing (R); otherwise the engine uses the rasterized renderer. Variable Rate Shading (T) also requires hardware support.
Press F7 to open the settings panel. Enter a seed (0 = random) and tile count, then click Generate Classic Dungeon or Generate Enhanced Dungeon. Layouts are saved to level1.map and loaded dynamically. Press F7 again to close.
- DXR 1.1 Inline Ray Tracing:
RayQueryinline shadow rays, 2-sample single-bounce indirect diffuse GI, and ray-traced minimap dispatch. - Overhead Minimap: Real-time orthographic dungeon map in the upper right-hand corner (
Ltoggle) displaying player position and heading across raster and DXR modes. - PBR Material Pipeline: Cook-Torrance BRDF metallic workflow with 28 materials (
bin/materials.txt), MikkTSpace tangents, normal mapping, and ACES tone mapping. - DirectX 12 Tech: Variable Rate Shading (VRS), 2048x2048 shadow maps, SSAO, 3-frame buffering, spatial culling, BMFont GPU text, Dear ImGui overlay, and XAudio2 3D audio.
- Context Steering Monster AI: Dynamic steering evaluated via interest/danger maps, raycasted collision whiskers, ledge probes, and neighbor separation. Features line-of-sight tracking and state transitions (aggressive charge, coward retreat, kiter range-keeping).
- Player AI (
F1): An autopilot that plays like a human through the normal input path (src/PlayerAI.cpp): hunts nearby monsters, swings or casts scrolls, picks up treasure, potions and weapons, opens doors, explores unvisited rooms, heals when hurt, takes the level exit once the level is clear and gets back up after dying. - Campaign & Procedural Levels: 16 hand-crafted levels plus seed-based procedural dungeon generation.
- Combat & Arsenal: Dice-based combat, 25+ animated MD2/3DS monster types, and up to 30 weapon/spell slots (melee, magic scrolls, missiles).
- Deterministic Simulation: Fixed-tick updates, seeded PRNG, and exact input demo recording/playback (
F2/F3).
| Action | Input | Action | Input |
|---|---|---|---|
| Look / Turn | Mouse |
Cycle Weapons | Q next / Z previous, or Mouse Wheel |
| Move Forward / Back | W / S (or Right Click forward) |
Load / Save | F5 / F6 |
| Strafe | A / D |
Record / Play Demo | F2 / F3 |
| Attack | Left Click |
Settings Panel (Generator & Toggles) | F7 |
| Jump | E |
On-Screen Debug Stats | F8 |
| Open Doors | Space |
Fullscreen (borderless) | Alt+Enter or F11 |
| Respawn after death | Space |
Player AI (autopilot) on/off | F1 |
| Quit | Esc |
Xbox controller supported (toggle g_bUseJoystick in src/DirectInput.cpp).
🔧 Developer & Feature Hotkeys (Click to expand)
| Key | Feature Toggle | Key | Feature / Developer |
|---|---|---|---|
L |
Overhead Minimap | G |
Fly mode on/off (fly with look direction or Numpad + / -) |
R |
DXR Ray Tracing | X |
Add 10 XP |
T |
Variable Rate Shading | K |
Unlock all weapons & spells |
O |
SSAO | ] / [ |
Next / previous level |
J |
Shadow Maps | I |
Music on/off |
N |
Normal Maps | P |
Play random song |
M |
Shadow Map Overlay | B |
Camera head bob |
V |
VSync | H |
Player HUD |
Dungeon Stomp operates on a fixed tick clock and seeded PRNG sequence for 100% reproducible physics, monster AI, combat rolls, and procedural layouts.
F2Record: Saves an initial snapshot (demo.sav) and records frame-by-frame player inputs todemo.dem.F3Playback: Restores the starting snapshot and replays recorded inputs through the simulation loop with exact parity.- Both files are stored in
bin/. Live input is disabled during playback.
Prerequisites: Visual Studio 2022 (v143 C++ toolset) and Windows 10/11 SDK.
git clone https://github.com/moonwho101/DungeonStompDX12UltimateDXR.git
cd DungeonStompDX12UltimateDXR
msbuild src\DungeonStomp.sln /p:Configuration=Release /p:Platform=x64| Configuration | Executable Output |
|---|---|
| Release | bin/DungeonStomp.exe |
| Debug | bin/DungeonStompDebug.exe |
Runtime dependencies (shaders, assets, level files) are loaded relative to bin/.
bin/— Pre-built executable, level maps (.map/.cmp/.mod), audio, and runtime assetssrc/— Engine & game source code (C++ and Dear ImGui integration)Common/— D3D12 framework helpers (d3dApp,GameTimer,MathHelper)Shaders/— HLSL shaders (Raytracing.hlsl, PBR, SSAO, shadows)Models/,Textures/,Sounds/,Midi/— Game media assetstools/— Asset processing and python dungeon generators (generate_dungeon.py,generate_dungeonNewObjects.py)
Engine architecture builds upon concepts from "Introduction to 3D Game Programming with DirectX 12 - 2nd Edition" by Frank Luna.
🎨 MD2 Model Author Credits
Special thanks to the authors of the classic MD2 models featured in Dungeon Stomp:
- ALPHA Werewolf — Andrew "ALPHAwolf" Gilmour
- Bauul, Hueteotl, Winter's Faerie — Evil Bastard
- Centaur — Scarecrow
- Bug (Q2) — Tatey
- Corpse — Neuralstasis
- Demoness (Succubus) — Pascal "Firebrandt" Jurock
- Dragon Knight, Ogro — Michael "Magarnigal" Mellor
- Fulimo — Tim
- Goblin — Conrad
- Grey — RichB
- Hellspawn — Alcor
- Hydralisk — warlord
- Ichabod — Adam Ward (Gixter)
- Imp — Paul Interrante & Brad Grace
- Insect — Joe "Ebola" Woodrell
- Morbo/Brawn — Rowan Crawford (Sumaleth)
- Necromancer — Raven Software
- Necromicus — Jade Moffatt Jones
- Ogre — Didier "The Doctor" Savanah
- Orc — Boogieman
- Perelith Knight — James Green
- Phantom, Wraith — Burnt Kona
- Purgatori — Tom Colby
- Rider — Blake
- Sorcerer — E. Villiers
- Tentacle — Marcus Lutz
- Troll — Thargar
- Werewolf — Brian Yee
This project is open source. See LICENSE for details.






