Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / 2D Recursive Maze Generator

Author
Message
Licaon
20
Years of Service
User Offline
Joined: 30th Sep 2003
Location: Far in the south
Posted: 9th Oct 2003 00:23
A short routine to generate mazes.
Only limitation to maze size is the stack memory available. the more the bigger


Any sugs?

9 of every 10 people are exactly the 90 %
spooky
21
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 9th Oct 2003 14:23
Here's my version I did a while back.



If your mansion house needs haunting, just call Rentaghost!
Licaon
20
Years of Service
User Offline
Joined: 30th Sep 2003
Location: Far in the south
Posted: 14th Oct 2003 19:10
so much better, very fast, and no recursion.
I've been testing a pathfinding alg. for the maze, any sugs?

9 of every 10 people are exactly the 90 %
spooky
21
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 14th Oct 2003 21:26
Have a look at A* search routines. Best one so far is here:

http://www.thegamecreators.com/?m=forum_view&t=11137&b=6

It is a VERY quick way of finding a path from one point to another.

If your mansion house needs haunting, just call Rentaghost!
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 15th Oct 2003 01:04
The final version (currently!) of the search routine is in CodeBase.

Nice maze generator BTW
Licaon
20
Years of Service
User Offline
Joined: 30th Sep 2003
Location: Far in the south
Posted: 15th Oct 2003 06:42
I'm very disapointed with my recursive maze generator.
It's a slugish beast. No matter it is small and simple, it's a hog.
Any way, breaking eggs paves the way to the omelette.
By the way...the a* algorithm is a beauty.

im reading the code now, so i could understand it fully in order to make a version that fits in my proyect...that's if you don't mind i do so ianM

9 of every 10 people are exactly the 90 %
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 15th Oct 2003 13:14
That's the reason that I posted it

Login to post a reply

Server time is: 2024-04-28 10:37:19
Your offset time is: 2024-04-28 10:37:19