This is a cool game ! I really like game where you only watch the results of your decisions :O
Making this AI must have been hard :/ So GG for that and for doing everything else !
Viewing post in Fighters jam comments
Thank you very much :) Me too! I just like to watch them
The AI in this version is actually very simplistic but you are right, in general developing AI is really hard!
Here I just make them attack the nearest enemy soldier to them ad move in a straight line towards them. For now it is a really inefficient but effective double for-loop that gets executed every frame to update the target.
I have a collisionbox that checks if the target is in range and then executes the attack. The collision between the fighters is handled by the physics enginge of Godot and uses another collision box