public void Control(GameWorld gameWorld, Spacecraft me)
 {
     float x = 100 * (Mouse.GetState().X - gameWorld.ScreenCenter.X) / gameWorld.ScreenCenter.X;
     float y = 100 * (Mouse.GetState().Y - gameWorld.ScreenCenter.Y) / gameWorld.ScreenCenter.Y;
     me.RotataeAndMove(new Vector2(x, y));
     if (Mouse.GetState().LeftButton == ButtonState.Pressed) me.FireBullet();
 }
 public void RotateAndMoveWithVelocitySpeedAndTurnLimits(Spacecraft me, Vector2 targetVelocity)
 {
     targetVelocity.Normalize();
     oldVelocity += turnVelocityLimit * targetVelocity;
     oldVelocity.Normalize();
     oldVelocity = moveVelocityLimit * oldVelocity;
     me.RotataeAndMove(oldVelocity);
 }
        public void Control(GameWorld gameWorld, Spacecraft me)
        {
            float x = 100 * (Mouse.GetState().X - gameWorld.ScreenCenter.X) / gameWorld.ScreenCenter.X;
            float y = 100 * (Mouse.GetState().Y - gameWorld.ScreenCenter.Y) / gameWorld.ScreenCenter.Y;

            me.RotataeAndMove(new Vector2(x, y));
            if (Mouse.GetState().LeftButton == ButtonState.Pressed)
            {
                me.FireBullet();
            }
        }
 public void RotateAndMoveWithVelocitySpeedAndTurnLimits(Spacecraft me, Vector2 targetVelocity)
 {
     targetVelocity.Normalize();
     oldVelocity += turnVelocityLimit * targetVelocity;
     oldVelocity.Normalize();
     oldVelocity = moveVelocityLimit * oldVelocity;
     me.RotataeAndMove(oldVelocity);
 }