Upgrading the game engine
All the talk of guards, drones, fire, collectibles, guns, and the implied much larger game world suggests a much more complex system to manage. One of the goals of our game engine will be to make this complexity easily manageable. The other goal will be to separate the level design from the coding. When our game is done, you will be able to sit back and design the most evil, yet rewarding levels, in multiple different environments without touching the code.
The platform activity
First we start off with our Activity
class, which is the entry point into our game. There is not much new here, so let's go ahead and get it built quickly. Create a new project, and in the Application Name field, enter C5 Platform Game
. Choose Phones and tablets, then Blank Activity when prompted. In the Activity Name field, type PlatformActivity
.
Tip
Obviously you don't have to follow my exact naming choices, but just remember to make minor alterations in the code to reflect your...