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. ...

Get Beginning Android Tablet Games Programming 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.