0 Members and 1 Guest are viewing this topic.
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.)prgmMAZE2 shares a lot of code with MAZE, but when there are no free carving spots it randomly picks a spot already open to start carving.These algorithms are really fast, but the most time-consuming part of the code is drawing the screen every frame. This could be omitted for map generation and such.I'll post a detailed code explanation here later.
Nah, Illusiat 7 final dungeon was one huge 96x64 maze, after all. During the final escape sequence, it took 15 minutes to exit on a regular 83+ if you remembered the path approximately. X.x
Quote from: DJ Omnimaga on November 23, 2010, 01:10:33 pmNah, Illusiat 7 final dungeon was one huge 96x64 maze, after all. During the final escape sequence, it took 15 minutes to exit on a regular 83+ if you remembered the path approximately. X.xThat's exagerated.A PC RPG Maker (RPG Maker VX, very cool one!) has an auto dungeon creator, a very good one, and you can choose how hard you want it to be
Last post until Monday.Just found out something neat: MAZE1 generates a 20x20 maze in less than a second if you leave out the DispGraph in the main loop.