Ejemplo n.º 1
0
        private void MoveToDownFromCenterClear()
        {
            spriteTopBg.RemoveAllActions();
            spriteTop.RemoveAllActions();

            spriteBelowBg.RemoveAllActions();
            spriteBelow.RemoveAllActions();

            navSpriteTop.RemoveAllActions();
            navLabelTop.RemoveAllActions();

            navSpriteBottom.RemoveAllActions();
            navLabelBottom.RemoveAllActions();

            SKAction actionTop        = SKAction.MoveToY((View.Frame.Height / 2) + 60, 0.2);
            SKAction actionBelow      = SKAction.MoveToY((0 - View.Frame.Height / 2) + 60, 0.2);
            SKAction actionBelowLabel = SKAction.MoveToY(0 + 20, 0.2);
            SKAction actionTopLabel   = SKAction.MoveToY(0 + 80, 0.2);

            spriteTopBg.RunAction(actionTop);
            spriteTop.RunAction(actionTop);

            spriteBelowBg.RunAction(actionBelow);
            spriteBelow.RunAction(actionBelow);

            navSpriteTop.RunAction(actionTopLabel);
            navLabelTop.RunAction(actionTopLabel);

            navSpriteBottom.RunAction(actionBelowLabel);
            navLabelBottom.RunAction(actionBelowLabel);

            gameMode = 2;
        }
Ejemplo n.º 2
0
        private void MoveToUpFromCenterClear()
        {
            spriteTopBg.RemoveAllActions();
            spriteTop.RemoveAllActions();

            spriteBelowBg.RemoveAllActions();
            spriteBelow.RemoveAllActions();

            navSpriteTop.RemoveAllActions();
            navLabelTop.RemoveAllActions();

            navSpriteBottom.RemoveAllActions();
            navLabelBottom.RemoveAllActions();

            SKAction actionTop        = SKAction.MoveToY((View.Frame.Height * 1.5f) - 60, 0.2);
            SKAction actionBelow      = SKAction.MoveToY((View.Frame.Height / 2) - 60, 0.2);
            SKAction actionBelowLabel = SKAction.MoveToY(View.Frame.Height - 100, 0.2);
            SKAction actionTopLabel   = SKAction.MoveToY(View.Frame.Height - 40, 0.2);

            spriteTopBg.RunAction(actionTop);
            spriteTop.RunAction(actionTop);

            spriteBelowBg.RunAction(actionBelow);
            spriteBelow.RunAction(actionBelow);

            navSpriteTop.RunAction(actionTopLabel);
            navLabelTop.RunAction(actionTopLabel);

            navSpriteBottom.RunAction(actionBelowLabel);
            navLabelBottom.RunAction(actionBelowLabel);

            gameMode = 1;
        }
Ejemplo n.º 3
0
        private void MoveToCenterFromUp()
        {
            SKAction actionTopA = SKAction.MoveToY(View.Frame.Height - 5, 0.1);
            SKAction actionTopB = SKAction.MoveToY(View.Frame.Height + 5, 0.1);
            SKAction actionTopC = SKAction.MoveToY(View.Frame.Height, 0.2);

            SKAction actionBelowA = SKAction.MoveToY(0 - 5, 0.1);
            SKAction actionBelowB = SKAction.MoveToY(0 + 5, 0.1);
            SKAction actionBelowC = SKAction.MoveToY(0, 0.2);

            SKAction actionTopLabelA = SKAction.MoveToY(View.Frame.Height / 2 + 15, 0.1);
            SKAction actionTopLabelB = SKAction.MoveToY(View.Frame.Height / 2 + 25, 0.1);
            SKAction actionTopLabelC = SKAction.MoveToY(View.Frame.Height / 2 + 20, 0.2);

            SKAction actionBelowLabelA = SKAction.MoveToY(View.Frame.Height / 2 - 45, 0.1);
            SKAction actionBelowLabelB = SKAction.MoveToY(View.Frame.Height / 2 - 35, 0.1);
            SKAction actionBelowLabelC = SKAction.MoveToY(View.Frame.Height / 2 - 40, 0.2);

            SKAction seqTop        = SKAction.Sequence(actionTopA, actionTopB, actionTopC);
            SKAction seqBelow      = SKAction.Sequence(actionBelowA, actionBelowB, actionBelowC);
            SKAction seqTopLabel   = SKAction.Sequence(actionTopLabelA, actionTopLabelB, actionTopLabelC);
            SKAction seqBelowLabel = SKAction.Sequence(actionBelowLabelA, actionBelowLabelB, actionBelowLabelC);

            spriteTop.RunAction(seqTop);
            spriteTopBg.RunAction(seqTop);

            spriteBelow.RunAction(seqBelow);
            spriteBelowBg.RunAction(seqBelow);

            navSpriteBottom.RunAction(seqBelowLabel);
            navLabelBottom.RunAction(seqBelowLabel);

            navLabelTop.RunAction(seqTopLabel);
            navSpriteTop.RunAction(seqTopLabel);

            actionStarted = false;
            gameMode      = 0;
        }
Ejemplo n.º 4
0
        private void MoveToDownFromCenter()
        {
            SKAction actionTopA = SKAction.MoveToY((View.Frame.Height / 2) + 55, 0.1);
            SKAction actionTopB = SKAction.MoveToY((View.Frame.Height / 2) + 65, 0.1);
            SKAction actionTopC = SKAction.MoveToY((View.Frame.Height / 2) + 60, 0.2);

            SKAction actionBelowA = SKAction.MoveToY((0 - View.Frame.Height / 2) + 55, 0.1);
            SKAction actionBelowB = SKAction.MoveToY((0 - View.Frame.Height / 2) + 65, 0.1);
            SKAction actionBelowC = SKAction.MoveToY((0 - View.Frame.Height / 2) + 60, 0.2);

            SKAction actionBelowLabelA = SKAction.MoveToY(0 + 15, 0.1);
            SKAction actionBelowLabelB = SKAction.MoveToY(0 + 25, 0.1);
            SKAction actionBelowLabelC = SKAction.MoveToY(0 + 20, 0.2);

            SKAction actionTopLabelA = SKAction.MoveToY(0 + 75, 0.1);
            SKAction actionTopLabelB = SKAction.MoveToY(0 + 85, 0.1);
            SKAction actionTopLabelC = SKAction.MoveToY(0 + 80, 0.2);

            SKAction seqTop        = SKAction.Sequence(actionTopA, actionTopB, actionTopC);
            SKAction seqBelow      = SKAction.Sequence(actionBelowA, actionBelowB, actionBelowC);
            SKAction seqTopLabel   = SKAction.Sequence(actionTopLabelA, actionTopLabelB, actionTopLabelC);
            SKAction seqBelowLabel = SKAction.Sequence(actionBelowLabelA, actionBelowLabelB, actionBelowLabelC);

            spriteTop.RunAction(seqTop);
            spriteTopBg.RunAction(seqTop);

            spriteBelow.RunAction(seqBelow);
            spriteBelowBg.RunAction(seqBelow);

            navSpriteBottom.RunAction(seqBelowLabel);
            navLabelBottom.RunAction(seqBelowLabel);

            navLabelTop.RunAction(seqTopLabel);
            navSpriteTop.RunAction(seqTopLabel);

            gameMode      = 2;
            actionStarted = false;
        }
Ejemplo n.º 5
0
        private void MoveToUpFromCenter()
        {
            SKAction actionTopA = SKAction.MoveToY((View.Frame.Height * 1.5f) - 55, 0.1);
            SKAction actionTopB = SKAction.MoveToY((View.Frame.Height * 1.5f) - 65, 0.1);
            SKAction actionTopC = SKAction.MoveToY((View.Frame.Height * 1.5f) - 60, 0.2);

            SKAction actionBelowA = SKAction.MoveToY((View.Frame.Height / 2) - 55, 0.1);
            SKAction actionBelowB = SKAction.MoveToY((View.Frame.Height / 2) - 65, 0.1);
            SKAction actionBelowC = SKAction.MoveToY((View.Frame.Height / 2) - 60, 0.2);

            SKAction actionBelowLabelA = SKAction.MoveToY(View.Frame.Height - 95, 0.1);
            SKAction actionBelowLabelB = SKAction.MoveToY(View.Frame.Height - 105, 0.1);
            SKAction actionBelowLabelC = SKAction.MoveToY(View.Frame.Height - 100, 0.2);

            SKAction actionTopLabelA = SKAction.MoveToY(View.Frame.Height - 35, 0.1);
            SKAction actionTopLabelB = SKAction.MoveToY(View.Frame.Height - 45, 0.1);
            SKAction actionTopLabelC = SKAction.MoveToY(View.Frame.Height - 40, 0.2);

            SKAction seqTop        = SKAction.Sequence(actionTopA, actionTopB, actionTopC);
            SKAction seqBelow      = SKAction.Sequence(actionBelowA, actionBelowB, actionBelowC);
            SKAction seqTopLabel   = SKAction.Sequence(actionTopLabelA, actionTopLabelB, actionTopLabelC);
            SKAction seqBelowLabel = SKAction.Sequence(actionBelowLabelA, actionBelowLabelB, actionBelowLabelC);

            spriteTop.RunAction(seqTop);
            spriteTopBg.RunAction(seqTop);

            spriteBelow.RunAction(seqBelow);
            spriteBelowBg.RunAction(seqBelow);

            navSpriteBottom.RunAction(seqBelowLabel);
            navLabelBottom.RunAction(seqBelowLabel);

            navLabelTop.RunAction(seqTopLabel);
            navSpriteTop.RunAction(seqTopLabel);

            gameMode      = 1;
            actionStarted = false;
        }