Beispiel #1
0
        public CCActionInterval createEffect(int nIndex, float t)
        {
            // This fixes issue https://github.com/totallyevil/cocos2d-xna/issues/148
            // TransitionTests and TileTests may have set the DepthTest to true so we need
            // to make sure we reset it.
            CCDirector.SharedDirector.SetDepthTest(false);

            switch (nIndex)
            {
            case 0: return(Shaky3DDemo.actionWithDuration(t));

            case 1: return(Waves3DDemo.actionWithDuration(t));

            case 2: return(FlipX3DDemo.actionWithDuration(t));

            case 3: return(FlipY3DDemo.actionWithDuration(t));

            case 4: return(Lens3DDemo.actionWithDuration(t));

            case 5: return(Ripple3DDemo.actionWithDuration(t));

            case 6: return(LiquidDemo.actionWithDuration(t));

            case 7: return(WavesDemo.actionWithDuration(t));

            case 8: return(TwirlDemo.actionWithDuration(t));

            case 9: return(ShakyTiles3DDemo.actionWithDuration(t));

            case 10: return(ShatteredTiles3DDemo.actionWithDuration(t));

            case 11: return(ShuffleTilesDemo.actionWithDuration(t));

            case 12: return(FadeOutTRTilesDemo.actionWithDuration(t));

            case 13: return(FadeOutBLTilesDemo.actionWithDuration(t));

            case 14: return(FadeOutUpTilesDemo.actionWithDuration(t));

            case 15: return(FadeOutDownTilesDemo.actionWithDuration(t));

            case 16: return(TurnOffTilesDemo.actionWithDuration(t));

            case 17: return(WavesTiles3DDemo.actionWithDuration(t));

            case 18: return(JumpTiles3DDemo.actionWithDuration(t));

            case 19: return(SplitRowsDemo.actionWithDuration(t));

            case 20: return(SplitColsDemo.actionWithDuration(t));

            case 21: return(PageTurn3DDemo.actionWithDuration(t));
            }

            return(null);
        }
Beispiel #2
0
        public CCActionInterval createEffect(int nIndex, float t)
        {
//            CCDirector.SharedDirector.SetDepthTest(false);

            switch (nIndex)
            {
            case 0: return(Shaky3DDemo.actionWithDuration(t));

            case 1: return(Waves3DDemo.actionWithDuration(t));

            case 2: return(FlipX3DDemo.actionWithDuration(t));

            case 3: return(FlipY3DDemo.actionWithDuration(t));

            case 4: return(Lens3DDemo.actionWithDuration(t));

            case 5: return(Ripple3DDemo.actionWithDuration(t));

            case 6: return(LiquidDemo.actionWithDuration(t));

            case 7: return(WavesDemo.actionWithDuration(t));

            case 8: return(TwirlDemo.actionWithDuration(t));

            case 9: return(ShakyTiles3DDemo.actionWithDuration(t));

            case 10: return(ShatteredTiles3DDemo.actionWithDuration(t));

            case 11: return(ShuffleTilesDemo.actionWithDuration(t));

            case 12: return(FadeOutTRTilesDemo.actionWithDuration(t));

            case 13: return(FadeOutBLTilesDemo.actionWithDuration(t));

            case 14: return(FadeOutUpTilesDemo.actionWithDuration(t));

            case 15: return(FadeOutDownTilesDemo.actionWithDuration(t));

            case 16: return(TurnOffTilesDemo.actionWithDuration(t));

            case 17: return(WavesTiles3DDemo.actionWithDuration(t));

            case 18: return(JumpTiles3DDemo.actionWithDuration(t));

            case 19: return(SplitRowsDemo.actionWithDuration(t));

            case 20: return(SplitColsDemo.actionWithDuration(t));

            case 21: return(PageTurn3DDemo.actionWithDuration(t));
            }

            return(null);
        }