/// <summary> /// Constructor controls all loaded content into the application. /// </summary> public GameState() { m_background = MainGame.Instance.Content.Load<Texture2D>(@"Textures/Background"); m_GameScreen = MainGame.Instance.Content.Load<Texture2D>(@"Textures/Game_Screen"); m_TimerScreen = MainGame.Instance.Content.Load<Texture2D>(@"Textures/Timer_Screen"); m_font = MainGame.Instance.Content.Load<SpriteFont>(@"Fonts/MenuFont"); g_font = MainGame.Instance.Content.Load<SpriteFont>(@"Fonts/GameFont"); m_time = string.Empty; m_guess = "Guess:"; m_lose = false; m_player = new Player(); m_Words = new Word(); }
/// <summary> /// Resets timer, player's guess string, and generates a new word. /// </summary> private void Reset() { m_player.UpdateWord(string.Empty); m_Words = new Word(); m_player.m_timer = 30.0f; if (m_guess == "Incorrect Guess") { m_guess = "Guess:"; } }