Skip to content Skip to sidebar Skip to footer

How To Make A 2d Map With Perlin Noise Python

I have been experimenting on making a random map for a top down RPG I am making in Python. (and Pyglet) So far I have been making island by starting at 0,0 and going in a random di

Solution 1:

a perlin map can be generated easily.... it is simply a 2d array of values (typically 0 - 255) you just need to pick a threshold (say 126) anthing higher than that and render your land square. otherwise render water

something like this may help http://simblob.blogspot.com/2010/01/simple-map-generation.html

Solution 2:

You could also use 1d perlin noise to calculate the radius from each point to the "center" of the island. It should be really easy to implement, but it will make more circular islands, and won't give each point different heights.

Post a Comment for "How To Make A 2d Map With Perlin Noise Python"