Posted on November 9, 2005 by Doolwind

Missing a Missile

I’ve finally finished the first pass over my missile interception code. It took me quite a while to iron out the remaining bugs, but it’s all done now. I ended up having 3 bugs which were causing the missile to miss slightly, however now they’re fixed it’s looking quite good.

The counter missile flies along and appears to be reacting the the target missile path even though it’s course has been pre-generated. I’ve also put some simple AI in which shoots down incoming missiles if they are unprotected by ECM missiles. Below is a picture of the counter missile in action. The target missile started on the left and is flying towards the right, the counter missile begins at the right and flys towards the left. As you can see, the target rotates slightly towards is left and so the counter missile follows by rotating to it’s right.

Next on my todo list is implementing the defensive state so two players can play against each other. I’m also going to start implementing some more complex AI as I add new features. So far the AI system is working really well. The fact that the entire system is event driven makes adding new AI behaviours simple and flexible. I’m also going to start putting together a schedule so I should know an approximate date for the ‘tech demo’ alpha release soon.