O'Reilly logo

Monkey Game Development by Michael Hartlef

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — updating the explosions

Add a call to the function UpdateExplosions, inside the UpdateGame method.

Method UpdateGame()
UpdateLaunchers()
UpdateRockets()
UpdateExplosions
Return True

What just happened?

With that call to UpdateExplosions, the game will update created explosions automatically.

Rendering beautiful explosions

If you want to render all active explosions, we need to change the RenderGame method.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required