Exemplo n.º 1
0
void EaseSpriteDemo::nextCallback(CCObject* pSender)
{
	CCScene* s = new EaseActionsTestScene();//CCScene::node();
	s->addChild( nextEaseAction() );
	CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
Exemplo n.º 2
0
void CommonDemo::nextCallback(CCObject* pSender)
{
    CCScene* s = new CommonTestScene();
    s->addChild( nextAction() );
    CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
Exemplo n.º 3
0
void TextInputTest::backCallback(CCObject* pSender)
{
    CCScene* s = new TextInputTestScene();
    s->addChild( backTextInputTest() );
    CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
Exemplo n.º 4
0
void ActionsDemo::backCallback(NSObject* pSender)
{
    CCScene* s = new ActionsTestScene();
    s->addChild( BackAction() );
    CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
Exemplo n.º 5
0
void TestCocosNodeDemo::backCallback(CCObject* pSender)
{
	CCScene* s = new CocosNodeTestScene();//CCScene::node();
	s->addChild( backCocosNodeAction() );
	CCDirector::sharedDirector()->replaceScene(s);
    s->release();
} 
Exemplo n.º 6
0
void ActionManagerTest::nextCallback(CCObject* pSender)
{
	CCScene* s = new ActionManagerTestScene();
	s->addChild( nextActionManagerAction() );
	CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
void ShopScheduleTest::backCallback(CCObject* pSender)
{
    CCScene* s = new ShopScheduleTestScene();
    s->addChild( backShopScheduleTest() );
    CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
Exemplo n.º 8
0
void AnimDemo::restartCallback(CCObject* pSender)
{
    CCScene* s = new AnimTestScene();
    s->addChild( restartAction() );
    CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
Exemplo n.º 9
0
void ArmatureTestLayer::nextCallback(CCObject* pSender)
{
	CCScene* s = new ArmatureTestScene();
	s->addChild( NextTest() );
	CCDirector::sharedDirector()->replaceScene(s);
	s->release();
}
void ParticleDemo::backCallback(CCObject* pSender)
{
	CCScene* s = new ParticleTestScene();
	s->addChild( backParticleAction() );
	CCDirector::sharedDirector()->replaceScene(s);
    s->release();
} 
Exemplo n.º 11
0
void MotionStreakTest::backCallback(CCObject* pSender)
{
    CCScene* s = new MotionStreakTestScene;//CCScene::create();
    s->addChild( backMotionAction() );
    CCDirector::sharedDirector()->replaceScene(s);
    s->release();
} 
Exemplo n.º 12
0
void RenderTextureTestDemo::nextCallback(CCObject* pSender)
{
    CCScene* s = new RenderTextureScene();
    s->addChild( nextTestCase() );
    CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
Exemplo n.º 13
0
void ParallaxDemo::nextCallback(CCObject* pSender)
{
    CCScene* s = new ParallaxTestScene();
    s->addChild( nextParallaxAction() );
    CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
Exemplo n.º 14
0
void BaseClippingNodeTest::backCallback(CCObject* sender)
{
	CCScene *s = new ClippingNodeTestScene();
	s->addChild(backAction());
	CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
Exemplo n.º 15
0
void EffectAdvanceTextLayer::backCallback(CCObject* pSender)
{
    CCScene* s = new EffectAdvanceScene();
    s->addChild( backEffectAdvanceAction() );
    CCDirector::sharedDirector()->replaceScene(s);
    s->release();
} 
Exemplo n.º 16
0
void SceneEditorTestLayer::backCallback(CCObject *pSender)
{
    CCScene *s = new SceneEditorTestScene();
    s->addChild(Back());
    CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
Exemplo n.º 17
0
void SpriteDemo::nextCallback(CCObject* pSender)
{
	CCScene* s = new ProgressActionsTestScene();
	s->addChild( nextAction() );
	CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
Exemplo n.º 18
0
void ShaderTestDemo::backCallback(CCObject* pSender)
{
    CCScene* s = new ShaderTestScene();
    s->addChild( backAction() );
    CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
Exemplo n.º 19
0
void EaseSpriteDemo::backCallback(CCObject* pSender)
{
    CCScene* s = new ActionsEaseTestScene();//CCScene::create();
    s->addChild( backEaseAction() );
    CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
Exemplo n.º 20
0
void TestLayer::restartCallback(CCObject* pSender)
{
	CCScene* s = new TestScene();
	s->addChild( RestartTest() );
	CCDirector::sharedDirector()->replaceScene(s);
	s->release();
}
Exemplo n.º 21
0
void SceneTestLayer2::onReplaceSceneTran(CCObject* pSender)
{
    CCScene* pScene = new SceneTestScene();
    CCLayer* pLayer = SceneTestLayer3::create();
    pScene->addChild( pLayer, 0 );
    CCDirector::sharedDirector()->replaceScene( CCTransitionFlipX::create(2, pScene) );
    pScene->release();
}
void MotionStreakTest::restartCallback(CCObject* pSender)
{
    CCScene* s = new MotionStreakTestScene();//CCScene::node();
    s->addChild(restartMotionAction()); 

    CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
Exemplo n.º 23
0
void BaseLayer::restartCallback(cocos2d::CCObject *pSender)
{
    CCScene *s = new DrawPrimitivesTestScene();
    s->addChild(restartAction());
    
    CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
Exemplo n.º 24
0
void TextLayer::newScene()
{
	CCScene* s = new EffectTestScene();
	CCNode* child = TextLayer::node();
	s->addChild(child);
	CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
Exemplo n.º 25
0
void MenuLayer::restartCallback(CCObject* sender)
{
	CCScene* s = new Box2dTestBedScene();
	MenuLayer* box = MenuLayer::menuWithEntryID(m_entryID);
	s->addChild( box );
	CCDirector::sharedDirector()->replaceScene( s );
    s->release();
}
Exemplo n.º 26
0
void ChipmunkTestLayer::reset(CCObject* sender)
{
    CCScene* s = new ChipmunkAccelTouchTestScene();
    ChipmunkTestLayer* child = new ChipmunkTestLayer();
    s->addChild(child);
    child->release();
    CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
Exemplo n.º 27
0
void SchedulerTestLayer::backCallback(CCObject* pSender)
{
    CCScene* pScene = new SchedulerTestScene();
    CCLayer* pLayer = backSchedulerTest();

    pScene->addChild(pLayer);
    CCDirector::sharedDirector()->replaceScene(pScene);
    pScene->release();
}
Exemplo n.º 28
0
void SceneTestLayer2::onReplaceScene(CCObject* pSender)
{
	CCScene* pScene = new SceneTestScene();
    CCLayer* pLayer = new SceneTestLayer3();
    pScene->addChild( pLayer, 0 );
	CCDirector::sharedDirector()->replaceScene( pScene );
    pScene->release();
    pLayer->release();
}
Exemplo n.º 29
0
void Box2DTestLayer::reset(CCObject* sender)
{
    CCScene* s = new Box2DTestScene();
    Box2DTestLayer* child = new Box2DTestLayer();
    s->addChild(child);
    child->release();
    CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
Exemplo n.º 30
0
void SceneTestLayer1::onPushScene(CCObject* pSender)
{
    CCScene* scene = new SceneTestScene();
    CCLayer* pLayer = new SceneTestLayer2();
    scene->addChild( pLayer, 0 );
    CCDirector::sharedDirector()->pushScene( scene );
    scene->release();
    pLayer->release();
}