Game
Towncraft II
11 years ago

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. I made a new fog of war system:

5d0c46e924b25.png

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.



3 comments

Loading...

Next up

Just as Pecaminosa's musicians #improvise this rendition of #LittleSunflower 🌻, so do we improvise with this post you're reading. 😂

What's coming out of your own improvs? 🤔

#Pecaminosa | #IndieDev | #OST | #Jazz

Did you know that today is #InternationalJazzDay? 🎷😎

No? 😯 Well, we couldn't pass up this date!

And what better to celebrate this day than #Pecaminosa #OST? 🎷

Let us know what you think about it and have a great weekend!

"Thanks guys for endless hours of fun." 👍

(My first fan art. Read the article, please.)

#sonic #mario #photoshop

One of the most critical update for Sunblaze demo. Now you are able to pet a cat! Finally!

I worked so hard to get all four of them to the end safely, but then...

Today I tackled drawing different variations of facial expressions for one of the main characters in Eden. What do you think of it? :) Eden: https://gamejolt.com/games/Eden/592698

If you’ve played the Vault demo and enjoyed it, please consider ‘liking’ the game page here on Gamejolt and/or leave a comment!

Also please consider tossing Vault on your Wishlist, I really appreciate your support!

https://store.steampowered.com/app/1251800

Colorful Fox

Happy Late Easter!

Respect (Only TLOZ Players Will Understand)

Subscribe to technoblade