Psycho_666
Member
Hey.
I am making a game and I am reaching the point where I need to generate the world.
It's a strategy game, so I need to generate the overworld map and the rest will be taken care of by other algorithms I have already made.
My idea is, let's say I divide the world on 5x5 sectors and each sector is different area. That gives me 25 tile map.
Here's the tricky part.
I have let's say 10 dungeons and the other sectors id like to split between land and water.
Random won't work and my brain can't give me a decent algorithm of how to make sure I'm not putting two dungeons at the same location.
So basically, how to make sure I won't generate different dungeons in the same sector?
It's probably something really simple. I just can't think of it.
I am making a game and I am reaching the point where I need to generate the world.
It's a strategy game, so I need to generate the overworld map and the rest will be taken care of by other algorithms I have already made.
My idea is, let's say I divide the world on 5x5 sectors and each sector is different area. That gives me 25 tile map.
Here's the tricky part.
I have let's say 10 dungeons and the other sectors id like to split between land and water.
Random won't work and my brain can't give me a decent algorithm of how to make sure I'm not putting two dungeons at the same location.
So basically, how to make sure I won't generate different dungeons in the same sector?
It's probably something really simple. I just can't think of it.