


Hi there!So my map generator is finally starting to output decent maps. Every map is randomly generated. It's basicly circles on random locations overlapping eachother for continents and single circles for islands. The map is also tiled.
Formula for generating islands is pretty straight forward:
for d = 1 to degrees
radius = Cint(rnd() * 15) + 1
x = centerX + Cint(radius * cos(degrees))
y = centerY + Cint(radius * sin(degrees) )
array(x,y) = 3
next
To generate a little randomness I vary radius while drawing the circle.
Degrees is how detailed I want the island. If degrees is too high(1000++) then the islands turn out to be perfect circles. if degrees is very low(10 - 30) islands look like half finished spider webs. So I have degrees somewhat low(50 - 70) so that I get the spiderweb look, and then I trim it down based on the neighbouring tiles. Everything is generated in an array before I write it to sheet.
I would like to add rivers and mountains.
I think this is a finished prodject for now though.
- eArtist
No comments:
Post a Comment