random maze generator?

Blitz3D Forums/Blitz3D Beginners Area/random maze generator?

Braden(Posted 2008) [#1]
Is their any way to use the rand code to make random mazes that the camera could get through? So that it sets the walls up randomly but creates a maze the camera can go through?


GfK(Posted 2008) [#2]
http://www.blitzbasic.com/codearcs/codearcs.php?code=981


PowerPC603(Posted 2008) [#3]
http://users.telenet.be/vge/downloads/MazePack.zip

This is some code I created, it has a maze generator (2D bitmap), the code for generating the maze was taking from a VB6 project on the net, but is modified to function with B3D.
I also expanded it, because it could only create mazes of 20x20.

There is also a converter, which scans the bitmap and generates some code which defines the building blocks of the maze (straight corridor, T-junction, ...)
Finally there is Maze3D, which allows you to walk through the maze in 3D and pick up coins.

This pack comes with full source-code which is free to use/modify.