protected override void Update(GameTime gameTime) { GameTime = gameTime; Input.Update(); // Allows the game to exit if (Input.WasButtonPressed(Buttons.Back) || Input.WasKeyPressed(Keys.Escape)) { this.Exit(); } if (Input.WasKeyPressed(Keys.P)) { paused = !paused; } if (Input.WasKeyPressed(Keys.B)) { useBloom = !useBloom; } if (!paused) { PlayerStatus.Update(); EntityManager.Update(); EnemySpawner.Update(); ParticleManager.Update(); Grid.Update(); } base.Update(gameTime); }
protected override void Update(GameTime gameTime) { GameTime = gameTime; Input.Update(); // Allows the game to exit if (Input.WasButtonPressed(Buttons.Back) || Input.WasKeyPressed(Keys.Escape)) { this.Exit(); } EntityManager.Update(); EnemySpawner.Update(); PlayerStatus.Update(); base.Update(gameTime); }