public override void OnEnter()
        {
            base.OnEnter();

            m_pInScene.Scale  = 0.001f;
            m_pOutScene.Scale = 1.0f;

            m_pInScene.AnchorPoint  = new CCPoint(0.5f, 0.5f);
            m_pOutScene.AnchorPoint = new CCPoint(0.5f, 0.5f);

            CCActionInterval rotozoom = CCSequence.FromActions
                                        (
                CCSpawn.FromActions
                (
                    new CCScaleBy(m_fDuration / 2, 0.001f),
                    new CCRotateBy(m_fDuration / 2, 360 * 2)
                ),
                new CCDelayTime(m_fDuration / 2)
                                        );

            m_pOutScene.RunAction(rotozoom);
            m_pInScene.RunAction
            (
                CCSequence.FromActions
                (
                    rotozoom.Reverse(),
                    new CCCallFunc((Finish))
                )
            );
        }
        public override void OnEnter()
        {
            base.OnEnter();

            var s = CCDirector.SharedDirector.WinSize;

            // rotate and jump
            var jump1 = new CCJumpBy(4, new CCPoint(-s.Width + 80, 0), 100, 4);
            var jump2 = jump1.Reverse();
            var rot1  = new CCRotateBy(4, 360 * 2);
            var rot2  = rot1.Reverse();

            var seq3_1 = CCSequence.FromActions(jump2, jump1);
            var seq3_2 = CCSequence.FromActions(rot1, rot2);
            var spawn  = CCSpawn.FromActions(seq3_1, seq3_2);
            var action = new CCSpeed(new CCRepeatForever(spawn), 1.0f);

            action.Tag = EaseTest.kTagAction1;

            var action2 = (CCAction)(action.Copy());
            var action3 = (CCAction)(action.Copy());

            action2.Tag = EaseTest.kTagAction1;
            action3.Tag = EaseTest.kTagAction1;

            m_grossini.RunAction(action2);
            m_tamara.RunAction(action3);
            m_kathia.RunAction(action);

            Schedule(altertime, 1.0f);
        }
        public override void OnEnter()
        {
            base.OnEnter();

            CCActionInterval inA, outA;

            m_pInScene.Visible = false;

            float inDeltaZ, inAngleZ;
            float outDeltaZ, outAngleZ;

            if (m_eOrientation == CCTransitionOrientation.UpOver)
            {
                inDeltaZ  = 90;
                inAngleZ  = 270;
                outDeltaZ = 90;
                outAngleZ = 0;
            }
            else
            {
                inDeltaZ  = -90;
                inAngleZ  = 90;
                outDeltaZ = -90;
                outAngleZ = 0;
            }

            inA = CCSequence.FromActions
                  (
                new CCDelayTime(m_fDuration / 2),
                CCSpawn.FromActions
                (
                    new CCOrbitCamera(m_fDuration / 2, 1, 0, inAngleZ, inDeltaZ, 90, 0),
                    new CCScaleTo(m_fDuration / 2, 1),
                    new CCShow()
                ),
                new CCCallFunc(Finish)
                  );

            outA = CCSequence.FromActions
                   (
                CCSpawn.FromActions
                (
                    new CCOrbitCamera(m_fDuration / 2, 1, 0, outAngleZ, outDeltaZ, 90, 0),
                    new CCScaleTo(m_fDuration / 2, 0.5f)
                ),
                new CCHide(),
                new CCDelayTime(m_fDuration / 2)
                   );

            m_pInScene.Scale = 0.5f;
            m_pInScene.RunAction(inA);
            m_pOutScene.RunAction(outA);
        }
Beispiel #4
0
        public override void OnEnter()
        {
            base.OnEnter();

            alignSpritesLeft(1);

            var action = CCSpawn.FromActions(
                new CCJumpBy(2, new CCPoint(300, 0), 50, 4),
                new CCRotateBy(2, 720));

            m_grossini.RunAction(action);
        }