Above is an image of a random map generator I made. As you can see it isn’t playable. Corners lead to blank spots. Straights lead into the side of a 3 way. I want to know how I can make random maps generate so they can be playable. The doors are replaced and create the grid and as of now I am using a loop for each row generating a random number and cloning a template based off the number.
1 Like
Try taking a look at:
https://en.wikipedia.org/wiki/Maze_generation_algorithm
A lua script for generating and solving mazes
Sorry but I really dont understand how the generation script you provided does. It’s not a maze it’s more like a map. There are 4 different types of templates and I just need them to line up correctly.