Chapter     8

Drone Grid Case Study: Creating the Enemies

This chapter will cover the creation of the enemies for the Drone Grid case study. Covered first are arena objects, which have a relatively simple behavior. Next, I cover the tank enemy, which has much more complex behavior. In order to understand this behavior, I cover the basics of a finite state machine. Next, I cover the finite state machine and the related classes specific to our computer controlled tank. I then cover other classes needed to implement the tank in our game. Finally, I discuss a hands-on example that uses the classes I have previously covered in a working example.

Creating Arena Objects

Arena objects are simple enemy objects that move through the gravity grid area. ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.