Monday, August 10, 2020

Blobs of Land Mass

Land Blobs!

Simplify things with a lower resolution, tiles 10 pixels square. I have a grid of terrain tiles and an array full of land tile coords as column times width plus row, so I can do the math and get the longitude and latitude or column and row of a randomly selected land tile and look to see if one of its' neighbors is free to be turned into land... I set a target hydrographic ratio and randomly pick a few tiles if the random # is less than 1/10 of my target HR%. I put the coord in an array of land mass and prove this by turning a randomly picked lm tile brown while counting up to my target HR. Then I can splat out land, in a modified flood-fill.

No comments:

Post a Comment