Clean up some requires and jsdoc.
Fix rendering glitch where large map tiles (e.g. large rocks)
disappear abruptly when their top-left tile goes out of the viewport.
We just render an additional tile to the left and top of the entire
viewport to handle 2x2 tiles.