Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Cocos2d-X Game Development Blueprints
  • Table Of Contents Toc
Cocos2d-X Game Development Blueprints

Cocos2d-X Game Development Blueprints

By : Sequeira
4.2 (5)
close
close
Cocos2d-X Game Development Blueprints

Cocos2d-X Game Development Blueprints

4.2 (5)
By: Sequeira

Overview of this book

If you are a proficient Cocos2d game developer who wants to enhance his or her game development skill set using Cocos2d-x to build different types of games, this book is for you.
Table of Contents (12 chapters)
close
close
11
Index

Chapter 5. Let's Get Physical!

For our fifth game, we will get down to the physics of things. Cocos2d-x comes bundled with two wonderful physics engines: Box2D and Chipmunk. In this chapter, we will make use of the versatile and robust Box2D physics engine to add some realism to our game.

In this chapter, you'll learn about the following:

  • Box2D basics
  • Setting up Box2D world and debug draw
  • Creating Box2D bodies, fixtures, and shapes
  • Manipulating simple physics at runtime
  • Maintaining a state machine
  • Listening for collisions
  • Creating pools for reusable objects
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Cocos2d-X Game Development Blueprints
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon