O'Reilly logo

Beginning Android 3D Game Development by Robert Chin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required