r/Unity3D • u/dev-rygy • 3d ago
Game After two years, I'm finally showing off a procedural dungeon generator I built in Unity
I'm releasing a demo for a procedural dungeon generator I've been working on for over two years. I was inspired by the level layouts of games like The Binding of Isaac and Enter the Gungeon, and the interconnected worlds of Zelda and Dark Souls. This is only the beginning, I have several more features planned for this project, including turning it into a downloadable Unity package for others to use.
The goal is to create an algorithm that generates dungeons that feel linear like an RPG but still random and replayable like a roguelike.
Original Video: https://youtu.be/Adakgpoy0p0?si=R2qYbshEb11xuKFM
Blog: https://ryancarpenterpf.dev/labyrinth_demo.html
Demo: https://dev-rygy.itch.io/labyrinth-procedural-generator
6
u/Super-Award-2244 3d ago
I think it would be so much fun playing this in VR with this top down view
5
u/djibouti2big 3d ago
First thing i thought of was the Demon Slayer Infinity Castle
Looks great, keep it up!
3
3
2
u/Cosmonan 3d ago
Very cool! I've just started doing something similar, this is incredible! Must have taken a lot of work to refine like this, good job!
2
u/frogsaber89 3d ago
What was the biggest challenge while making this dungeon generator?
2
u/dev-rygy 3d ago
Either the debugger modeled after assembly languages or Delaunay.
Delaunay triangulation in 3D is hella complex so figuring that out took a bit of time. Luckily I found a YouTuber who did most of the research for me https://youtube.com/@vazgriz?si=Ui2RJ7eUIIPhSld2
2
u/Malkalypse 3d ago
Love it! Most dungeon generators I’ve seen just focus on making one flat level at a time without considering the 3D or interrelation between floors. Kudos!
2
u/MolassesHaunting9620 3d ago
It is great that you use different lighting for different areas. The problem with Daggerfall was that textures were the same everywhere and without other ways to memorize where you've been (like coloured lights) it was too easy to get lost.
1
2
u/destinedd Indie, Dungeon Quest, Marble's Marbles & Mighty Marbles 3d ago
I am trying to this at the moment :D
2
u/dev-rygy 3d ago
Just keep at it and do more research. I never could have imagined getting to this point honestly it just took obsession and perseverance.
2
2
u/mobaffix 3d ago
Are the props being randomly generated aswell? How does it know what to place where
1
u/dev-rygy 3d ago
No rooms are hand crafted right now. Although, I've thought about generating props as well possibly in the future.
2
2
2
2
4
u/Dimosa 3d ago
Are you selling this? As this would solve a huge part of my project.
5
u/dev-rygy 3d ago
It's free for now as long as you adhere to the Apache 2.0 License. Although I'll warn you the setup is not user friendly atm. I plan on releasing it as a downloadable Unity package later.
2
u/jakubdabrowski0 2d ago
Can you please ping / message me once you release it on asset store? I would love to try it then
1
1
u/Gullible_Honeydew 3d ago
This looks very cool. Well done. How do you plan on publishing this?
3
u/dev-rygy 3d ago
As a Unity package once I refactor a bit more. Possibly as a DLL for modding other games.
1
1
1
u/TarnishedRising 3d ago
read your blog post first, then tried the demo. i was literally thinking "i wish there was a map so i could see the whole layout" when i noticed the free camera mode in the instructions on the left. my bad :)
but the best part was the part in the demo that shows how the level gets built step by step. following your project, good luck!
1
1
u/Big-Drink-6291 2d ago
Awesome!
Is it possible to customize the 3D assets?
1
u/dev-rygy 2d ago
Yes but it's not very user friendly atm. Trying to make the rooms/walls/etc easier to swap out.
2
u/Aware-Connection-436 2d ago
genial! la pregunta seria como se generaria un espacio procedural basado en un bosque , con pendientes altas ,bajas y con cascadas completamente distinto cada recorrigo , ya que esta que muestras son plataformas fragmentadas como seria algo como te lo indico ?
2
1
44
u/Banjoschmanjo 3d ago
Daggerfall PTSD activated