コード例 #1
0
 public void MoveShip(GamePadState gs, IShip ship)
 {
     if (gs.ThumbSticks.Left != Vector2.Zero) {
         if (gs.ThumbSticks.Left.Y > 0) {
             ship.Accelerate(gs.ThumbSticks.Left.Y * 10);
         }
         ship.Rotate(gs.ThumbSticks.Left.X * 20);
     }
 }