Perlin Noise Map Generator
- Haotian Zhang
- Mar 16
- 2 min read
As a personal interest, I looked into how to use Perlin noise to generate a 2D map for world design. If you read my WFC blog well, I have to say Perlin took me a longer time. But it did set a good base for understanding the basic rules of Map Gen.
In my current demo, you just need to enter a seed, then you will wait for 30 seconds to get yourself a map:

Main Rules
Rules of this map generator:
The initial Perlin map is warped to be an island, and turn outside areas to pure ocean.
Set mountain peaks to be the local maxima, and the mountain terrain turns all areas above a certain level (0.7) into the mountains (Grey Area).
Turn the local minima into circle-shaped lakes.
Throw 6 territory markers into the map, and make them walk randomly to expand their territories. (Other 6 shiny colors)
Use Perlin worm (cheap random pathfinding) to connect the peak to the lakes and then the lakes to the nearest ocean.
You have a map with altitude information stored in every grid, enjoy the world map!

Optional Rules:
Overlapping Perlins to form forest band:

Placing in cities and towns:


To capture the usage of the terrain types... honestly, its up to the game I make next. I thought I could use them as "Kingdoms" or "Factions" but they can also be just different "Habitats" of "Species" depending on your game. Since I am a huge fan of Kenshi, the "Faction" idea sure would fit my thoughts better:)
Next step, if you wanna turn this map to 3D, get an infinite perlin map and multiply that by the altitude of this world map. You will get a convincible map from there.