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

Chapter 10: First-Person Shooter Game Fr... > Hands-On Example: First-Person Shoot...

Hands-On Example: First-Person Shooter Game Framework

In this hands-on example we build a first-person shooter deathmatch style game that involves one enemy computer controlled bot and one player. The bot will move from cover to cover and attack the player, retrieving health bonus powerups as needed. This section covers creating code for the game type, player related classes, enemy bot related classes, the HUD, and the health bonus powerup. Then a new game level is created and the game is configured to run on the mobile previewer.

Creating the Game Type

The first thing we need to do is create a new directory for the code for this project. Create the ExampleCh10 directory under your default UDK installation directory at C:\UDK\UDK-2011-06\Development\Src. (This is for the June 2011 UDK. If you are using a different version of the UDK then this directory will be different.) Create a directory called Classes under the new directory you just created and put all your source code files in this directory.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

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

  

Start a Free 10-Day Trial


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