Hi guys !
I’m working on a simple AI, and I’d like to have your feedback. I used the pathfinding from Aron Granberg. I tried the one from Angry Ant, but it wasn’t conclusive.
To test the web player : http://www.berengermantoue.fr/unitygames/ia.html
To download the package : http://www.berengermantoue.fr/unitygames/AI_BerengerMantoue.unitypackage
PS : About the package, sometimes the layers are lost during the import. If that happens, recreate them in that order :
- 8 : Enemy
- 9 : Obstacle
- 10 : Player
There is an explanation in the player, but it’s in french (as well as most comments in the code) so here is the translation :
ZQSD or arrows to move the blue capsule. Press the buttons on the right to choose the reaction of the AI when you enter it’s field of view.
You’ll note the text over the target, corresponding to the FSM object oriented I made : The first line is the IBehaviour currently used to decide where to go, the second line is the ITechnique used to move. Ithink when you see it in action, it’s pretty obvious.