for p1 to move= d go right, a go left, s attack, w jump. for p2 to move= right arrow to go right, left arrow to go left, down arrow to attack, up arrow to jump.
thanks to benji1565 for the original project.