Plan of Attack

With your game mechanics, design, and assets in place, you can start coding. As usual, create a new project, copy over all of your framework code, ensure that you have a proper manifest and icons, and so on. By now, you should have a pretty good grasp of how to set things up. All the code of Droid Invaders will be placed in the package com.badlogic.androidgames.droidinvaders. The assets are stored in the assets/ directory of the Android project. Use the same general structure used in Super Jumper: a default activity deriving from GLGame, a couple of GLScreen instances implementing the different screens and transitions, as shown in Figure 12–4, classes for loading assets and storing settings, as well as the classes for the game ...

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.