private void ResetToGameOver(GameResults gameResults, GameOptions gameOptions) { GameState = GameState.Starting; GameOverScreen.GameResults = gameResults; GameOverScreen.GameOptions = gameOptions; gameStartingScreen = GameStartingScreen.GameOverScreen; }
public HUD(Game game, GameOptions gameOptions) { this.Game = game; this.gameOptions = gameOptions; gameResults = new GameResults(); healthBar = new HUDBar(HEALTH_BAR_BACKGROUND_COLOR, HEALTH_BAR_BAR_COLOR, HEALTH_BAR_FRAME, "Health:"); staminaBar = new HUDBar(STAMINA_BAR_BACKGROUND_COLOR, STAMINA_BAR_BAR_COLOR, STAMINA_BAR_FRAME, "Stamina:"); messageQueue = new HUDTextTimedQueue(MESSAGE_QUEUE_BASEPOINT); }