To modify the
gameClasses file, follow the ensuing steps:
Importstatement for the
Import rocketClass Import explosionClass
You have added the
explosion class to the game, so that it can be used later on.
Once a rocket reaches its target position, a new explosion has to be created there. We need to add some code inside the rocket class'