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

4. Game #3, CometCrusher > Using a game framework—the fantomEngine

Using a game framework—the fantomEngine

In Chapter 3, Game #2, Rocket commander we have created every single class and function required for our game. Sometimes we also created duplicate functionality. For example, every object had its render method. This bloats up the code of the game but it was also good to understand the concept of a whole game.

To avoid redundant coding and make your life easier, you can and will use the fantomEngine game framework for this game.

The source code file, fantomEngine.monkey is included with this book, but for the most recent version visit: http://code.google.com/p/fantomengine/.

The fantomEngine features some classes (objects) for different functionalities, which are described as follows:

  • ftEngine: This is the main engine class

  

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