Friday, June 25, 2021

Randomly Generated Maps


Realistic Terrain inwards 130 Lines is an interesting tutorial explaining how to purpose fractals to randomly generate an oblique persuasion of a mountainous terrain. The results are real impressive.

The code uses the diamond foursquare model to exercise the terrain inwards alone 130 lines of code. The terrain is stored equally a elementary tiptop map which is a 2-dimensional array of values representing the tiptop of the terrain at whatever given x, y coordinate.

Theoretically it should hold upwards possible to extract the elevation information for a given place (for illustration using the Google Elevation API) as well as exercise a terrain persuasion of a existent location. That detail chore is beyond my coding skills only I'd dear to come across somebody plow over that go.


Second World uses the Google Maps API, Perlin dissonance as well as Thomas Wang's hash business office to exercise a procedurally generated world.

The code for Second World could render a non bad solid soil for creating random game worlds. If you lot convey e'er wanted to exercise a Google Maps based run a hazard game as well as thence you lot should definitely depository fiscal establishment agree out the origin code for Second World on GitHub

No comments:

Post a Comment