To modify the gameClasses file, we will follow the ensuing steps:
Open the gameClasses.monkey file.
Add an Import statement for the bombClass.monkey file.
Import explosionClass
Import bombClass
Save the file and close it.
What just happened?
You have added importing of the bombClass.monkey file so it can be used now.
Updating bombs
Just like rockets, bombs will move down the screen, and so need to be updated each frame. For this, we need to call the function UpdateBombs within the UpdateGame method.