예제 #1
0
 private void Retry_Click(object sender, RoutedEventArgs e)//restart the game with the same difficulty and skin
 {
     Gamecontoller.ClearGame();
     Retry.Visibility = Visibility.Hidden;
     Exit.Visibility  = Visibility.Hidden;
     Gamecontoller.StartGame();
 }
예제 #2
0
 private void StartGame_Click(object sender, RoutedEventArgs e)
 {
     Gamecontoller.ClearGame();
     StartSetup.Width      = 0;
     StartSetup.Visibility = Visibility.Hidden;
     HPText.Visibility     = Visibility.Visible;
     LevelText.Visibility  = Visibility.Visible;
     Gamecontoller.StartGame();
 }
예제 #3
0
 private void Exit_Click(object sender, RoutedEventArgs e)//back to the main menu
 {
     Gamecontoller.ClearGame();
     StartSetup.Width      = 200;
     Retry.Visibility      = Visibility.Hidden;
     Exit.Visibility       = Visibility.Hidden;
     StartSetup.Visibility = Visibility.Visible;
     HPText.Visibility     = Visibility.Hidden;
     LevelText.Visibility  = Visibility.Hidden;
 }