Exemple #1
0
        public override void OnEntering(IScreen last)
        {
            base.OnEntering(last);

            icon.Delay(1000).FadeColour(iconColour, 200, Easing.OutQuint);
            icon.Delay(1000)
            .MoveToY(icon_y * 1.1f, 160, Easing.OutCirc)
            .RotateTo(-10, 160, Easing.OutCirc)
            .Then()
            .MoveToY(icon_y, 160, Easing.InCirc)
            .RotateTo(0, 160, Easing.InCirc);

            supportFlow.FadeOut().Delay(2000).FadeIn(500);

            animateHeart();

            this
            .FadeInFromZero(500)
            .Then(5500)
            .FadeOut(250)
            .ScaleTo(0.9f, 250, Easing.InQuint)
            .Finally(d =>
            {
                if (nextScreen != null)
                {
                    this.Push(nextScreen);
                }
            });
        }
Exemple #2
0
        private void recordResult(bool correct)
        {
            // Fading this out will improve the frame rate after the first round due to less text on screen.
            explanatoryText.FadeOut(500, Easing.OutQuint);

            if (correct)
            {
                correctAtCurrentDifficulty++;
            }

            if (attemptsAtCurrentDifficulty < totalRoundForNextResultsScreen)
            {
                loadNextRound();
            }
            else
            {
                showResults();
            }
        }