Skip to Main Content
Learn cocos2D Game Development with iOS 5
book

Learn cocos2D Game Development with iOS 5

by Steffen Itterheim, Andreas Löw
November 2011
Beginner content levelBeginner
532 pages
15h
English
Apress
Content preview from Learn cocos2D Game Development with iOS 5

Chapter 7

Scrolling with Joy

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Cocos2D: A Hands-On Guide to Building iOS Games with Cocos2D, Box2D, and Chipmunk

Learning Cocos2D: A Hands-On Guide to Building iOS Games with Cocos2D, Box2D, and Chipmunk

Rod Strougo, Ray Wenderlich

Publisher Resources

ISBN: 9781430238133Purchase book