CCScene的使用

无效果的场景切换
CCScene *scene = HelloWorldScene::scene();
CCDirector::shareDirector()->replaceScene(scene);


滑动切换场景
CCScene *scene = HelloWorldScene::scene();
CCTransitionSlideInL *slide = CCTransitionSlideInL::create(1.0f, scene);
CCDirector::shareDirector()->replaceScene(slide);


移动切换场景
CCTransitionMoveInL *slide = CCTransitionMoveInL::create(1.0f, scene);


向上淡入淡出切换场景
CCTransitionFadeUp *slide = CCTransitionFadeUp::create(1.0f, scene);


向右上淡入淡出切换场景
CCTransitionFadeTR *slide = CCTransitionFadeTR::create(1.0f, scene);

你可能感兴趣的:(使用)