CCTransitionFade,
CCTransitionFadeTR, //碎片效果
CCTransitionJumpZoom, //跳动效果
CCTransitionMoveInL, //从左向右移动
CCTransitionPageTurn, //翻页效果
CCTransitionRadialCCW, //钟摆效果
CCTransitionRotoZoom,//涡轮效果
CCTransitionSceneOriente
CCTransitionShrinkGrow, //渐远效果
CCTransitionSlideInL, //左移
CCTransitionSplitCols,//上下移动
CCTransitionTurnOffTiles
CCTransitionScene : CCScene
CCRotoZoomTransition 旋转缩小切换
CCJumpZoomTransition 缩小后跳跃切换
CCSlideInLTransition 从左向右切换
CCSlideInRTransition 从右向左切换
CCSlideInTTransition 从上向下切换
CCSlideInBTransition 从下向上切换
CCShrinkGrowTransition 逐渐缩小切换
CCFlipXTransition 已x中间为轴平面式旋转切换
CCFlipYTransition 已y中间为轴平面式旋转切换
CCFlipAngularTransition 侧翻式旋转切换
CCZoomFlipXTransition 缩小后x为轴旋转切换
CCZoomFlipYTransition 缩小后y为轴旋转切换
CCZoomFlipAngularTransit
CCFadeTransition 逐渐变暗切换
CCCrossFadeTransition
CCTurnOffTilesTransition
CCSplitColsTransition 三条上下分开切换
CCSplitRowsTransition 三条左右分开切换
CCFadeTRTransition 小方块大方块式切换 左下到右上 眩!
CCFadeBLTransition 小方块大方块式切换 右上到左下 眩!
CCFadeUpTransition 百叶窗从下向上
CCFadeDownTransition 百叶窗从上向下
CCTransitionRotoZoom : CCTransitionScene
CCTransitionJumpZoom : CCTransitionScene
CCTransitionMoveInL : CCTransitionScene <CCTransitionEaseScene>
CCTransitionMoveInR : CCTransitionMoveInL
CCTransitionMoveInT : CCTransitionMoveInL
CCTransitionMoveInB : CCTransitionMoveInL
CCTransitionSlideInL : CCTransitionScene <CCTransitionEaseScene>
CCTransitionSlideInR : CCTransitionSlideInL
CCTransitionSlideInB : CCTransitionSlideInL
CCTransitionSlideInT : CCTransitionSlideInL
CCTransitionShrinkGrow : CCTransitionScene <CCTransitionEaseScene>
CCTransitionFlipX : CCTransitionSceneOriente
CCTransitionFlipY : CCTransitionSceneOriente
CCTransitionFlipAngular : CCTransitionSceneOriente
CCTransitionZoomFlipX : CCTransitionSceneOriente
CCTransitionZoomFlipY : CCTransitionSceneOriente
CCTransitionZoomFlipAngu
CCTransitionFade : CCTransitionScene
CCTransitionCrossFade : CCTransitionScene
CCTransitionTurnOffTiles
CCTransitionSplitCols : CCTransitionScene <CCTransitionEaseScene>
CCTransitionSplitRows : CCTransitionSplitCols
CCTransitionFadeTR : CCTransitionScene <CCTransitionEaseScene>
CCTransitionFadeBL : CCTransitionFadeTR
CCTransitionFadeUp : CCTransitionFadeTR
CCTransitionFadeDown : CCTransitionFadeTR 横条向下显示进入
使用方法:
CCScene *scene = [CCScene node];
[scene addChild:[GameLayer node]];
[[CCDirector sharedDirector] replaceScene:[CCTransitionSplitRows transitionWithDuration:1.2f scene:scene]];
场景切换的两种方式
直接调用场景
[CCDirector sharedDirector]replaceScene:[GameLayer scene]];
2、从init函数开始执行
CCScene *scene = [CCScene node];
[scene addChild:[GameLayer node]];
[[CCDirector sharedDirector] replaceScene:[CCTransitionSplitRows transitionWithDuration:1.2f scene:scene]];
缩放的形式切换场景的方法
[[CCDirector
本文来自CSDN博客,转载请标明出处: