Created
February 4, 2013 08:08
-
-
Save syuhari/4705552 to your computer and use it in GitHub Desktop.
How to use CocosBuilder for cocos2dx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CCNodeLoaderLibrary * ccNodeLoaderLibrary = CCNodeLoaderLibrary::sharedCCNodeLoaderLibrary(); | |
CCBReader * ccbReader = new CCBReader(ccNodeLoaderLibrary); | |
CCNode* node = ccbReader->readNodeGraphFromFile("CCTestLayer.ccbi"); | |
CCScene * scene = CCScene::create(); | |
if(node != NULL) { | |
scene->addChild(node); | |
} | |
ccbReader->release(); | |
CCDirector::sharedDirector(->runWithScene(scene); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment