Korge mapgen
This is a korge map generator for Pocket Palm Heroes remastered.
Algorithm
Is based mostly on this presentation by Gus Smedstad, who is the HoMM3 programmer.
5 steps:
- Parse a map template file (examples are in
/resources
) - Place circles with connecting segments
- Create Voronoi Diagram from circle centers
- Restructure diagram into a grid of cells, where each cell represents an empty tile.
- Populate all tiles (obviously the most complex step, but for now it is enough to get the basic idea)
Here is how an incomplete second step looks like: