AndroidGame: Tying Everything Together
Our game development framework is nearly complete. All we need to do is tie the loose ends together by implementing the Game
interface we designed in Chapter 3. To do this, we will use the classes we created in the previous sections of this chapter. The following is a list of responsibilities.
- Perform window management. In our context, this means setting up an activity and an
AndroidFastRenderView
, and handling the activity life cycle in a clean way. - Use and manage a
WakeLock
so that the screen does not dim. - Instantiate and hand out references to
Graphics
,Audio
,FileIO
, andInput
to interested parties. - Manage
Screen
s and integrate them with the activity life cycle. - Our general goal is it to have a single ...
Get Beginning Android 4 Games Development 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.