Using Cocos3d

Cocos2d is such a versatile framework that it has even been ported and extended into a 3D game engine appropriately titled Cocos3d. In this recipe we will install Cocos3d XCode templates, create a sample Cocos3d application, and introduce the Cocos3d demo mash-up project.

Using Cocos3d

Getting ready

Please refer to the project Ch8_Cocos3d for full working code of this recipe.

How to do it...

Execute the following code:

#import "Ch8_Cocos3dWorld.h" #import "CC3PODResourceNode.h" #import "CC3ActionInterval.h" #import "CC3MeshNode.h" #import "CC3Camera.h" #import "CC3Light.h" @implementation Ch8_Cocos3dWorld -(void) dealloc { [super dealloc]; } -(void) ...

Get Cocos2d for iPhone 1 Game Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.