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

Summary

You accomplished a lot in this chapter. As it stands, TabletPaddle is a decent game that has a lot of room for development and improvement. The difficult and core functionality is present, the physics handles collisions fluidly, and the game responds quickly and correctly. I have compiled a list of some ideas to add to the game that may spark your interest. None of them involve Android touch programming, but they do involve logic and creativity:

  • Reset the game when the ball hits the ground: Right now, the ball just continues to bounce. What if an image with the words “Game Over” appears?
  • Keep score: You can detect when a ball is hit, so why not track the number of hits? Users can then see how well they’re doing.
  • Add levels: This task ...

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