예제 #1
0
        /*
         *
         * Animate a Label to go from the character location to the other end of the screen
         * Param Nothing.
         * Returns Nothing.
         */
        private async Task AttackPixelCharacter()
        {
            CharacterAttacking.IsEnabled = true;
            CharacterAttacking.IsVisible = true;
            CharacterAttacking.Opacity   = 100;
            await CharacterAttacking.TranslateTo(Application.Current.MainPage.Width - 26, -Application.Current.MainPage.Height + BossStats.Height + CharacterStats.Height, 1000);

            InitializeStats();
            CharacterAttacking.Opacity       = 0;
            CharacterAttacking.TranslationY += Application.Current.MainPage.Height - BossStats.Height - CharacterStats.Height;
            CharacterAttacking.TranslationX -= Application.Current.MainPage.Width + 26;
            CharacterAttacking.IsEnabled     = false;
            CharacterAttacking.IsVisible     = false;
        }