drseuss Posted June 6, 2010 Share Posted June 6, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/204038-random-map-generator/ Share on other sites More sharing options...
Mchl Posted June 6, 2010 Share Posted June 6, 2010 Many map generators use Perlin noise to create realistic maps http://en.wikipedia.org/wiki/Perlin_noise Quote Link to comment https://forums.phpfreaks.com/topic/204038-random-map-generator/#findComment-1068685 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.