cocos2d-x 切换场景动画

//扇形 逆时针  

//    CCTransitionScene* transition = CCTransitionProgressRadialCCW::create(1.5f, MyScene::createMyScene());  

//    CCDirector::sharedDirector()->replaceScene(transition);  

      

    //扇形  顺时针  

//    CCTransitionScene* transiton = CCTransitionProgressRadialCW::create(1.2f, MyScene::createMyScene());  

//    CCDirector::sharedDirector()->replaceScene(transiton);  

      

    //水平进度条  

//    CCTransitionScene* transition = CCTransitionProgressHorizontal::create(1.2f, MyScene::createMyScene());  

//    CCDirector::sharedDirector()->replaceScene(transition);  

      

    //垂直进度条  

//    CCTransitionScene* transition = CCTransitionProgressVertical::create(1.2f, MyScene::createMyScene());  

//    CCDirector::sharedDirector()->replaceScene(transition);  

      

      

    //由里到外扩展  

//    CCTransitionScene* transition = CCTransitionProgressInOut::create(1.2f, MyScene::createMyScene());  

//    CCDirector::sharedDirector()->replaceScene(transition);  

      

//    CCTransitionScene* transition = CCTransitionProgressOutIn::create(1.2f, MyScene::createMyScene());  

//    CCDirector::sharedDirector()->replaceScene(transition);  

      

//    //逐渐透明  

//    CCTransitionScene* transition = CCTransitionCrossFade::create(4.5f, MyScene::createMyScene());  

//    CCDirector::sharedDirector()->replaceScene(transition);  

      

    //翻页  

//    CCTransitionScene* transition = CCTransitionPageTurn::create(0.5f, MyScene::createMyScene(),false);  

//    CCDirector::sharedDirector()->replaceScene(transition);  

      

    //跳动  

//    CCTransitionScene* transition = CCTransitionJumpZoom::create(2.0f, MyScene::createMyScene());  

//    CCDirector::sharedDirector()->replaceScene(transition);  

      

//    //部落格过度  

//    CCTransitionScene* transition = CCTransitionFadeTR::create(3.5f, MyScene::createMyScene());  

//    CCDirector::sharedDirector()->replaceScene(transition);  

      

//    CCTransitionScene* transiton = CCTransitionFadeBL::create(1.2f, MyScene::createMyScene());  

//    CCDirector::sharedDirector()->replaceScene(transiton);  

      

    //条形折叠  

//    CCTransitionScene* transition = CCTransitionFadeUp::create(1.2f, MyScene::createMyScene());  

//    CCDirector::sharedDirector()->replaceScene(transition);  

      

    //随机方格消失   

//    CCTransitionScene* transition = CCTransitionTurnOffTiles::create(1.2f, MyScene::createMyScene());  

//    CCDirector::sharedDirector()->replaceScene(transition);  

      

    //分行划分切换  

//    CCTransitionScene* transition = CCTransitionSplitRows::create(1.2f, MyScene::createMyScene());  

//    CCDirector::sharedDirector()->replaceScene(transition);  

      

    //分列  

//    CCTransitionScene* transition = CCTransitionSplitCols::create(1.2f, MyScene::createMyScene());  

//    CCDirector::sharedDirector()->replaceScene(transition);  

      

    //颜色过渡  

//    CCTransitionScene* transition = CCTransitionFade::create(12.f, MyScene::createMyScene(), ccc3(120, 25, 100));  

//    CCDirector::sharedDirector()->replaceScene(transition);  

      

    //X轴反转切换画面  

//    CCTransitionScene* transition = CCTransitionFlipX::create(1.2f, HelloWorld::scene());  

//    CCDirector::sharedDirector()->replaceScene(transition);  

  

    //Y轴  

//    CCTransitionScene* transtion = CCTransitionFlipY::create(1.2f, HelloWorld::scene());  

//    CCDirector::sharedDirector()->replaceScene(transtion);  

      

    //反转角的反转切换直动画  

//    CCTransitionScene* transition = CCTransitionFlipAngular::create(1.2f, HelloWorld::scene());  

//    CCDirector::sharedDirector()->replaceScene(transition);  

      

//    CCTransitionScene* transition = CCTransitionZoomFlipX::create(1.2f, HelloWorld::scene());  

//    CCDirector::sharedDirector()->replaceScene(transition);  

      

    //缩放交替  

//    CCTransitionScene* transition = CCTransitionShrinkGrow::create(1.2f, MyScene::createMyScene());  

//    CCDirector::sharedDirector()->replaceScene(transition);  

      

    //旋转绽放  

//    CCTransitionScene* transition = CCTransitionRotoZoom::create(1.2f, HelloWorld::scene());  

//    CCDirector::sharedDirector()->replaceScene(transition);  

 

你可能感兴趣的:(cocos2d-x)