-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|686|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Generators


 
Pakz
Created : 20 June 2018
Edited : 20 June 2018
Language : Monkey-X

Map Generator Lines and Zones(grow)

2d Maps

Screenshots

Latest Update

This code(commented) creates maps by creating lines in a stack and drawing these on a map. Each line has a length and a angle. It starts with one line and at random new lines can be added at the current line position each with a new random length and direction.

When the lines have been drawn the generator function grows the lines so they turn into landmasses. Becourse the lines are all connected a single land mass is formed.

Then another zone(grow) set is done. A number of zone numbers are put onto land coordinates and they are also grown creating those biomes.

 

Comments


Wednesday, 20 June 2018, 14:15
Jayenkai
A lovely little island generator.

Couple this with a nice set of tiles, and you could make a lovely large scale tilemapped island of sorts.
.. Would probably need a lot of tiles, though, or some rather clever alpha blending.