Self-hosted build of watabou's Medieval Fantasy City Generator (TownGeneratorOS). GPL v3.
Find a file
2026-06-08 22:45:45 +08:00
Assets sources added 2017-08-03 17:44:06 +03:00
Source/com/watabou Add TownGeneratorOS source with Haxe 4 compatibility patches 2026-06-08 22:45:05 +08:00
.gitignore sources added 2017-08-03 17:44:06 +03:00
LICENSE Initial commit 2017-08-03 17:37:51 +03:00
project.xml Add TownGeneratorOS source with Haxe 4 compatibility patches 2026-06-08 22:45:05 +08:00
README.md Clean README via rsync 2026-06-08 22:45:45 +08:00

Medieval Fantasy City Generator

Self-hosted build of watabou's Medieval Fantasy City Generator, source from TownGeneratorOS.

License: GPL v3 — watabou's work. See LICENSE.

Haxe 4 Patches

Three fixes to compile with Haxe 4.2.5 + OpenFL 9.5.2 + lime 8.3.2 (original targets Haxe 3):

File Fix
Source/com/watabou/geom/Polygon.hx:25 last()this[this.length-1] — static extension not resolved on abstract this in Haxe 4
Source/com/watabou/towngenerator/wards/Ward.hx:95-96 1 else1.0 else, : 0: 0.0 — strict Float/Int ternary unification
project.xml openfl 8.9.09.5.2, lime 7.3.08.3.2

Build

haxelib install openfl
haxelib install lime
haxelib install msignal
haxelib run openfl build html5

Output lands in Export/html5/bin/. The pages branch contains a pre-built copy ready to serve.