Skip to content
/ mapgen Public

Python diamond-square map generator, with terrain/roads/buildings.

License

Notifications You must be signed in to change notification settings

FLHerne/mapgen

Repository files navigation

mapgen

Please note: I wrote this years ago in school, the code quality is poor and there are no tests. Use/read at your own risk!

Not actively maintained, but do email me in case of problems/questions.

Incomplete but usable python program to generate height and terrain maps, using the diamond-square algorithm.

Generates a wide range of terrain types with different preconditions (e.g. blobby water-level marshes, scattered trees less common on snow); can place buildings and route paths between them taking terrain into account. Behaviour can be configured by modifying constants.py, better configuration of terrain types is a to-do.

Requires PIL (or Pillow).

N.B. - master is usually broken, use tagged releases for anything.

About

Python diamond-square map generator, with terrain/roads/buildings.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages