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.

DarkBASIC Professional Discussion / Is it possible to make a random generated maze?

Author
Message
BeastMaster
10
Years of Service
User Offline
Joined: 10th Apr 2015
Location:
Posted: 8th May 2015 06:37
I want to make a maze game with a randomly generated maze, but im not sure if its even possible. So my question is, is it possible to make a randomly generated maze? and if it is, how would i go about making one?
Bored of the Rings
User Banned
Posted: 8th May 2015 10:47
Yes you can. See the link below, this should help. Also do a search on 'Maze' you might find more useful info:
http://forum.thegamecreators.com/?m=forum_view&t=123984&b=1
Green Gandalf
VIP Member
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 8th May 2015 11:44 Edited at: 8th May 2015 15:39
That demo is unlikely to be any use without the source code - and as posters mentioned on that thread the demo crashes unless your machine happens to support the display mode used.

On a more positive note, I'm sure I've seen demos of random mazes with code somewhere on this site. I'll see if I can find one.

The short answer to your question is "Yes, you can generate random mazes in DBPro."

Edit Just found a copy of a webpage that might help you - attached.

Here's a simple maze demo of mine. You'll have to Google "Gabriel triangulation" to find out what it's doing.



Edit2 Here's a better random maze link - try the code posted by calcyman. Just use the arrow keys to move around:

maze generator

Edit3 Here's an even better one posted by Spooky on a thread by Muncher:

Spooky maze code



Powered by Free Banners

Attachments

Login to view attachments
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 8th May 2015 23:27
Spooky here! Makes me feel old when someone posts a link to code that I wrote over 9 years ago!

Boo!
Green Gandalf
VIP Member
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 8th May 2015 23:38 Edited at: 8th May 2015 23:50
I was impressed that it ran cleanly with no hassle.

My old demos often fall foul of an update to something or other.

Good to see you're still lurking here, Spooky.

Edit Just had a peek at your site and tried the Mandelbrot demo. Very nice!



Powered by Free Banners
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 9th May 2015 13:14
Yep, still lurking! Like to pop in here a few times a week for a quick read even though not touched DBPro for a few years, however just about to redo website and go through all my old code and put anything of interest onto the site. Finally going to restart and finish my entry for the 2005 puzzle compo!

Boo!
Green Gandalf
VIP Member
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 9th May 2015 19:11
Quote: "however just about to redo website and go through all my old code and put anything of interest onto the site"


I dread the moment when I ever feel the urge to do that with my old code - it'll be time for the men in white coats to appear I'm afraid.



Powered by Free Banners
MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 9th May 2015 22:09
Do people forget the Code Snippets Board?



Green Gandalf
VIP Member
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 10th May 2015 01:51
Yes.



Powered by Free Banners
BlackFox
FPSC Master
17
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 10th May 2015 06:32
Thanks Green Gandalf for the links and info. Bookmarked for future reference.

There's no problem that can't be solved without applying a little scripting.

Login to post a reply

Server time is: 2025-05-11 02:43:27
Your offset time is: 2025-05-11 02:43:27