Obstacle.collideLine seems to work! Didn't use this function in Character.generateMap yet.
Merge branch 'master' of https://github.com/timeeeee/pathfinder