O'Reilly logo

Beginning Android Tablet Games Programming by Jeremy Kerfs

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

Introducing Harbor Defender

Harbor Defender is the name I’ve chosen for the game you begin in this chapter. The game surface consists of a fortress, a harbor defined by a pier, attacking boats, and cannons that can sink the attackers with bullets. Figure 8-1 is an image of the game surface you assemble by the end of this chapter. In Chapter 9 you add the user controls, but for now you need a surface that the player will eventually interact with. It gives you an idea how the mechanics will work.

images

Figure 8-1. The beta version of Harbor Defender

The object of Harbor Defender is to destroy ships approaching the fortress through the harbor before ...

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