November 2012
Beginner
432 pages
9h 3m
English
What You’ll Learn in This Hour
• How to create a threaded game loop
• Using the Runnable interface
• Using the Thread class
• Drawing from the new game loop
This hour shows how to create a loop for a game that gives it real-time capabilities not tied in to the GUI methods (such as onDraw()) for the game’s display. To detach drawing from the GUI, you learn how to create components that can draw without being directly tied to the onDraw() event method. While exploring this new capability, you also get a glimpse at bitmap frame animation, bitmap scaling, and timing.
In the past few hours you have seen several examples that draw shapes and bitmaps to the Android screen. ...
Read now
Unlock full access