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

Smile! Here, take some happy pills! ✨💊 #Blender #3DModelling #3DArt Buy me a Ko-fi: https://ko-fi.com/barbarafb_

Enemies can also suddenly spawn through Realm Rifts. These Rift Spawns are going to be stronger than the ones wandering around. TBD on the enemies... #screenshotsaturday #godstear #madewithunity

I have added rewards for quests so that villagers can give you something in return for your hard work helping them. 🥳

I want to know - what's your favourite quest reward?

Protege el conocimiento, salva la historia. Guardian of Lore es un platformer 2D en el que debes luchar para mantener viva la memoria de la mitología latinoamericana. El juego llegará a Steam el 18 de mayo: https://steam.pm/app/1211740 #ScreenshotSaturday

Sometimes the suction cup get sticky. Small animation I made in Blender after doing my tutorial on picking up/dropping objects in animations. Crate model by jQueary (https://sketchfab.com/3d-models/game-ready-sci-fi-crate-d98deca6…).

So here's the first of the zodiac signs i will make for the next weeks.

Rockin the Guitar, an Axe like Guitar I made for my Uni project

We're glad to announce that Baby Dino Adventures 🦖 is now available in Early Access here on GameJolt! Link: https://gamejolt.com/games/babydinoadventures/508121 Walk, run, and jump as a baby t-rex in this cute platformer Free demo available #IndieGame | #GameDev | #PixelArt

Regular exercise is key for healthy wings.

Try it out!

https://gamejolt.com/games/AeonNightmares/605184

"Day to Day" (also check spud out here he's a great guy and writer: https://soundcloud.com/spudward)