CocosBuilder 2.1 + Cocos2d-2.0-x-2.0.4

Hello,

I have been trying to get a ccbi file working in my project without any luck. Is there a tutorial or documentation that explains how this is done?

Heres what I have:
AppDelegate.cpp
@
#include “cocos2d.h”
#include “CCEGLView.h”
#include “AppDelegate.h”
#include “IntroScene.h”
#include “SimpleAudioEngine.h”
#include “GameScene.h”

#include “…/extensions/cocos-ext.h”

using namespace CocosDenshion;

USING_NS_CC;

AppDelegate::AppDelegate()
{
}

AppDelegate::~AppDelegate()
{
SimpleAudioEngine::end();
}

bool AppDelegate::applicationDidFinishLaunching()
{
// initialize director
CCDirector pDirector = CCDirector::sharedDirector;
pDirector~~>setOpenGLView);
// turn on display FPS
pDirector~~>setDisplayStats;
// set FPS. the default value is 1.0/60 if you don’t call this
pDirector~~>setAnimationInterval;
cocos2d::extension::CCNodeLoaderLibrary * ccNodeLoaderLibrary = cocos2d::extension::CCNodeLoaderLibrary::sharedCCNodeLoaderLibrary;
cocos2d::extension::CCBReader * ccbReader = new cocos2d::extension::CCBReader;
CCNode * node = ccbReader~~>readNodeGraphFromFile;
CCScene
scene = CCScene::create();
if(node != NULL) {
scene~~>addChild;
}
ccbReader~~>release();

pDirector->runWithScene(scene);

return true;
}

@

I also attached the ccbi file I am using in my project (“MainMenuScene.ccbi”). Also my cocos version is 2.0-x-2.0.4 and I am using cocosbuilder 2.1

Thanks


MainMenuScene.ccbi.zip (0.6 KB)