/// <summary> /// Allows the game to run logic. /// </summary> protected override void Update(GameTime gameTime) { KeyboardState ks = Keyboard.GetState(); HandleInput(); ship.Update(ks, camera, collidableObjects); camera.Update(Mouse.GetState(), gameTime, ship.Position, ship.Rotation, graphics); base.Update(gameTime); }
/// <summary> /// Allows the game to run logic. /// </summary> protected override void Update(GameTime gameTime) { KeyboardState ks = Keyboard.GetState(); HandleInput(); ship.Update(ks, camera, collidableObjects); ring.Animate(); if (ks.IsKeyDown(Keys.G)) { Console.WriteLine("LOL" + ship.Position); } camera.Update(Mouse.GetState(), gameTime, ship.Position, ship.Rotation, graphics); base.Update(gameTime); }