Example #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);
        }
Example #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);
        }
Example #3
0
        public CCFiniteTimeAction 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.

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

            case 1:
                return(new Waves3DDemo(t));

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

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

            case 4:
                return(new Lens3DDemo(t));

            case 5:
                return(new Ripple3DDemo(t));

            case 6:
                return(new LiquidDemo(t));

            case 7:
                return(new WavesDemo(t));

            case 8:
                return(new TwirlDemo(t, Layer.VisibleBoundsWorldspace.Size.Center));

            case 9:
                return(new ShakyTiles3DDemo(t));

            case 10:
                return(new ShatteredTiles3DDemo(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(new WavesTiles3DDemo(t));

            case 18:
                return(new JumpTiles3DDemo(t));

            case 19:
                return(new SplitRowsDemo(t));

            case 20:
                return(new SplitColsDemo(t));

            case 21:
                return(new PageTurn3DDemo(t));
            }

            return(null);
        }