Harness the power of Cocos2D to create your own stunning and engaging games for iOS
- 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
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
What you will learn from this book
- 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
This book is an easy-to-follow, step-by-step beginner's guide covering the full process of creating a game. It is packed with examples and illustrations, with comprehensive coverage of each topic.