let board = portBoard(); //we have to port the board to an binary multi dimensional array for the pathfinding library let grid = new PF.Grid( board ); let path = finder.findPath(beast.x, beast.y, BEAST.HERO.x, BEAST.HERO.y, grid);
let board = portBoard(); //we have to port the board to an binary multi dimensional array for the pathfinding library let grid = new PF.Grid( board ); let path = finder.findPath(beast.x, beast.y, BEAST.HERO.x, BEAST.HERO.y, grid);
let board = portBoard(); //we have to port the board to an binary multi dimensional array for the pathfinding library let grid = new PF.Grid( board ); let path = finder.findPath(beast.x, beast.y, BEAST.HERO.x, BEAST.HERO.y, grid);