An explosion will occur if a target is hit. Also, the explosion is shown when the projectile has finished traveling.

The location of the explosion is determined at runtime as the location of the target that will be hit. The duration of the explosion is set at compile time with a frame count. In turn, the explosion object keeps track of the frames with calls to its draw method and signals when the desired frame count has been reached.