Maze Generator Recursive Backtracker Algorithm
Loading...
2,864
Loading...
Uploader Comments (LimeIron)
Top Comments
-
song is fu[king shit by fu[cking over used
see all
All Comments (13)
-
-
your maze is awesome awesome
-
how do you make one?
-
ROBLOX?! YOURE AMAZING!
lol or this backtracker algorithm do 100% =]
but you have lots scripts, thats not good =]
i'm trying to learn this algorithm, i wanna create a maul =]
roblox are perfect for lab ;p 3D rendering and easy-script are perfect for everyone ;p
-
OK, thanks! I'm going to start working on a 3D maze gen algorithm now.
Loading...
How do you know that there's a free space?
penlume 2 years ago
The green spaces are actually brick Objects, and instead of deleting them I simply change their transparency to 1.0 and their boolean "CanCollide" to false to make them a "free space". I find out which squares are adjacent to a specific space by calculating their distance away using their coordinates.
LimeIron 2 years ago
That's great! How did you store information for backtracking?
penlume 2 years ago
When a space is cleared I store its position to a list. When it reaches a dead end, it backtracks through the list, deleting items until it finds one that has at least one free space next to it.
LimeIron 2 years ago