Chapter 13: Bitmap Graphics and Measuring Time
So far in this book, we have drawn exclusively with primitive shapes and text. In this chapter, 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 an HUD, measure the time, and code a solution to remember the longest (best) time.
In this chapter, we will cover the following topics:
- Learn how to use bitmap graphics in Android
- Implement our teleporting super-hero, Bob
- Finish all the other features of the game, including the HUD and timing
- The Android Studio Profiler tool
Let's wrap this game up.