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     7

Drone Grid Case Study: Creating the Player

This chapter covers a case study for a 3D game called Drone Grid. The objective of the game will be to protect your pyramid, which is located in the center of the playfield, from attacking enemies. You will do this by touching the screen and launching projectiles toward the enemies to destroy them. You will be in a fixed location on the edge of the playfield, and you can turn left or right 90 degrees. First, the creation of the classes representing the player’s graphic in the game is presented. Next, we create classes relating to the player’s viewpoint and the player’s input. This is followed by the creation of the classes dealing with the player’s weapons and ammunition. Next, we create ...

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