| Honey
Comb Maze |
|
|
Why...? How...? http://www.pmms.cam.ac.uk/~gjm11/programs/maze/index.html ...the web page describes the use for a hexagonal maze but the algorithm works for any regular grid. I like the algorithm because you end up with a maze where every cell is connected to every other cell by only a single path. Great for generating game levels with enemies wandering the maze. After that I added my own solving routine which is like a simple depth first sort. I made Flash draw the paths every time it reaches the end of a branch which makes a nice seeking effect. The path is drawn by a friendly spider once the maze is solved. Try solving the maze yourself with the arrow keys first... open fullscreen (ie only... ctrl-w closes) |
|