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

Chapter 18. 9-Ball > Game Code

Game Code

The amount of code used in the Actions frame of the game movie clip in this file is intimidating. There are nearly 700 lines of code used to make this game work. But don't despair—a large chunk of this code is from functions you've already seen throughout the book. For instance, we use frame-independent collision detection and ball-ball collision reactions. Both of those were explained in detail earlier in the book and are fairly lengthy functions.

In this section I'm going to give you an overview of how the code in this game works. Then we'll talk about some specifics.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint