About This Book
- Find practical solutions to many real-world game development problems
- Create games from start to finish by writing code and following detailed step-by-step instructions
- Full of illustrations and diagrams, practical examples, and tips for deeper understanding of game development in Cocos2D for iPhone
Who This Book Is For
If you want to learn how to make games using the Cocos2D framework, this book is for you. If you would like to build a good foundation for a career in game development as an independent game developer or at a game studio, or if you just want to make games as a hobby, then you'll love this book. You should have some basic programming experience with Objective-C and Xcode. To run the code in this book, you will also need an Intel-based Macintosh running OS X Mountain Lion (or later).
What You Will Learn
- Install Cocos2D and create projects using Cocos2D Xcode templates
- Understand the Cocos2D architecture and its main classes
- Render images and text, move and animate them
- Control your game using touches and a gyroscope
- Create a user interface and navigate between game screens
- Use the physics engine to apply forces and detect collisions
- Add sounds and music and change playback properties
- Integrate your game with Game Center and make In-App purchases
In Detail
Cocos2D-iPhone (Cocos2D-Swift) is a robust yet simple-touse 2D game framework for iPhone. If you are just starting with game programming, Cocos2D will enable you to make your first game in no time. Even if you are a seasoned game developer, you will still be able to benefit from what Cocos2D offers.
This book will set you on the fast-track to game development with Cocos2D for iPhone. You will start by reviewing the basic classes and hierarchy, dive deep into animations and game flow, and finish by creating a complete game with UI using some advanced techniques.
You will begin the book with an empty Cocos2D project and build on it until you end up with a complete game. The book will teach you how to work on game logic, handling user input, controlling the character, and playing audio. Later, in the final part of the book, we'll have a working game on our hands, and we'll see how we can improve the game further