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 / Dungeon generator for tier 1

Author
Message
BraindeaD
16
Years of Service
User Offline
Joined: 30th Mar 2008
Location:
Posted: 18th Apr 2016 14:33
Hi all,
Anybody know any algorithm that can be easily converted to AppGameKit to create dungeons like in moria, angband style games?
I've read some them but are difficult (to me) to adapt it to Agk tier 1.

Thanks in advance.
Regards
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 18th Apr 2016 15:22
i asked a teammate for it.

the idea is to have a grid (x,y array ) and roots that grow (parallel) from outside to inside until a node is used.
between 2 grid points are a wall and point 1 is start of wall and point 2 is end of wall.
walls can be horizontal or vertical.
so each point have a direction flag for left/right/up/down, with it you can paint your wall as line.
this roots can grow random in any direction if the target point is free.
also a point can start recursive branches after a way count or any other rule.

AGK (Steam) V2.0.18 : Windows 10 Pro 64 Bit : AMD (15.30.1025) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 18th Apr 2016 16:09 Edited at: 18th Apr 2016 16:12
I have a fairly basic roguelike dungeon generator but it's fairly basic at the moment. It could be built upon.
Using AppGameKit V2 Tier 1
Sph!nx
15
Years of Service
User Offline
Joined: 3rd Dec 2008
Location: The Netherlands
Posted: 18th Apr 2016 16:29
Currently fiddling with the same stuff for my own little project... and a little directionless as well.

@ Baxslash
That looks awesome! Would love to have a peek at that!
Regards Sph!nx
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 18th Apr 2016 17:36
Here's the map part of the code:
Using AppGameKit V2 Tier 1
Sph!nx
15
Years of Service
User Offline
Joined: 3rd Dec 2008
Location: The Netherlands
Posted: 18th Apr 2016 17:52 Edited at: 18th Apr 2016 17:55
Ohw yeah! Thanks Baxslash! I will take my time and dissect it thoroughly!

Edit:
I see how you've done this. Basically, shapes (made from tiles) are generated, this are spaces/rooms. The shapes are labeled/stored so that when the connecting shapes (corridors) are generated the room data is used as a base for that. Correct?
Regards Sph!nx
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 18th Apr 2016 22:12
That's basically it yes
Using AppGameKit V2 Tier 1
BraindeaD
16
Years of Service
User Offline
Joined: 30th Mar 2008
Location:
Posted: 19th Apr 2016 05:11
Hi all,
@Markus, thanks for the info. I'll try to use it while doing my dungeon generator.
@baxslash, that's great! I'll study your code! Thanks for sharing.

Best regards
Sph!nx
15
Years of Service
User Offline
Joined: 3rd Dec 2008
Location: The Netherlands
Posted: 19th Apr 2016 13:30 Edited at: 19th Apr 2016 13:33
Thanks again Baxslash! Great example!

(@ BraindeaD: Sorry for "high-jacking" your thread... )
Regards Sph!nx
BraindeaD
16
Years of Service
User Offline
Joined: 30th Mar 2008
Location:
Posted: 20th Apr 2016 05:25
@Sph!nx, don't worry!

Login to post a reply

Server time is: 2024-09-29 13:31:39
Your offset time is: 2024-09-29 13:31:39