This is the source code of the Medieval Fantasy City Generator (also available here). It lacks some of the latest features, namely waterbodies, options UI and some smaller ones. Maybe I'll update it later.
You'll need OpenFL and msignal
to run this code, both available through haxelib
.