Book description
Learn cross-platform game development with Cocos2d-x
In Detail
Cocos2d-x is one of the most popular cross-platform 2D game engines. It is packed with powerful features that set it apart from other game engines. With so many languages and operating systems, Cocos2d-x provides a one-stop solution for developing games for the operating system of your choice using the language you are most comfortable with. Starting from the basics, this book will show you how to display content on the screen and make it interact as well as move around with various control mechanisms such as actions, accelerometer, and tap onscreen buttons. You will learn about the mechanics of collision detection, their advantages and disadvantages, and how to keep track of the score. You will then create a gameplay cycle, use third-party tools to expedite the development process, and distribute the game through the App Store.
By working through the carefully designed chapters of the book, you will master Cocos2d-x and the various tools so that you can use these skills to make a complete game or a quick prototype.
What You Will Learn
- Configure and create a Cocos2d-x project on Windows
- Understand the basics of Cocos2d-x classes such as CCScene, CCLayer, and CCSprite
- Develop different control schemes using buttons, a gyroscope, and a custom touch area
- Implement various methods for collision detection such as circle collision and bounding box collision
- Discover how to add and remove objects from the screen and update the score as well as Gameover condition
- Get to grips with the tools used to create spritesheets as well as custom fonts and design particles
- Integrate ads and in-app purchases in the game to monetize the game
Table of contents
-
Learning Cocos2d-x Game Development
- Table of Contents
- Learning Cocos2d-x Game Development
- Credits
- About the Author
- Acknowledgments
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Getting Started
- 2. Displaying the Hero and Controls
- 3. Enemies and Controls
- 4. Collision Detection and Scoring
- 5. HUD, Parallax Background, and the Pause Button
- 6. Animations
- 7. Particle Systems
- 8. Adding Main and Option Menu Scenes
- 9. Adding Sounds and Effects
- 10. Publishing to the Windows Phone Store
- 11. Porting, References, and Final Remarks
- Index
Product information
- Title: Learning Cocos2d-x Game Development
- Author(s):
- Release date: September 2014
- Publisher(s): Packt Publishing
- ISBN: 9781783988266
You might also like
book
Learning Cocos2D: A Hands-On Guide to Building iOS Games with Cocos2D, Box2D, and Chipmunk
Ve> Build the Next Great iOS Game with Cocos2D! Cocos2D is the powerhouse framework behind some …
book
Procedural Content Generation for C++ Game Development
Get to know techniques and approaches to procedurally generate game content in C++ using Simple and …
book
Game Development with MonoGame: Build a 2D Game Using Your Own Reusable and Performant Game Engine
Create a polished game that includes many levels and fights using MonoGame. This book will show …
book
Hands-On C++ Game Animation Programming
Learn animation programming from first principles and implement modern animation techniques that can be integrated into …