Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Content

Hey!

I have created a video tutorial / guide about methods that we can use to place prefabs inside a procedurally generated dungeon. 

I have shown how to use random walk algorithm to procedurally generate a 2d dungeon here https://youtube.com/playlist?list=PLcRSafycjWFenI87z7uZHFv6cUG2Tzu9v, but the end result was pretty "bare".

I wanted to explain what methods can we use to crate a system to fill our dungeon with prefabs and enemies and how to create this high-level logic of having different rooms such as "Play Spawn Point", "Enemy Room" or "Boss fight room" and how we can scatter them around our dungeon to make it fit our desired gameplay.

I hope that you will enjoy this video :)

Thanks a lot for your support!

-Peter


Files

Previews only

Placing prefabs in a 2D Procedural dungeon in Unity

In this video I will explain how we can place in a meaningful way props, enemies and player spawn point in a procedurally generated dungeon. We will consider how to create a high level concept of different rooms like Player spawn room or the concept behind placing Treasure room or Boss fight / Exit rooms. At the end of this video you should have a good understanding what techniques you can use to procedurally generate a dungeon map for your game. This video is an addition to my Procedural 2D Dungeon Tutorial that you can find here https://youtube.com/playlist?list=PLcRSafycjWFenI87z7uZHFv6cUG2Tzu9v Learn how to create the shooting mechanic shown in this video: https://courses.sunnyvalleystudio.com/p/make-a-juicy-2d-shooter-prototype-in-unity-2020 If you have any questions ask them in the comments and join the discord : https://discord.gg/RQEtYHz You can support me through Patreon: https://www.patreon.com/sunnyvalleystudio #unity2d #procedural #2dshooter 00:00 Introduction 00:56 Procedural prefab placement 01:30 Random Walk generation 02:20 Collecting data 04:48 Creating Rooms definition 06:06 Dijkstra map 06:47 Procedurally placing different room types 07:49 Placing items in the dungeon 09:32 Placing items near Walls 12:43 Placing items in the center / open space 14:30 Modular room placement system 16:01 Analyzing the results

Comments

Anonymous

Hello Peter, amazing initiative!!! I was following the procedural dungeon series from you and I this is just what I needed next! I believe that you can also read your Patreon's minds man... literally this is all what I was to try to figure out by myself next week, you saved me a lot of pain. Thanks Concerning the content, I do prefer longer and detailed explanations as you are delivering now. Sometimes it's hard to understand your coding as you use a lot of Sharp advanced techniques and even if its top level quality content, I guess is hard to follow by most intermediated coders as me. So I'm not only super happy with this new approach, I would love to see some kind of 'medium to advanced C sharp concepts' tuts sometime in the future (the sooner, the better). Great job!