Realistic Terrain inward 130 Lines is an interesting tutorial explaining how to piece of job fractals to randomly generate an oblique sentiment of a mountainous terrain. The results are real impressive.
The code uses the diamond foursquare model to exercise the terrain inward exclusively 130 lines of code. The terrain is stored every bit a uncomplicated meridian map which is a 2-dimensional array of values representing the meridian of the terrain at whatever given x, y coordinate.
Theoretically it should hold upwardly possible to extract the elevation information for a given place (for illustration using the Google Elevation API) together with exercise a terrain sentiment of a existent location. That detail business is beyond my coding skills only I'd dearest to run into individual laissez passer on that go.
Second World uses the Google Maps API, Perlin dissonance together with Thomas Wang's hash business office to exercise a procedurally generated world.
The code for Second World could furnish a cracking footing for creating random game worlds. If yous accept always wanted to exercise a Google Maps based risk game thence yous should definitely depository fiscal establishment jibe out the beginning code for Second World on GitHub