Chapter     6

Game Environment

In this chapter, I will cover the game environment. I start off by covering the creation of sound on Android. I cover our custom Sound class and then modifications we will need to make to other class objects to integrate sounds into them. I then go through a hands-on example in which we play explosion sounds when two cubes collide with each other. I then cover how to create a heads-up display, or HUD. The new classes needed to implement the HUD are covered, followed by a case study in which a heads-up display is created for a game. Next, I cover saving and loading data and show how you can add code into your classes to save and load class data. Finally, I discuss a hands-on example in which we modify our case study ...

Get Beginning Android 3D Game Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.