hey guys!
just trying to load a scene from my AppDelegate::applicationDidFinishLaunching
I tried
bool AppDelegate::applicationDidFinishLaunching()
{
...
// create a scene. it's an autorelease object
CCScene *pScene = MyScene::node();
// run
pDirector->runWithScene(pScene);
...
}
and then initializing
bool Scene::init(){
// add layer as a child to scene
CCLabelTTF* label = CCLabelTTF::labelWithString("Hello World", "Marker Felt", 64);
this->addChild(label);
return true;
}
I am wondering whether there is and C*+ equivalent to this:
<pre>
*(id) node {
return [[[self alloc] init] autorelease];
}