private void UpdateEndState() { KeyboardState ks = Keyboard.GetState(); if (ks.IsKeyDown(Keys.Q)) { mainGame.setCurLevel(Game1.LevelState.Start); setLevelState(); gameState.setState(GameState.state.Start); } if (ks.IsKeyDown(Keys.R)) { setLevelState(); gameState.setState(GameState.state.Level); mainGame.DEATH_COUNTER++; } }
private void UpdateEndState() { if (ks.IsKeyDown(Keys.Q) && Keyboard.GetState().IsKeyUp(Keys.Q)) { //mainGame.Exit(); ks = Keyboard.GetState(); setLevelState(); gameState.setState(GameState.state.Start); mainGame.setCurLevel(Game1.LevelState.Start); } else { ks = Keyboard.GetState(); } if (ks.IsKeyDown(Keys.R)) { setLevelState(); mainGame.DEATH_COUNTER++; gameState.setState(GameState.state.Level); } }