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 5d0c49ee7d457.gif](https://i.gjcdn.net/public-data/fireside/posts/0/148/21648/media/5d0c49ee7d457-g6gdac5z.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 5d0c49f078087.gif](https://i.gjcdn.net/public-data/fireside/posts/0/148/21648/media/5d0c49f078087-rd7ifgqw.gif)
For the values of each unit I am actually loading in the values from a online spreadhseet in realtime
![5d0c49f38eb4c.jpg 5d0c49f38eb4c.jpg](https://m.gjcdn.net/content/750/2143955-kfrmkjfh-v4.webp)
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