Skip to content

Karakaz/map-gen

Repository files navigation

map-gen

A engine to dynamically create random maps from parameters for games like Risk

Generation process:

Generate two voronoi graphs, the bigger one will be used to build continents, the smaller to build countries.

Continent voronoi

Both voronois together

Next step is to connect two voronoi polygons together to create continents

Creating continents

Lands are now created by combining polygons within continents

Land creation

Final map

FInal map, similar colored lands are in the same continent

Other maps generated

Map2

Map3

Map4

Map5

Map6

About

A engine to dynamically create random maps from parameters for games like Risk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages