public JumpingForm() { InitializeComponent(); pl = new Player(); winHeight = ClientSize.Height; winWidth = ClientSize.Width; }
public PlayerIdleState(Player pl) { Console.WriteLine("Player is idling"); this.pl = pl; }
public JumpingState(Player pl) { Console.WriteLine("Jumping"); this.pl = pl; }
public FallingState(Player pl) { Console.WriteLine("Falling"); this.pl = pl; _acc = 0.5; }