This script generates a 50x50 map grid with various terrain types using simplex noise.
-
Install Dependencies:
npm install
-
Adjust Parameters to Your Liking:
- Height and width can be modified to provide a different sized grid.
- Modify names of terrains as you see fit.
-
Run the Script: This will generate a file called
mapGrid.json
that contains your grid data.node index.js
- Water
- Coast
- Desert
- Plains
- Forest
- Mountains
- Arctic