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
  • PrintPrint
Share this Page URL
Help

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

Time for action — updating the rockets

Time for action — updating the rockets Add a call to the function UpdateRockets, inside the UpdateGame method. Method UpdateGame() UpdateLaunchers() UpdateRockets() Return True What just happened? That was quick, right? We have a class for our rockets now. We can create them easily and update them through a simple call of a function. Once they reach their target, they destroy themselves. Rendering our furious rockets To render all active rockets, 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


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint