npretto/pathfinding

Crash when covering the star/goal with a red box

altschuler opened this issue · 0 comments

The app crashed if you cover the star with one of the red boxes. You have to resize the red box, not move the star, as the latter works fine by displacing the star to the nearest edge of the box.

TypeError: can't access property "x", n is undefined
    k createPathFinder.js:73

Cool project :)