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

Basic GamePlay

In this section you will learn how to create a small working game with a working Heads Up Display, sound effects and the locked gate from the Kismet/Matinee section from the previous chapter. The knowledge used to create this game will be drawn from previous sections in this chapter and from previous chapters. A hands-on example will be presented to show you in detail how to create this basic game.

Hands-On Example: Creating a Basic Game Framework.

In this example we will create a small working game incorporating the code created in the Sound Cues, and HUD sections in this chapter. The final game will have a working HUD displaying the score, player’s health, and number of lives left in the game. An enemy bot is created on a custom spawn pad and then follows the player and fires its weapon at the player. The objective of the game would be to kill the enemy bot and gain the highest score before all your lives have been used up.


  

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
  • DownloadDownload
  • PrintPrint