I need a random dungeon generator code.
Moderator: Forum Moderators
-
- Posts: 1
- Joined: February 27th, 2015, 3:06 pm
I need a random dungeon generator code.
Hello,
I'm using gamemaker from y0y0games
and I'm trying to create my own personal dungeon crawler game.
Can anyone please teach me or show some tutorials about random dungeon creations??
I'm using gamemaker from y0y0games
and I'm trying to create my own personal dungeon crawler game.
Can anyone please teach me or show some tutorials about random dungeon creations??
Re: I need a random dungeon generator code.
Hello,
I have written a C++ based world generator that works quite well for dungeons (not quite well for exterior areas so far). It's highly customisable, you can make some parts very strongly random and other parts exactly as set. It also generates the dungeon on the fly, so if you set it so, you can just go one way and keep entering new parts almost endlessly (well, there is currently a bug limiting this, but that's just a bug, not a design limitation). Populating the dungeon is enemies is strongly unfinished.
If you want, I can send you the source code and some configuration files I have so that you could see how does it work. There is a lot of code unrelated to the terrain generation, so it's not an optimal tutorial, but I don't know of anyone making something similar (Battle for Wesnoth terrain generators are usually for exterior).
I have written a C++ based world generator that works quite well for dungeons (not quite well for exterior areas so far). It's highly customisable, you can make some parts very strongly random and other parts exactly as set. It also generates the dungeon on the fly, so if you set it so, you can just go one way and keep entering new parts almost endlessly (well, there is currently a bug limiting this, but that's just a bug, not a design limitation). Populating the dungeon is enemies is strongly unfinished.
If you want, I can send you the source code and some configuration files I have so that you could see how does it work. There is a lot of code unrelated to the terrain generation, so it's not an optimal tutorial, but I don't know of anyone making something similar (Battle for Wesnoth terrain generators are usually for exterior).
Re: I need a random dungeon generator code.
In case you are still looking for a random dungeon generation algorithm, this is a nice tutorial:
http://www.roguebasin.com/index.php?tit ... _Algorithm
And in this file you can find the random dungeon generation algorithm I used for Wyrmsun (function GenerateRandomDungeon).
http://www.roguebasin.com/index.php?tit ... _Algorithm
And in this file you can find the random dungeon generation algorithm I used for Wyrmsun (function GenerateRandomDungeon).
Re: I need a random dungeon generator code.
Don't bother replying, the guy last visited the forums when posting (check his profile). I invited him to send me a PM and he never sent me anything.
Re: I need a random dungeon generator code.
Ah ok, well, thanks for the heads upDugi wrote:Don't bother replying, the guy last visited the forums when posting (check his profile). I invited him to send me a PM and he never sent me anything.