O'Reilly logo

Mastering Cocos2d Game Development by Alex Ogorek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up a project and creating basic objects

The Chipmunk physics engine is fairly well integrated within the Cocos2d library. It works within SpriteBuilder as well as programmatically within Cocos2d. As with the rest of this book, we will be focusing on creating the project with code, and only using SpriteBuilder as the tool for project creation. So, create a new project in SpriteBuilder and publish it. If you've forgotten how to do this, feel free to go back and reference the project creation in the first chapter.

Setting up Cocos2d for use with physics

First, we need to lay down the groundwork so that we can begin to code with it, as the published SpriteBuilder project uses the SpriteBuilder files and not the actual coded scenes. Similar to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required