O'Reilly logo

Beginning Android 4 Games Development by Robert Green, Mario Zechner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, and Input to interested parties.
  • Manage Screens and integrate them with the activity life cycle.
  • Our general goal is it to have a single ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required