November 2011
Beginner
532 pages
15h
English
Continuing with the beginnings of the game from the previous chapter, I now want to turn it into something resembling an actual shoot-’em-up game. The very first thing will be to make the player’s ship controllable. Acceleromater controls don’t make sense in this case; a virtual joypad would be much more appropriate. But instead of reinventing the wheel, we’ll be using a cool source code package called SneakyInput to add a virtual joypad to this cocos2d game.
Moving the player’s ship around is just one thing. We also want the background to scroll, to give the impression of moving into a certain direction. For this to happen, we’ll implement our own solution for parallax scrolling, since CCParallaxNode is too limited ...