Design, develop, and create your own successful iOS games using the Cocos2d game engine
Cocos2d is one of the most popular 2D game engines for the iOS platform. It is packed with powerful features that set it apart from other game engines. It can be used to build games, apps, and other cross-platform GUI-based interactive programs.
This practical guide will develop your skills in designing and developing iOS games across several genres. You will start with managing collisions through building a horizontal scroll game for both iPhone and iPad, you will then go through building a shooting game. After that, you will learn how to use the accelerometer to control movement, load particle systems such as explosions, draw primitives, and create parallax effects. We also cover essential elements of the Cocos2d package including sprite sheets, multiple image file loading to animate a sprite, building physics behavior with Chipmunk, using filters and listeners, and providing powerful AI, non-playable characters, and pathfinder algorithms with a cool tower defence game.
What You Will Learn
Load and control sprites, labels, sounds, and geometrical primitives efficiently to build the core of a game
Simulate movement by implementing the parallax effect and running animations
Implement turn-based game logic including Game Center
Create both iPad-only and universal versions of your games
Control your game using touches, an accelerometer, or a virtual game pad
Build menus and tutorials and define some artificial intelligence to non-played characters
Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.