Game
Cmd & Kill
11 years ago

Working with AI


I finally added basic AI to the enemies and the players units. It is still quite simple but here is what they can do: Goto, attack, follow and die.

5d0c49ee7d457.gif

(Red squares mean collision area for pathfinding.)

Here is a unity editor view with Gizmos. Red circle is the attack radius, green is the awareess radius and the inner blue radius is the collision radius.

5d0c49f078087.gif

For the values of each unit I am actually loading in the values from a online spreadhseet in realtime

5d0c49f38eb4c.jpg

So when I want to balance and tweak some units I can easily do that from within the spreadsheet without copy and pasting values into my code.



4 comments

Loading...

Next up

Crowd movement Today I managed to get a bunch of soldiers running. The special thing is that they do not intersect each other and nicely pay attention to each other as a group. Planning to add some sample vehicles soon as well

Placing enemies on the map This is more a smal update but I started placing enemies on the map so that I can start writing their Ai I might change the enemy color at a later time but for now they are green.

Unit Movement part 2 Some basic unit movement has now been added. Right now units can be selected and moved accross the screen. Each unit has its own collision radius and makes sure that no other unit moves into the same position as another unit.

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!

art comission.

Shoobies leave a sticky trail of mucus in their wake, which can impede movement for any creature that steps in it.

Fan art for Foolish I'm feeling kinda better so I drew this

Here's a peaceful little forest scene for this #screenshotsaturday, from the beginning of the game.

Shadow The Hedgehog X pixel art

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