Game Development Reference
In-Depth Information
Figure 7-4. Hitting the cube into the player's pyramid
Summary
In this chapter, I covered how to build the player-related code for our Drone Grid case study game.
I started with creating the classes needed to build the player's power pyramid. I then covered the
code needed to implement the player's view and the player's input. Next, the code to implement the
player's weapon and the ammunition that is used in that weapon were covered. This was followed by
a discussion of explosions and managing the game-play properties of our game objects. Finally, we
went through a hands-on example in which we demonstrated how the player's weapon can be used
to hit 3D objects and also how these 3D objects can cause damage to our pyramid.
 
Search WWH ::




Custom Search