Tank Assault is an AI demo programmed in C#. A team of attacking tanks attempts to reach a goal, defended by defender tanks.
The visualisation code has been taken from my previous projects, so that I could focus on the AI code. An A star search acts as a path finder for the attacking tanks, when navigating to the goal. An fsm system was used, to give entities states.
Attacking tanks will default to IDLE, where they will find a path to the goal node. If they drop below a health threshold, they will enter a FLEEING state and navigate back to some heal nodes at the start of the map. If an attacker finds a defender within attacking range, they will shoot at the defender whilst moving towards to goal.
Defender tanks search for a target within attacking range, and then lock on. The defender will then shoot at the target until it is lost, and then try to find another one.
If you would like to see the source code, please contact me at - joe.tinkler@gmail.com
