so the logic would be if player bbox_top and bbox_bottom wall and up and !down, vspeed equal 0 else if down, vspeed equals -2 or whatever