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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.249.42