A locked-on camera is not a terrible thing, but a better camera shows more of what the player needs to see. In our game, the player is more likely to be interested in what lies ahead in the direction they are moving. A camera that looks ahead in the direction of movement is sometimes called a projected focus camera. We can look at the velocity at which our ship is currently moving, and offset our camera accordingly.
Another camera technique that we will employ is called camera attractors. Sometimes in games, there are objects of interest that can be used to pull/attract the focus of the camera. These create an attractive force that will pull our camera in that direction. One attractive force for our camera is the enemy ship. Another attractive force is projectiles. The enemy ship represents potential action, and projectiles represent a potential...