Made behAnimatedState's state comparison customizable, rather than hardcoded as <.
Started platformer.html as a copy of canvas-fancy.html. Generalized its shape-rendering loop so it could draw more than rectangles.