I've done quite a bit since the last time I posted. I put the HUD elements that Brandon designed into the game. I created a system where enemies spawn at intervals at random positions around the player for survival mode. I did lots of AI work and made them do fly-by passes at the player.
I also used what I learned for the radar with the viewport transformation matrix in several other aspects of the game. For the targeting, I calculate where the enemy will be by the time the laser gets to it and draw a "lead target" for the player to shoot at. I also draw a square around the currently selected target and an arrow pointing to the direction you should fly to get to the enemy quickest. I used the same ideas to make the AI aim better.
The same principles fixed the position of the crosshairs in the third person view. They adjust their position according to how far away the target is.
No comments:
Post a Comment