public Player()
 {
     x = 100;
     y = 100;
     currentState = new PlayerIdleState(this);
     skin = GameResources.Player;
 }
 public void changeState(BaseState newstate)
 {
     currentState = newstate;
 }
 public Player(double x, double y)
 {
     this.x = x;
     this.y = y;
     currentState = new PlayerIdleState(this);
     skin = GameResources.Player;
 }