public void Draw(GameTime gameTime, SpriteBatch spriteBatch) { // start the drawing of the spritebatch spriteBatch.Begin(); // change what we draw based on gamestate switch (gameState) { // draw the menu case GameState.MainMenu: // draw the title screen image spriteBatch.Draw(mainMenuImage, new Vector2(250, 100), Color.White); MainMenu.Draw(spriteBatch, font); break; // draw the menu case GameState.Settings: SettingsMenu.Draw(spriteBatch, font); break; // draw the menu case GameState.Credits: Credits.Draw(spriteBatch, font); break; // draw the menu case GameState.Controls: Controls.Draw(spriteBatch, font); break; // draw the menu case GameState.GameOver: GameOver.Draw(spriteBatch, font); break; // draw the game case GameState.Running: game.Draw(spriteBatch, font); break; } spriteBatch.End(); }