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

Time for action — updating the bombs

Implement a call to the function UpdateBombs, inside the UpdateGame method.

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

What just happened?

We havejust have added a call to UpdateBombs, inside the UpdateGame method.

Rendering beautiful bombs

To render all existing bombs, we need to change the RenderGame method.