Example #1
0
 public Player(Texture2D texture, Vector2 position)
     : base(texture, position)
 {
     _usingPcControls = true;
     _controllerIndex = PlayerIndex.One;
     _mouseScrollValue = Mouse.GetState().ScrollWheelValue;
     _belt = new Belt();
 }
Example #2
0
 public Player(PlayerIndex controllerIndex, Texture2D texture, Vector2 position, bool usesKeyboardMouse = false)
     : base(texture, position)
 {
     _usingPcControls = usesKeyboardMouse;
     _controllerIndex = controllerIndex;
     _belt = new Belt();
     _mouseScrollValue = Mouse.GetState().ScrollWheelValue;
 }