A long time too late, but here it is. Still needs actual ui implementing for building, and pathfinding can be laggy and buggy over longer paths. There is something of an installation guide on the webpage below, along with a download link. Also creep movement leaves a lot to be desired since I changed it, it seems they aren't choosing target tiles correctly.
http://sotk.co.uk/township.html (best viewed in Chrome)
Also,
FOR BUILDINGS:
To build, select a villager then press
f = campfire (used for recruiting villagers)
w = wall (defensive structure)
p = farm plot (used to gather food)
h = house (used to provide space for 5 soldiers)
a = armoury (right click with a villager selected to arm/disarm)
To gather resources, left click a villager(s) and right click a farm plot, tree or stone outcrop to gather.
Armed villagers are stronger than unarmed villagers. Unarmed villagers will be slaughtered by creeps.
I'll update the .zip when I have fixed some of the pretty big problems, for example the creep movement.
Each house you build allows you to have 5 extra soldiers/armed villagers.
You begin with a limit of 5 armed villagers.
Ignore score. It has a mind of its own right now.
Oh and shift+left click to select multiple units.
Good luck getting it to work. The creep movement is really dodgy, as the pathfinding of your units can be sometimes. Villagers currently start scattered around the map. If they are under the ui, you can select them through it, or drag the ui out of the way like you would drag a program window.
If anyone fancies drawing a better house I would not complain
.