JavaScript Terrain Generator
Project — 2019-03-08
#JS
A class-based tool that allows users to generate terrain with a variety of flexibility. Github / Demo The Terrain Generation Terrain generation is based around a few key components, randomization, variation and interpolation. Upon creation, the grid is split into chunks, each that have matching corners with the chunks surrounding it. New corners are created based of the variation factor, this makes it so changes in elevation can be varied. For example, if one chunk has the top left corner a value of 1, the three other corners, with a variation factor of 1, can be either 0, 1 or 2.