Jump to content

Random Map Generator


drseuss

Recommended Posts

Ok, I have a basic idea of what I should do for this.

 

But I also do not believe it is an efficient way of doing this.

 

My basic idea:

 

Set all tiles to unsigned

Place a few random land seeds

Check all adjacent tiles to see if unsigned

if unsigned, give it a property (land water whatever) (70% chance to be water, if land make unsigned tiles around it land)

 

Like I said... basic. I just don't know how i would make the land stop growing after it starts... I don't know how I would make the land look more natural (not so square)... and shore lines I think are going to be hard.

 

I don't want the code for a random generator... Just help understanding how this process would be completed (a push in the right directions)

 

Thank you for any and all help from everyone in advance;

drseuss

Link to comment
https://forums.phpfreaks.com/topic/204038-random-map-generator/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.