Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

3. Game #2, Rocket Commander > Time for action — updating the bombs

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial