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.

AppGameKit Classic Chat / Free Code - Maze generator

Author
Message
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 18th Feb 2013 23:02 Edited at: 19th Feb 2013 08:14
Here is some great, relatively easy code to manipulate to your needs for creating a simple maze with a start and exit point. It's completely based on a simple function in DBPro by spooky. I just adapted it for fun into AppGameKit

I hope it's useful to someone!


EDIT: Original post - http://forum.thegamecreators.com/?m=forum_view&t=87535&b=7


this.mess = abs(sin(times#))
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 18th Feb 2013 23:06
Awesome!

baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 18th Feb 2013 23:17
I am making an old style tank battle game to play between pc / ipad / ipod with my boys (as a little light relief from my TGC work). I had a cruddy random city generator and this works sooo much better at making an interesting and simple environment

If I ever finish the game I'll post something in WIP later but I found this function so useful I thought I'd share it here for those of us who don't fully appreciate the search button at the bottom I just entered "maze algorithm"...


this.mess = abs(sin(times#))
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 18th Feb 2013 23:28
Haha, good way to pass time at least you spent it creatively

Thank you for sharing it, I should get AppGameKit installed soon but waiting for the next stable release before I do that... really want to fiddle with the 3D aspects in depth

I really hope PhysX gets implemented...

Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 18th Feb 2013 23:37
I tried compiling it, but I just get a small blue square.

Did you design this with the 1.088 beta? Or 1.076?
Talairina
18
Years of Service
User Offline
Joined: 9th Jan 2006
Location: United Kingdom
Posted: 19th Feb 2013 01:05
Daniel I had the same issue but fixed it by changing this;


to


I had it running fine after that on 1.08 Beta 8. Really good little maze generator. I like it.
erebusman
12
Years of Service
User Offline
Joined: 23rd Jul 2011
Location: Sacramento, CA
Posted: 19th Feb 2013 04:54
Very awesome, I was thinking about how to do something like this recently I really appreciate your sharing the code/example!

baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 19th Feb 2013 08:15
Good spot Talairina, fixed the first post


this.mess = abs(sin(times#))
Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 20th Feb 2013 02:09
Nice, this code has given me an idea for procedurally generated maze based RPG text game.
Talairina
18
Years of Service
User Offline
Joined: 9th Jan 2006
Location: United Kingdom
Posted: 20th Feb 2013 03:48
It gave me the idea of those wonderful old games Tilt Mazes. I've started work on one using AppGameKit and your fantastic maze generator. I love how a piece of code can inspire other's in to ideas.
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 20th Feb 2013 08:29
Well it's spooky's code I take no credit but I'm glad my sharing it has inspired some of you!


this.mess = abs(sin(times#))
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 20th Feb 2013 16:33
Nice one bax
Have to check it out later on and use it in my dungeon crawler.

Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz
DennisW
15
Years of Service
User Offline
Joined: 15th Jun 2008
Location: Ohio
Posted: 20th Feb 2013 17:31
Have to give this a try. Looks like a lot of fun. Ok now that you had your fun get back to work. After all you have to carry all the weight around there. Hee Hee Thanks for posting this.

Ham and Eggs Breakfast
The Chicken was involved the Pig was Committed
AGK Community Tester

Login to post a reply

Server time is: 2024-05-02 09:08:01
Your offset time is: 2024-05-02 09:08:01