6. Cannon Game App

Listening for Touches, Manual Frame-By-Frame Animation, Graphics, Sound, Threading, SurfaceView and SurfaceHolder

Image

Objectives

In this chapter you’ll:

Image Create a simple game app that’s easy to code and fun to play.

Image Create a custom SurfaceView subclass for displaying the game’s graphics from a separate thread of execution.

Image Draw graphics ...

Get Android™ for Programmers: An App-Driven Approach, Second Edition 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.