Continuing with the beginnings of the game from Chapter 6, you’ll now turn it into something resembling an actual shoot-’em-up game. The very first thing will be to make the player’s ship controllable. Accelerometer controls don’t make sense in this case; a virtual joypad would be much more appropriate. But instead of reinventing the wheel, you’ll use a cool source code package called SneakyInput to add a virtual joypad to this cocos2d game.
KeywordsBackground Image Init Method Speed Factor Screen Width Game Object
Unable to display preview. Download preview PDF.