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