Ejemplo n.º 1
0
 private void ck4_Tapped(object sender, TappedRoutedEventArgs e)
 {
     c5 = 1;
     if ((d == 0) && (final == 0))
     {
         TxtBox_Scoreint.Text = Convert.ToString(score = score + 1);
         ck4.Source           = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(this.BaseUri, "Assets/dead-cockroach.png"));
         Story_ck4.Pause();
         Story_ck6.Begin();
         ck6.Visibility = Visibility.Visible;
         Story_ck5.Begin();
         ck5.Visibility = Visibility.Visible;
         d = 1;
     }
     if ((c1 == 1) && (c2 == 1) && (c3 == 1) && (c4 == 1) && (c5 == 1) && (c6 == 1) && (c7 == 1))
     {
         Btn_Level2.Visibility      = Visibility.Visible;
         TxtBox_congrats.Visibility = Visibility.Visible;
         Storyboard1.Pause();
         Storyboard2.Pause();
         Storyboard3.Pause();
         Story_ck3.Pause();
         Story_ck4.Pause();
         Story_ck5.Pause();
         Story_ck6.Pause();
     }
 }
Ejemplo n.º 2
0
        void Storyboard1_Completed(object sender, object e)
        {
            lady.Source = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(this.BaseUri, "Assets/fear.png"));
            final       = 1;
            Media_shout.Play();

            Storyboard1.Pause();
            Storyboard2.Pause();
            Storyboard3.Pause();
            Story_ck3.Pause();
            Story_ck4.Pause();
            Story_ck5.Pause();
            Story_ck6.Pause();

            TxtBox_gameOver.Visibility = Visibility.Visible;
            Btn_Retry.Visibility       = Visibility.Visible;
        }