This code has some bugs (jittering, going sideways through walls) but it is the simplest possible code I could come up with for platformer physics. Use the arrow keys to move and jump. If you need to use this code go right ahead, that's why I made it.