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

Analyzing the Game

If you haven’t already, run the game. When the boats start coming, place your cannons to defend the castle. I wish you luck in your battle.

Here is a list of features and techniques you’ve used to build Harbor Defender. Be proud of your incredible effort to persevere through the code, errors, and work:

  • Game loop
  • Multiple sprites
  • Drawing images to the screen
  • Bitmap manipulation
  • User interaction
  • Some AI
  • Collision detection
  • XML data parsing
  • And much more

With an entire game written, you can relax and change the game into whatever you desire. If you make enough changes, maybe you can make some money off it in the Android Market. The final chapter of the book discusses this possibility.

Having an expandable game is critical. ...

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