My maze-fu is strong
Super Spelunker is born!
What you see below is a randomly generated maze. I started with the standard depth-first search algorithm, added the width limitation which gives it the upside-down-pyramid shape, then tweaked the algorithm slightly to give more pleasing results.
- A "weighted roulette wheel" technique was used to give a bias towards horizontal corridors, which is both a game design decision and a measure to counteract the natural bias towards long vertical corridors, which presumably results from the X-axis limitation (i.e. pyramid shape).
- The algorithm keeps an explicit stack rather than using recursion; there is a small random chance that at the top of each iteration, a random item shall be chosen from the stack (instead of the top item). This greatly increases the amount of branching in the maze, as otherwise the algorithm effectively creates a single path from the start point, and branches more than a few cells long aren't seen until quite a way along it.
I'm not sure if the pyramid shape will be kept yet, or if it will be kept but turned upside down. I'm also not yet going to release any details of gameplay in the sense of how you will actually get around the maze (other than what's already written in my entry description); partly because they aren't finalised, but mostly because it's mysteeeerious.
(log in to comment)
Comments
Omg this seems impossible to solve. How the hell can you incorporate this into a game without making all tge people who try to solve it starve to death :)?
This was just a test - the in-game mazes may well be a lot smaller. If they *are* that big, there will probably be a collectible map and save points, with actually ascending in any given game being more like ascending in Nethack than finishing a single level of a game. ;)
Oh, well this looks a lot more impressing before reading the wiki page you linked to :)
Although it's still a lot more than I got, and cooler :)
Marlow on
2007/04/01 20:06:
Crikey, that's a superb maze. I was playing around with very simple mazes myself, essentially for random room generation, but nothing on this scale. Impressive.