2020-10-23 20:55:20 +08:00
|
|
|
module.exports = {
|
|
|
|
|
visualPath(my_pos, target_pos) {
|
|
|
|
|
// visualize the path
|
2020-10-24 15:57:44 +08:00
|
|
|
// let path = PathFinder.search(my_pos, target_pos).path;
|
2020-10-23 20:55:20 +08:00
|
|
|
// console.log(path)
|
2020-10-24 15:57:44 +08:00
|
|
|
// Game.map.visual.poly(path, { stroke: '#ffffff', strokeWidth: 8, opacity: .2, lineStyle: 'dashed' });
|
2020-10-23 20:55:20 +08:00
|
|
|
}
|
|
|
|
|
}
|