- Home /
How do I randomly place doors, treasure chests, and traps in a randomly generated maze?
Hi, guys.
I've made a maze generator using depth-first search (DFS) algorithm ( https://youtu.be/z7wHZMB9YYs ). Also, I have modified the code to add floors, and to randomly select the position of the player and of the next-level point. The maze did work, but I am trying to put doors because it is part of the game I am making. I have made my door prefab ( https://youtu.be/vfL7kQeZtic ). Also, I have made four treasure chest prefabs depending on where it is facing. Simply put, how do I randomly place doors, treasure chests, and traps just as I made a randomly generated maze?
Thank you for your prompt response.
Comment