Chapter 13. Bitmap Graphics and Measuring Time

So far in this book, we have drawn exclusively with primitive shapes and text. In this section, we will see how we can use the Canvas class to draw Bitmap graphics- after all Bob is so much more than just a block or a line. We will also code Bob and implement his teleportation feature, shield and collision detection. To finish the game off, we will add a HUD, measure the time, and code a solution to remember the longest (best) time.

In this chapter we will:

  • Learn how to use bitmap graphics in Android
  • Implement our teleporting superhero, Bob
  • Finish all the other features of the game including the HUD and timing

Let's wrap this game up.

The Bob (player's) class

This is the final class for this project. As ...

Get Learning Java by Building Android Games - 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.