// Ends the game if player loses all lives // If player has a high score, they can enter their name to the leaderboard public void End() { // Go back to splash screen Hide(); SplashHold.ResetMusic(); SplashHold.Show(); // Check if player score is good enough for leaderboard HighScores hs = new HighScores(); if (hs.Worthy(GetScore())) { // Initiate high score prompt new Prompt(GetScore(), SplashHold); } Dispose(); }
// Updates the High Scores text box to the most recent leaderboard public void UpdateHS() { HighScores hs = new HighScores(); highScoresRichTextBox.Text = hs.ToString(); }