itsapi / pycraft

A Minecraft-inspired game for the terminal
GNU General Public License v2.0
197 stars 21 forks source link

Biome Generation #71

Open olls opened 8 years ago

olls commented 8 years ago

The current biome generation algorithm is weird, this makes it difficult/impossible to adapt to the new 'feature' system. Other features depend on the biome for the current slice, which depends on biome markers for uninitialised slices. We need a better system which gives each slice a biome type, which can be calculated for each slice independently, but still have a low frequency across many slices.

olls commented 8 years ago

We could just give each chunk a biome type, but that would be a bit boring.

olls commented 8 years ago

The current system is very broken.

geraintwhite commented 8 years ago

Do it the same as the new hills

olls commented 8 years ago

Not particularly relevant because it uses attributes of the regions to picl the biome: http://www-cs-students.stanford.edu/~amitp/game-programming/polygon-map-generation/#biomes

Although the way it generates the regions could be useful... https://en.wikipedia.org/wiki/Voronoi_diagram

olls commented 8 years ago

We could go back to the random biome per chunk, but randomise the boundary of the biome within the chunk.