Minimal change
Cleaner jumping&gravity

Less lines and eaysier to understand. I don't know why but it needs the
line "dirZ = 0;" after the if, with the check if standing on ground, to
start jumping.
Improved rendering

Less flickering when walking with player cause the depth is now now
correct. Still flickering problems while in air.
Had to delete these files to sync.