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