Now that we are detecting collisions between the projectiles and the spaceships, it would be nice to do something more interesting than printing a line to the console. It would be nice to have a little explosion animation for our projectiles and our ships when they hit something. We can add an animation associated with each of these objects as they are destroyed.
Instead of loading multiple sprites for each frame of the animation as we did in a previous chapter, I'm going to introduce the concept of sprite sheets. Instead of loading a single projectile frame and a single ship frame for each of our spaceships, we will load a sprite sheet for each that includes not only the undamaged version of each but a destruction sequence that we will animate through when any of these objects are destroyed.
Having three different sprite sheets in this...