cehrensperger / SystemicProject

0 stars 1 forks source link

clean up world generation #14

Open benbenfive opened 4 years ago

benbenfive commented 4 years ago

World generation is currently in a "working" order but some stuff is done sloppily or should be moved. It is not set up to work with a bunch of random biomes and has no way of dealing with having no biomes in a climate zone. Possible fix might be a default biome or somehow stretching nearby biomes to cover the empty area either in the world itself or stretching their ranges when choosing how to fill a section.

a climate area or zone is a section where all three variables heat moisture and elevation are the same size (low medium high) on every tile (example: low heat high elevation and low moisture on every tile).

One wishful idea is to have world generation fill one biome at a time rather than one tile at a time. The idea is to take and modify the seed based generator and then to instead of checking if something is 0 check if it meets the same climate zone as the first checked tile. Continue through till you have marked the whole climate section then you can check to see how many tiles you have filled with a count variable and determine if the biome is a tiny strip or a few tiles and if so remove it and fill it with a nearby biome

feel free to make any additional changes to it just make sure it works at the end.