//觸摸事件 - 當手指從螢幕抬起時調用的方法-Himi -(void) ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { CCScene* scenec = [OtherLayout scene]; //部落格------ //CCTransitionTurnOffTiles *transitionScene = [CCTransitionTurnOffTiles transitionWithDuration:3 scene:scenec]; //近遠-遠近----- //CCTransitionShrinkGrow *transitionScene = [CCTransitionShrinkGrow transitionWithDuration:3 scene:scenec]; //另一個layout左側進入(視覺感覺是螢幕右移) //CCTransitionSlideInL *transitionScene = [CCTransitionSlideInL transitionWithDuration:3 scene:scenec]; //另一個layout右側進入(視覺感覺是螢幕左移) //CCTransitionSlideInR *transitionScene = [CCTransitionSlideInR transitionWithDuration:3 scene:scenec]; //另一個layout上側進入(視覺感覺是螢幕下移) //CCTransitionSlideInT *transitionScene = [CCTransitionSlideInT transitionWithDuration:3 scene:scenec]; //另一個layout下側進入(視覺感覺是螢幕上移) //CCTransitionSlideInB *transitionScene = [CCTransitionSlideInB transitionWithDuration:3 scene:scenec]; //當前螢幕被分為3列,兩則下移,中間上移 //CCTransitionSplitCols *transitionScene = [CCTransitionSplitCols transitionWithDuration:3 scene:scenec]; //當前螢幕被分為3列,兩則左移,中間右移 //CCTransitionSplitRows *transitionScene = [CCTransitionSplitRows transitionWithDuration:3 scene:scenec]; //扇形轉換----- //CCTransitionRadialCW *transitionScene = [CCTransitionRadialCW transitionWithDuration:3 scene:scenec]; //平面旋轉----- //CCTransitionRotoZoom *transitionScene = [CCTransitionRotoZoom transitionWithDuration:3 scene:scenec]; //近-遠-跳動------ //CCTransitionJumpZoom *transitionScene = [CCTransitionJumpZoom transitionWithDuration:3 scene:scenec]; //立體反轉(X軸)--(還有種從近到遠,從遠到近的感覺)-------- //CCTransitionZoomFlipX *transitionScene = [CCTransitionZoomFlipX transitionWithDuration:3 scene:scenec]; //立體反轉(Y軸)-(還有種從近到遠,從遠到近的感覺)------- //CCTransitionZoomFlipY *transitionScene = [CCTransitionZoomFlipY transitionWithDuration:3 scene:scenec]; //立體反轉(X,Y軸)---(還有種從近到遠,從遠到近的感覺)----- //CCTransitionZoomFlipAngular *transitionScene = [CCTransitionZoomFlipAngular transitionWithDuration:3 scene:scenec]; //另外一個layout左側進入覆蓋當前layout //CCTransitionMoveInL *transitionScene = [CCTransitionMoveInL transitionWithDuration:3 scene:scenec]; //另外一個layout右側進入覆蓋當前layout //CCTransitionMoveInR *transitionScene = [CCTransitionMoveInR transitionWithDuration:3 scene:scenec]; //另外一個layout上側進入覆蓋當前layout //CCTransitionMoveInT *transitionScene = [CCTransitionMoveInT transitionWithDuration:3 scene:scenec]; //另外一個layout下側進入覆蓋當前layout //CCTransitionMoveInB *transitionScene = [CCTransitionMoveInB transitionWithDuration:3 scene:scenec]; //立體反轉(X軸)--2D平面反轉,沒有遠近感 //CCTransitionFlipX *transitionScene = [CCTransitionFlipX transitionWithDuration:3 scene:scenec]; //立體反轉(Y軸)--2D平面反轉,沒有遠近感 //CCTransitionFlipY *transitionScene = [CCTransitionFlipY transitionWithDuration:3 scene:scenec]; //立體反轉(X,Y軸)--2D平面反轉,沒有遠近感 //CCTransitionFlipAngular *transitionScene = [CCTransitionFlipAngular transitionWithDuration:3 scene:scenec]; //實體-透明-實體(預設無顏色,可以附帶顏色) //CCTransitionFade* transitionScene = [CCTransitionFade transitionWithDuration:3 scene:scenec withColor:ccWHITE]; //另外一個直接漸層覆蓋當前layout //CCTransitionCrossFade *transitionScene = [CCTransitionCrossFade transitionWithDuration:3 scene:scenec]; //移動(方格狀)部落格,從左下往右上 //CCTransitionFadeTR *transitionScene = [CCTransitionFadeTR transitionWithDuration:3 scene:scenec]; //移動(方格狀)部落格,從右上往左下 CCTransitionFadeBL *transitionScene = [CCTransitionFadeBL transitionWithDuration:3 scene:scenec]; //移動(長矩形,寬度是螢幕寬)部落格,從下往上 //CCTransitionFadeUp *transitionScene = [CCTransitionFadeUp transitionWithDuration:3 scene:scenec]; //移動(長矩形,寬度是螢幕寬)部落格,從上往下 //CCTransitionFadeDown *transitionScene = [CCTransitionFadeDown transitionWithDuration:3 scene:scenec]; [[CCDirector sharedDirector] replaceScene: transitionScene];