• Register

Towncraft II is real time strategy game with Warcraft 3, AoE & Minecraft as biggest inspirations. In the game, you start out as a small village and need to develop it in order to don't get destroyed by the monsters that may show up at night. There are 5 resources in Towncraft: Food (that keeps population alive), wood (that is used to build almost everything), iron (needed to train all the military units), gold (used to buy resources) and glory (used to buy upgrades for your town). As your town level up, new buildings get unlocked, and you'll need to face tougher challenges too. There are 11 buildings to construct: houses, fences, farms, lumbermills, roads, towers, barracks, magic schools, markets, walls & mines.

Report RSS Week #4 - new FOW, and AI villages' development

Sorry if I haven't posted Week #3 news, I didn't because I simply did nothing to the game that week, lol. But this week I worked a lot on it.

Posted by on

Sorry if I haven't posted Week #3 news, I didn't because I simply did nothing to the game that week, lol. But this week I worked a lot on it. I made a new fog of war system:I'm also working on two things, one is very important, a new movement system, and the other is very cool, the AI villages development. Their AI work like this, in order of priority:1. Pop. capacity exceeded? Build a house.2. Food production < Food consumption? Build farm.3. No villagers for building requests? Train villager.4. Order idle villagers to work on mines/lumbermills if possible.5. Build mine/lumbermill when nothing is really needed.Each village has its action_delay variable, which defines the time between these checks above. The faster the checks, the faster they raise. Difficulty defines their action delay, added to some random number. I need to add more things like make them build markets, barracks, etc, also making them train warriors when in need of protection and make they plan attacks (mwahaha) against the others, of course, but it's already very nice and grateful to see them raising their own villages, hehe.

Post comment Comments
PetrenkaPie
PetrenkaPie - - 1,040 comments

awesome progress. you developed to ai villages much more quicker then minecraft xD

Reply Good karma Bad karma+2 votes
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: