0 Members and 1 Guest are viewing this topic.
That's pretty cool. I didn't know someone made an Axe map generator though Good work on it though
Thanks I should port this to Axe, because it would only need about 100 bytes of RAM to store data for the maze while generating it (outside of the graphscreen, of course)I'll do that when I have the time
What algorithm do you use? It looks very interesting, and fairly fast!
Might as well upload one of my old BASIC creations, especially since someone's made an Axe one This one is based on Eller's Algorithm (http://www.astrolog.org/labyrnth/algrithm.htm#perfect, scroll down a bit)When you start it it asks for four numbers: How long it should be (X), How wide it should be (Y), and chances for carving vertically and horizontally (give as a decimal, not a percent )I'm sure if Weregoose looked at it he could find numerous optimizations It can generate a full-screen maze in a few minutes.I've included two screenshots: one of it generating a 48*32 maze (for the impatient among you ) and one of a full maze.Enjoy! (Yeah, it's slow, but whatever )
I used Eller's Algorithm. You can read about it at http://www.astrolog.org/labyrnth/algrithm.htm#perfectJust scroll down a bit
prgmMAZE is a backtracking maze generator. When there are no available spots to carve, it backtracks until there is an open space. Because of memory limitations, large mazes will start writing outside of saferam: be careful if you decide to adjust the size! (to do this, recompile with different values for L and W.)
Now to make one where you can go through the maze.
Quote from: JustCause on November 22, 2010, 10:36:06 amprgmMAZE is a backtracking maze generator. When there are no available spots to carve, it backtracks until there is an open space. Because of memory limitations, large mazes will start writing outside of saferam: be careful if you decide to adjust the size! (to do this, recompile with different values for L and W.)DJ, mine won't corrupt RAM
EDIT: My post was made within 18 seconds of your post. I wonder what the record is.