In this tutorial we’ll be taking a look at how to generate procedural dungeon rooms in unity. This will be generating a dungeon map using the Depth First Search (DFS) algorithm. It will also show how to build the room and how the algorithm works.
Assets used in this video:
Code:
Stylized Hand Painted Dungeon:
L2S ARTS:
----
TIMESTAMPS
(00:00) Intro
(00:42) Creating the Rooms
(03:20) RoomBehaviour Script
(08:45) Creating the DungeonGenerator
(09:24) Generator Algorithm
(10:30) DungeonGenerator Script
(13:35) Creating the Grid
(15:59) Checking the Neighbors
(21:11) Creating the Dungeon Maze
(24:40) Instantiating the Dungeon Rooms
(32:16) Outro
----
SOCIAL MEDIA:
- TWITTER - @SilverlyBee
- INSTAGRAM - @SilverlyBee
1 view
230
48
2 months ago 00:05:15 31
The Witcher 4 Concept Gameplay Unreal Engine Lumen Nanite
2 months ago 00:00:56 1
Skull Horde - Official Teaser Trailer
2 months ago 00:01:27 1
Loot River - Announcement Trailer
2 months ago 00:01:24 1
Going Under - Announcement Trailer - Nintendo Switch
2 months ago 00:01:11 1
Going Under - Launch Trailer | PS4
2 months ago 00:01:43 1
Tinkertown - “Once Upon A Tinkertown“ Trailer
2 months ago 00:10:57 6
Stylized Fantasy Dungeon Wood - Substance 3D Designer
2 months ago 00:01:55 1
Black Future ’88 - Launch Trailer - Nintendo Switch
2 months ago 00:02:04 1
Children of Morta - Launch Trailer - Nintendo Switch
3 months ago 00:02:23 1
Hytale - Announcement Trailer
3 months ago 00:05:09 1
Adding a Procedural Castle Dungeon to my Voxel Game - Lay of the Land