/ProcessingJS-Terrain-Generation

2d birds-eye terrain generation with ProcessingJS.

Primary LanguageProcessing

ProcessingJS-Terrain-Generation

2d birds-eye terrain generation with ProcessingJS.

A giant buggy mess, you should probably only try to run this with a supercomputer, as it has about 5 for loops that cycle through every pixel of the screen.

you can run the code here if you can't be bothered to ctrl c it to somewhere.

Terrain-Generator

Notes

ProcessingJS's noiseSeed() and randomSeed() functions don't change anything (I think this may be a bug) so the noise() seed is always the same. to counter this, I just added a random number to the z-axis on the noise() function.

Biomes

(this is a biome map)

Name Moisture Height
water any <.475
sand any >.475 <.5
mountain any <.575
desert <.45 <.575
grassland >.45 <.6 <.575
forest >.6 <.575