Random Isometric Map Generation
isometric map generation
Demo
Rows
Columns
Seed Points
Delay:
Generate
Code
Initialization
This function sets the initial seed
points and initializes the map.
Expansion
Recursively expand each point.
Improvements
Other nice features that could be added:
-
Multiple sprites for the same terrain type. Add the sprite index to the
last item of the
points
array in the
genmap()
function.
-
To prioritize a certain type of terrain, modify the
rand
function for the initial points.
-
Terrain transitions. It would require another pass and different
sprites.