Perlin Map Generator SOURCE

This example will generate random world terrain using Perlin noise. The script createNoise() makes a grid of 256 by 256 with perlin noise (each coordinate has a value from 0.5 to -0.5). generateWorld() uses this grid to make a terrain using background tiles.
Each coordinate in the grid corresponds to a 32*32 tile in the room. A high value (>0.2) in the grid means snow in the map. Then as the value gets lower the terrain changes. The lowest value is water.
You can change the tiles to objects in generateWorld() for more interactability. You can make the tiles smaller for higher detail by changing the backgrounds and modify generateWorld(). This is just an example to get you started.

Download
Released 2011-12-09
Category Other
Rating 4.4 (by 7 users)
Downloads 492
Version 2
ID 190597
Slug perlin-map-generator-source