Learn to create engaging and spectacular games for Android using Cocos2d-x
Cocos2d-x is a multi-platform C++ gaming framework in active development maintained by Chukong technologies. It wraps all the essential elements needed for creating a game, making the task of game building very developer-friendly.
Starting with a vital primer to get you up and running with your development environment, you will quickly dive in to exploring the latest version of this framework. You will understand major framework improvements to render objects at lightning speed, extend and maintain code easily, and improve the label API to add great functionality such as glow, shadows, and outlines to labels.
Through the creation of a real game, you will explore the core components of development including Physics, enabling you to create realistic sprite movements, and particle systems to dynamically simulate explosions, fire, rain, and smoke, as well as exploring the sound engine to make your game more robust. Finish by integrating Cocos2d-x C++ code with native Android code to launch games with the classic Java Android application.
What You Will Learn
Set up your work environment
Learn how to create graphic elements and animate them
Use the built-in physics engine to make your games more realistic
Manage user interaction using the touch and accelerometer capabilities
Boost your game's visual appeal by learning to add text and using true type and bitmap fonts
Enhance your game by adding sound effects and background music
Discover how to add rich explosion effects using particle systems
Add native Java code to your Android game
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.