protected override void Update(GameTime gameTime) { if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)) { Exit(); } // TODO: Add your update logic here player.Update(gameTime, map.GetWalls(), map.GetSpikes(), map.getGoal()); playerCamera.setCameraPosition(player.getPosition() - player.getOrigin() + new Vector2(player.getRotation() / 90 * 32, 0)); base.Update(gameTime); }