Plan of Attack

With our game mechanics, design, and assets in place we can start coding. As usual we'll create a new project, copy over all of our framework code, make sure we 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. We'll use the exact same general structure that we 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 our game objects and a rendering class that can draw our game world in 3D. Let's start with the Assets class.

Was this article helpful?

0 0

Post a comment