private void System_Reset() { //establishes base content settings that will be used whenever it is time to reset content textBox.Text = ""; Lighting_off(); State = 0; Level = 1; list_Clearer(); Lose.Play(); }
private void ShowIcon() { if (PlayerHP > 0 && EnemyHP > 0) { Rock.Visibility = Visibility.Visible; Paper.Visibility = Visibility.Visible; Scissors.Visibility = Visibility.Visible; Pselect.Visibility = Visibility.Visible; Eselect.Visibility = Visibility.Visible; RockSelect.Visibility = Visibility.Visible; ScissorsSelect.Visibility = Visibility.Visible; PaperSelect.Visibility = Visibility.Visible; RockText.Visibility = Visibility.Visible; ScissorsText.Visibility = Visibility.Visible; PaperText.Visibility = Visibility.Visible; RockPer.Visibility = Visibility.Visible; ScissorsPer.Visibility = Visibility.Visible; PaperPer.Visibility = Visibility.Visible; Game(); } else { HardTheme.Stop(); End.Visibility = Visibility.Visible; if (PlayerHP == 0) { Lose.Play(); End.Text = "You Lose!"; OK.Visibility = Visibility.Visible; } else { Win.Play(); End.Text = "You Win!"; OK.Visibility = Visibility.Visible; } } }
public void LoseSound() => Lose.Play();
public void PlayGameOver() { Main.Stop(); Lose.Play(); }