游戏场景切换 TL-WR841N V8_120907标准版

转载:http://www.cnblogs.com/pengyingh/articles/2389162.html

 

//Rotate and zoom out the outgoing scene, and then rotate and zoom in the incoming 
CCTransitionRotoZoom//从大到小画面缩小并旋转进入  

//Zoom out and jump the outgoing scene, and then jump and zoom in the incoming   
CCTransitionJumpZoom//立体从左边缩小跳动进入  

//Move in from to the left the incoming scene.  
CCTransitionMoveInL//从左边移动进入右边   
//Move in from to the right the incoming scene. 
CCTransitionMoveInR//从右边移动进入左边  
//Move in from to the top the incoming scene.  
CCTransitionMoveInT//从上边移动到入下边 
//Move in from to the bottom the incoming scene.   
CCTransitionMoveInB//从下边移动到入上边   

//Slide in the incoming scene from the left border.
CCTransitionSlideInL//从左边移动入右边  

//Slide in the incoming scene from the right border.  
CCTransitionSlideInR//从右边移动入左边   

//Slide in the incoming scene from the top border. T代表(Top)
CCTransitionSlideInT//从上边移动入下边 

//Slide in the incoming scene from the bottom border.   
CCTransitionSlideInB//从下边移动入上边   

//Shrink(收缩) the outgoing scene while grow the incoming scene 
CCTransitionShrinkGrow//从大到小在中间缩小进入  

//Flips the screen horizontally.
//The front face is the outgoing scene and the back face is the incoming scene.  
CCTransitionFlipX	//从X轴方向立体翻转   

//Flips the screen vertically.
//The front face is the outgoing scene and the back face is the incoming scene.
CCTransitionFlipY	//从Y轴方向立体翻转     

//Flips the screen half horizontally and half vertically.
//The front face is the outgoing scene and the back face is the incoming scene.    
CCTransitionFlipAngular	//从右边头翻转进入

//Flips the screen horizontally doing a zoom out/in
//The front face is the outgoing scene and the back face is the incoming scene.    
CCTransitionZoomFlipX		//从X轴方向立体跳动翻转   

//Flips the screen vertically doing a little zooming out/in
//The front face is the outgoing scene and the back face is the incoming scene. 
CCTransitionZoomFlipY		//从Y轴方向立体跳动翻转 

//Flips the screen half horizontally and half vertically doing a little zooming out/in.
//The front face is the outgoing scene and the back face is the incoming scene.   
CCTransitionZoomFlipAngular//从右边立体缩小翻转进入    

//透明渐变
//Fade out the outgoing scene and then fade in the incoming scene.
CCTransitionFade			//从中间渐变进入  

//此效果不明显;感觉像透明渐变
//Cross fades two scenes using the CCRenderTexture object.
CCTransitionCrossFade		//从外围渐变进入  

//Turn off the tiles of the outgoing scene in random order  
CCTransitionTurnOffTiles	//从格子覆盖上层进入

//The odd columns(奇数列) goes upwards while the even columns(偶数列) goes downwards.    
CCTransitionSplitCols	//竖直分三个方块切入   
//The odd rows(奇数行) goes to the left while the even rows(偶数行) goes to the right. 
CCTransitionSplitRows	//横向分三个方块切入   

//Fade the tiles of the outgoing scene from the left-bottom corner the to top-right corner. 
CCTransitionFadeTR		//从左下角向右上角格子渐变进入   
//Fade the tiles of the outgoing scene from the top-right corner to the bottom-left corner. 
CCTransitionFadeBL		//从右上角角向左下角格子渐变进入 

//类似百叶窗动画
//Fade the tiles of the outgoing scene from the top to the bottom.
CCTransitionFadeDown	//从上向下渐变进入
//Fade the tiles of the outgoing(即将离去) scene from the bottom to the top.
CCTransitionFadeUp		//从下向上渐变进入  


//渐隐效果
CCTransitionPageTurn, //翻页效果

 

 

菜单按钮事件:

void GameMainScene::transition(CCObject* pSender)
{
	CCScene* scene = CCTransitionFadeDown::create(1.0f, GameLevelScene::scene());

	CCDirector::sharedDirector()->replaceScene(scene);
}



 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值