Void StartScene: beginGame () {CCLog ("beginGame"); // CCTransitionScene * trans = CCTransitionScene: create (2, level); // CCDirector: shareddire () -> replaceScene (level); // scenario switch CCTransitionScene * reScene = NULL; CCScene * s = LevelScene: scene (); float t = 1.2f; // CCTransitionJumpZoom // function: create a beating transition animation // parameter 1: Time of the transition action // parameter 2: the object to be switched to the target scenario // reScene = CCTransitionJumpZoom: create (t, s ); // CCDirector: sharedDirector ()-> replaceScene (reScene); // CCTransitionProgressRadialCCW // role: Create a transition animation in the form of a slice, In the counterclockwise direction // parameter 1: time of the transition action // parameter 2: the object to be switched to the target scenario // reScene = CCTransitionProgressRadialCCW: create (t, s); // CCDirector: shareddire () -> replaceScene (reScene); // CCTransitionProgressRadialCW // role: create a sector-shaped transition animation, clockwise. // parameter 1: Time of the transition action // parameter 2: switch to the target scenario object // reScene = CCTransitionProgressRadialCW: create (t, s); // CCDirector: sharedDirector ()-> replaceScene (reScene ); // CCTransitionProgressHorizontal // role: Create a horizontal transition animation, // parameter 1: Time of the transition action // parameter 2: the object to be switched to the target scenario // reScene = CCTransitionProgressHorizontal:: create (t, s); // CCDirector: shareddire()-> replaceScene (reScene); // CCTransitionProgressVertical // role: create a vertical transition animation, // parameter 1: Time of the transition action // parameter 2: the object to be switched to the target scenario // reScene = CCTransitionProgressVertical: create (t, s); // CCDirector :: sharedDirector ()-> replaceScene (reScene); // CCTransitionProgressInOut // role: Create a transition animation extending from the inside out, // parameter 1: time of the transition action // parameter 2: the object to be switched to the target scenario // reScene = CCTransitionProgressInOut: create (t, s); // CCDirector: shareddire () -> replaceScene (reScene); // CCTransitionProgressOutIn // role: Create a transition animation extended from the external, // parameter 1: Time of the transition action // parameter 2: switch to the target scenario object // reScene = CCTransitionProgressOutIn: create (t, s); // CCDirector: sharedDirector ()-> replaceScene (reScene ); // CCTransitionCrossFade // function: Create a gradually transparent transition animation // parameter 1: Time of the transition action // parameter 2: the object to be switched to the target scenario // reScene = CCTransitionCrossFade :: create (t, s); // CCDirector: shareddire()-> replaceScene (reScene); // CCTransitionPageTurn // create a page flip transition animation // parameter 1: duration of the transition action // parameter 2: the object of the switched target scenario // parameter 3: whether to Reverse flip/reScene = CCTransitionPageTurn: create (t, s, false ); // CCDirector: sharedDirector ()-> replaceScene (reScene); // CCTransitionFadeTR // role: Create a blog transition animation, from bottom left to top right // parameter 1: duration of the transition action // parameter 2: Object of the switched target scenario // reScene = CCTransitionFadeTR: create (t, s); // CCDirector: shareddire () -> replaceScene (reScene); // CCTransitionFadeBL // role: Create a blog transition animation, from top right to bottom left // parameter 1: duration of the Transition action // parameter 2: the object of the switched target scenario // reScene = CCTransitionFadeBL: create (t, s); // CCDirector: shareddire()-> replaceScene (reScene ); // CCTransitionFadeUp // role: Create a transition animation for bottom-to-top and bar collapse. // parameter 1: duration of the Transition action. // parameter 2: the object of the switched target scenario // reScene = CCTransitionFadeUp: create (t, s); // CCDirector: shareddire()-> replaceScene (s ); // CCTransitionFadeDown // role: Create a transition animation from top to bottom, and fold the bar. // parameter 1: duration of the Transition action. // parameter 2: the object of the switched target scenario // reScene = CCTransitionFadeDown: create (t, s); // CCDirector: shareddire()-> replaceScene (reScene ); // CCTransitionTurnOffTiles // role: Create a transition animation with a random square disappear // parameter 1: duration of the Transition action // parameter 2: The object reScene = CCTransitionTurnOffTiles of the switched target scenario:: create (t, s); // CCDirector: shareddire()-> replaceScene (reScene); // CCTransitionSplitRows // function: create a transition animation for Branch Division switch // parameter 1: duration of the Transition action // parameter 2: Object of the switched target scenario // reScene = CCTransitionSplitRows: create (t, s); // CCDirector: sharedDirector ()-> replaceScene (reScene); // CCTransitionSplitCols // role: create a transitional animation for partition switching // parameter 1: duration of the transition action // parameter 2: Object of the switched target scenario // reScene = CCTransitionSplitCols: create (t, s); // CCDirector: shareddire () -> replaceScene (reScene); // CCTransitionFade // role: Create an animation for switching from gradually to the target color. // parameter 1: duration of the Transition action // parameter 2: object of the switched target scenario // parameter 3: Target color // reScene = CCTransitionFade: create (t, s, ccc3 (255, 0, 0); // CCDirector:: sharedDirector ()-> replaceScene (reScene); // CCTransitionFlipX // role: Create a switching animation for X axis reversal. // parameter 1: duration of the Transition action. // parameter 2: object of the switched target scenario // parameter 3: Reverse type of enumeration variables up and down // kOrientationDownOver implements kOrientationRightOver kOrientationUpOver // reScene = CCTransitionFlipX: create (t, s, limit ); // CCDirector: sharedDirector ()-> replaceScene (reScene); // CCTransitionFlipY // parameter 1: duration of the Transition action // parameter 2: object of the switched target scenario // parameter 3: Up and down of the reverse enumeration variable // reScene = CCTransitionFlipY: create (t, s //, kOrientationDownOver); // CCDirector:: sharedDirector ()-> replaceScene (reScene); // CCTransitionFlipAngular // role: Create an animation with Reverse Rotation switching /// parameter 1: duration of the transition action // parameter 2: object in the switched target scenario // parameter 3: Up or down the reversed enumerated variable // reScene = CCTransitionFlipAngular: create (t, s, kOrientationLeftOver); // CCDirector: sharedDirector ()-> replaceScene (reScene); // CCTransitionZoomFlipX // role: create an animation with a scaled X axis reversal switch // parameter 1: duration of the Transition action // parameter 2: Object of the switched target scenario // parameter 3: reverse type enumeration variables up and down // reScene = CCTransitionZoomFlipX: create (t, s, kOrientationLeftOver); // CCDirector: shareddire()-> replaceScene (reScene ); // CCTransitionZoomFlipY // function: Create an animation with the scaled Y axis reversal switch // parameter 1: duration of the Transition action // parameter 2: object of the switched target scenario // parameter 3: Up or down the enumerated variable of the Reverse type // reScene = CCTransitionZoomFlipY: create (t, s, kOrientationDownOver); // CCDirector :: sharedDirector ()-> replaceScene (reScene); // CCTransitionZoomFlipAngular // role: Create an animation with scaling and Reverse Rotation switching // parameter 1: duration of the transition action // parameter 2: object in the switched target scenario // parameter 3: Up or down the reversed enumerated variable // reScene = CCTransitionZoomFlipAngular: create (t, s, kOrientationRightOver); // CCDirector: sharedDirector ()-> replaceScene (reScene); // CCTransitionShrinkGrow // create an alternate transition animation with the following parameters: duration of the transition action // parameter 2: Object of the switched target scenario // reScene = CCTransitionShrinkGrow: create (t, s); // CCDirector: shareddire () -> replaceScene (reScene); // CCTransitionRotoZoom // create a transition animation with rotation and contraction alternating; // parameter 1: duration of the Transition action // parameter 2: the object of the switched target scenario // reScene = CCTransitionRotoZoom: create (t, s); // CCDirector: shareddire()-> replaceScene (reScene ); // CCTransitionMoveInL // role: Create a transition animation pushed from the Left to overwrite // parameter 1: duration of the Transition action // parameter 2: the object of the switched target scenario // reScene = CCTransitionMoveInL: create (t, s); // CCDirector: shareddire()-> replaceScene (reScene ); // CCTransitionMoveInR // role: Create a transition animation push from the right to overwrite // parameter 1: duration of the Transition action // parameter 2: the object of the switched target scenario // reScene = CCTransitionMoveInR: create (t, s); // CCDirector: shareddire()-> replaceScene (reScene ); // CCTransitionMoveInB // role: Create a transition animation pushed from the bottom to overwrite // parameter 1: duration of the Transition action // parameter 2: the object of the switched target scenario // reScene = CCTransitionMoveInB: create (t, s); // CCDirector: shareddire()-> replaceScene (reScene ); // CCTransitionMoveInT // role: Create a transition animation pushed from top to overwrite // parameter 1: duration of the Transition action // parameter 2: the object of the switched target scenario // reScene = CCTransitionMoveInT: create (t, s); // CCDirector: shareddire()-> replaceScene (reScene ); // CCTransitionSlideInL // role: Create a transition animation pushed from the left and pushed out of the old scene // parameter 1: duration of the Transition action // parameter 2: the object of the switched target scenario // reScene = CCTransitionSlideInL: create (t, s); // CCDirector: shareddire()-> replaceScene (reScene ); // CCTransitionSlideInR // role: Create a transition animation pushed from the right to the original scene. // parameter 1: duration of the Transition action. // parameter 2: the object of the switched target scenario // reScene = CCTransitionSlideInR: create (t, s); // CCDirector: shareddire()-> replaceScene (reScene ); // CCTransitionSlideInT // role: Create a transition animation pushed from the top and pushed out of the old scene // parameter 1: duration of the Transition action // parameter 2: the object of the switched target scenario // reScene = CCTransitionSlideInT: create (t, s); // CCDirector: shareddire()-> replaceScene (reScene ); // CCTransitionSlideInB // role: Create a transition animation pushed from the lower part and pushed out of the old scene // parameter 1: duration of the Transition action // parameter 2: the object of the switched target scenario // reScene = CCTransitionSlideInB: create (t, s); CCDirector: sharedDirector ()-> replaceScene (reScene );}