Random maze/dungeon generator
Posted: Wed Jun 06, 2012 5:42 pm
I had this in my mind for a while, an I had to do something about it…
So this is a little concept script that generates a random tile map with a complex maze:
first release:
version that generates less "serif’s" and unoccupied chunks:
Shot at 2012-06-08
Walls ale with, the two numbers in the upper left corner are:
- left one – number of times the generator function was called since the application started
- right one – amount of not used chunks (chunks are 3x3 tile squares)
pressing space will generate a different map
This may not be the best or the most efficient way of generating the maze, but the script works exactly like I expected, and things like that always make me happy
I may use this in some of my future projects, but it may take some time, I don’t want this to be wasted, so I hope someone will find it useful
So this is a little concept script that generates a random tile map with a complex maze:
first release:
version that generates less "serif’s" and unoccupied chunks:
Shot at 2012-06-08
Walls ale with, the two numbers in the upper left corner are:
- left one – number of times the generator function was called since the application started
- right one – amount of not used chunks (chunks are 3x3 tile squares)
pressing space will generate a different map
This may not be the best or the most efficient way of generating the maze, but the script works exactly like I expected, and things like that always make me happy
I may use this in some of my future projects, but it may take some time, I don’t want this to be wasted, so I hope someone will find it useful