blitzxion / Tanks.js

Using Javascript and HTML5, watch the AI build up their army and battle each other!
12 stars 4 forks source link

Fighter jets don't slow down to fight other jets #4

Closed blitzxion closed 12 years ago

blitzxion commented 12 years ago

Jets should adjust their speed to match their target (if it is a plane).

This really only applies to jets fighting bombers.

Keep in mind that the Drone plane is faster than the jet, so there needs to be a limit on how fast the planes can go. All units are typically running at max speed, so if the target is faster than your max speed, don't go faster, just follow if possible (or switch target, doesn't matter!)

blitzxion commented 12 years ago

This is fixed up; they will slow down if their angle is <> 30*, otherwise turn around to get them.