Chapter 4
Drawing the Background
In the last chapter, you created and finalized the main menu to Prison Break. You should have compiled and run your code on either the Android emulator or an Android-based phone in debug mode, and seen a functioning main menu screen. The Exit button of the main menu is wired to kill the game process. As of right now, however, the Start button is not wired to any code.
In this chapter, you will write the code for the Start button and create the background for Prison Break. To draw the game’s background to the screen, you will use calls to OpenGL ES. In the previous chapters, you used Android SDK methods to display graphics like the menu screen and the buttons. Moving forward, you will work in the realm of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access