void UpdateLevelThreeComp(GameTime deltaTime) { if (Input.WasButtonPressed(Buttons.Back) || Input.WasKeyPressed(Keys.Escape)) { this.Exit(); } if (ScoreAndLives.Score > 1000) { _state = GameState.EndOfGame; } EntityManager.Update(); EnemySpawner.Reset(); WandererSpawn.Reset(); }
void UpdateLevelTwo(GameTime deltaTime) { // Respond to user actions in the game . if (Input.WasButtonPressed(Buttons.Back) || Input.WasKeyPressed(Keys.Escape)) { this.Exit(); } if (ScoreAndLives.Score > 300) { _state = GameState.LevelTwoComp; } EntityManager.Update(); EnemySpawner.Update(); WandererSpawn.Update(); }
void UpdateLevelTwoComp(GameTime deltaTime) { // Respond to user actions in the game . if (Input.WasButtonPressed(Buttons.Back) || Input.WasKeyPressed(Keys.Escape)) { this.Exit(); } if (Keyboard.GetState().IsKeyDown(Keys.Enter)) { _state = GameState.LevelThree; } EntityManager.Update(); EnemySpawner.Update(); WandererSpawn.Update(); }