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

The basics of Box2D


The Box2D manual, found at http://www.box2d.org/manual.html, summarizes Box2D as a 2D rigid-body simulation library for games. Now what exactly do they mean by rigid body? A quick search on Google and you will know that a rigid body is one that does not deform regardless of the external forces exerted on it. Thus, Box2D is built to simulate hard objects such as rocks, walls, and bowling balls rather than soft bodies such as cotton, toothpaste, and mom's pudding!

In this section, you will get a brief overview of the various components of Box2D that we will interact with in the due course of time. However, I must insist you to read the manual provided at the preceding URL for a deeper understanding of what happens under the hood of this amazing physics engine.

The first object of the engine you will create is of type b2World. This is the object that manages the entire physics simulation. It provides factory methods to create bodies and joints, and even manages their memory...

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