Monkey Game Development:Beginner's Guide
上QQ阅读APP看书,第一时间看更新

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.