Add doAnim utility function. Handle setting the jump animation when
we are falling or jumping. Break left/right movement into a separate
section than setting the left/right animation.