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

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.

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

So

i may or may not make an full art of some person or i may just leave this like that-

"Thanks guys for endless hours of fun." 👍

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

#sonic #mario #photoshop

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

Another house i made long time ago.

Just a Pico sprite

What you all think