Closed ralph-the-mighty closed 11 years ago
@ThyberZee We could start with that. And we could add more advanced AI like AI in Balloon Tower Defense 5
@ThyberZee The only thing that has to be stored is the tower's target. The target would be set to the furthest advanced hero within range of the tower. Checking if a hero is within range can be done with the distance formula. Then for knowing which hero is furthest advanced, we would need to store the hero's total distance traveled from when it enters the map.
All right. Should the methods go in the Tower object constructor in the engine.js file, then?
Anyone have any suggestions for the tower AI? I have an idea here that I just wanted to throw out and see what you think.