Game
Towncraft II
10 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

Runestones: from concept to in-game model🗿

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…).

Finished work on the emotions of a new character for the tank universe

Terraria

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

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

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

Let me introduce you to the new Mech line: Gendai Spec. Those are Mech that specializes in surprise attacks, covered operations, and stealth. They are equipped with melee weapons but one of Gendai's frames supports sniper rifles.

I mostly build 3D First Person Shooter game mechanics in Unity, and in this I'm just showing C4 mechanics I made for a little side project I am working on! :)