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


 
Pakz
Created : 04 November 2017
Edited : 04 November 2017
Language : Monkey-X

Zelda'ish Fantasy map generator

Generate 2d fantasy maps

Html5 page
Screenshots

Latest Update

I spend today working on this. I found a page on the internet (link in code) showing how to randomly generate maps like this. I did not really read it fully but noticed several familiar things I knew already.

The code here might be a nice starting point (template) for creating a zelda like game.

The graphics are done with Draw rects and ovals/circles. (Not for realtime use if maps are really big)

Has trees, grass, water, plank bridges.

The grassmap[][] and bridgemap[][] arrays in the map class contains the walkable area's .(1=walkable)

 

Comments


Saturday, 04 November 2017, 10:38
Jayenkai
Nice!
And fast, too.
Saturday, 04 November 2017, 17:13
rockford
That's pretty neat