Beispiel #1
0
void TextureDemo::backCallback(CCObject* pSender)
{
    CCScene *s = new TextureTestScene();
    s->addChild(backTextureTest());
    CCDirector::sharedDirector()->replaceScene(s);
    s->autorelease();
}
Beispiel #2
0
void DirectorTest::nextCallback(CCObject* pSender)
{
    CCScene *s = new DirectorTestScene();
    s->addChild(nextDirectorTestCase());
    CCDirector::sharedDirector()->replaceScene(s);
    s->autorelease();
}
Beispiel #3
0
CCScene *CCScene::create()
{
    CCScene *pRet = new CCScene();
    if (pRet && pRet->init())
    {
        pRet->autorelease();
        return pRet;
    }
    else
    {
        CC_SAFE_DELETE(pRet);
        return NULL;
    }
}