Here we are, over a third of the way through the book already, and now we finally hit our first mobile game. Well, this game is not the typical mobile or desktop game; this game, Chain Reaction, will be built for the Android platform. So, get your Android-powered phone/tablet and get cooking!
Have you ever worked inside a nuclear power plant? There, you have to avoid a chain reaction that could cause a nuclear meltdown. In Game #4, Chain Reaction, we want to create exactly that—a chain reaction. You will have a map of atoms in front of you and can trigger just one atom to start spinning. Will you be able to pick the right one and cause the biggest and longest chain reaction?
In this chapter you will:
Create your sprites/game objects mostly from sprite sheets to save memory and speed up the draw process
Play back sprite animations
Read the touch input of the device
Act on the
OnResume
andOnSuspend
eventsCreate an Android application
Learn how to scale the game...