# Randomly generated dungeons

**URL:** <https://forums.unrealengine.com/t/randomly-generated-dungeons/25955>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [March 30, 2015, 10:25pm UTC](https://forums.unrealengine.com/t/randomly-generated-dungeons/25955 "2015-03-30T22:25:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tefel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tefel/32/1194573_2.png) [@Tefel](https://forums.unrealengine.com/u/Tefel)\
**Post date:** [March 30, 2015, 10:25pm UTC](https://forums.unrealengine.com/t/randomly-generated-dungeons/25955/1 "2015-03-30T22:25:47Z")

</div>

Hey guys,

Based on UE4 procedural room tutorial I made Randomly generated dungeons algorythm.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/6/9/a69e68e442cd1b761b17351bf2ed30c267de3ded.jpeg "Prototype - Randomly generated dungeons") ](https://www.youtube.com/watch?v=ECp9DZYXL5g)

[http://archeogame.com/wp-content/uploads/2015/03/archeo\_prototype4-e1427754045488.png](http://www.youtube.com/watch?v=ECp9DZYXL5g)

I’ve made a lot of improvements. Moving logic from GameMode to actor, changing casting problems and switching to interfaces, fixing problems with corridors going through other rooms, fixing problems with nearest rooms - I remember in AABB all connections to other rooms so I can go backwards and find nearest room and fix that original problem. I added three-tier floors and staircases inside corridors. I’ve simplified logic adding many macros and new functions. Finally I have improved performance. I also had a lot of calculations. For instance I compute staircase angle from arcus tangens.

Some screenshots:

[http://archeogame.com/wp-content/uploads/2015/03/dung0\_cellar-150x150.jpg](http://archeogame.com/wp-content/uploads/2015/03/dung0_cellar.jpg) [http://archeogame.com/wp-content/uploads/2015/03/dung1\_volcano-150x150.jpg](http://archeogame.com/wp-content/uploads/2015/03/dung1_volcano.jpg) [http://archeogame.com/wp-content/uploads/2015/03/dung2\_castle-150x150.jpg](http://archeogame.com/wp-content/uploads/2015/03/dung2_castle.jpg) [http://archeogame.com/wp-content/uploads/2015/03/dung4\_temple-150x150.jpg](http://archeogame.com/wp-content/uploads/2015/03/dung4_temple.jpg) [http://archeogame.com/wp-content/uploads/2015/03/dung5\_coalMine-150x150.jpg](http://archeogame.com/wp-content/uploads/2015/03/dung5_coalMine.jpg)

[http://archeogame.com/wp-content/uploads/2015/03/dung6\_goldMine-150x150.jpg](http://archeogame.com/wp-content/uploads/2015/03/dung6_goldMine.jpg) [http://archeogame.com/wp-content/uploads/2015/03/dung6\_tavernr-150x150.jpg](http://archeogame.com/wp-content/uploads/2015/03/dung6_tavernr.jpg) [http://archeogame.com/wp-content/uploads/2015/03/dung7\_pyramid-150x150.jpg](http://archeogame.com/wp-content/uploads/2015/03/dung7_pyramid.jpg) [http://archeogame.com/wp-content/uploads/2015/03/dung8\_greenFort-150x150.jpg](http://archeogame.com/wp-content/uploads/2015/03/dung8_greenFort.jpg) [http://archeogame.com/wp-content/uploads/2015/03/dung9\_warehouse-150x150.jpg](http://archeogame.com/wp-content/uploads/2015/03/dung9_warehouse.jpg)

---

<div class="post-metadata">

**Author:** ![Monokkel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monokkel/32/1194496_2.png) [@Monokkel](https://forums.unrealengine.com/u/Monokkel)\
**Post date:** [March 30, 2015, 10:56pm UTC](https://forums.unrealengine.com/t/randomly-generated-dungeons/25955/2 "2015-03-30T22:56:50Z")

</div>

Very cool stuff! Great work on varying the look between different stages. Already the levels feel pretty different, and this will only become better when you start adding meshes and enemies. I love procedural generation and dungeons, so I’ll be keeping an eye on this 🙂

---

<div class="post-metadata">

**Author:** ![Hawk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hawk](https://forums.unrealengine.com/u/Hawk)\
**Post date:** [March 31, 2015, 2:12am UTC](https://forums.unrealengine.com/t/randomly-generated-dungeons/25955/3 "2015-03-31T02:12:45Z")

</div>

This is awesome, I would love to hear more about how you set all this up :D. Also hope you get this onto the marketplace at a decent price, or do tutorials on how you set this up…or even better both!

---

<div class="post-metadata">

**Author:** ![Tefel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tefel/32/1194573_2.png) [@Tefel](https://forums.unrealengine.com/u/Tefel)\
**Post date:** [March 31, 2015, 12:15pm UTC](https://forums.unrealengine.com/t/randomly-generated-dungeons/25955/4 "2015-03-31T12:15:44Z")

</div>

> [@Hawk;260879](#):
>
> This is awesome, I would love to hear more about how you set all this up :D. Also hope you get this onto the marketplace at a decent price, or do tutorials on how you set this up…or even better both!

I will try to do everything what You have mentioned but first of all I need to start greenlight campaign and finish mutiplayer in my Archeo game. I wish to get Unreal Dev Grant to speed my work up.

---

<div class="post-metadata">

**Author:** ![Tefel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tefel/32/1194573_2.png) [@Tefel](https://forums.unrealengine.com/u/Tefel)\
**Post date:** [April 3, 2015, 8:22am UTC](https://forums.unrealengine.com/t/randomly-generated-dungeons/25955/5 "2015-04-03T08:22:35Z")

</div>

How do You like my improvements?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [April 3, 2015, 8:33am UTC](https://forums.unrealengine.com/t/randomly-generated-dungeons/25955/6 "2015-04-03T08:33:27Z")

</div>

I think it looks really good. A lot of people would like to get her hands on it.

---

<div class="post-metadata">

**Author:** ![ItsBenji90](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ItsBenji90](https://forums.unrealengine.com/u/ItsBenji90)\
**Post date:** [April 3, 2015, 11:43am UTC](https://forums.unrealengine.com/t/randomly-generated-dungeons/25955/7 "2015-04-03T11:43:00Z")

</div>

Very nice! I like the variety in themes.  
I’m doing [something similar](https://forums.unrealengine.com/showthread.php?57390-Overdosed-A-Trip-To-Hell&p=263668&viewfull=1#post263668) but it’s very early days at the moment.
