Closed MaksJS closed 11 years ago
Oh, by the way, you forgot to compile coffeescript with commented console.log ;)
@MaksJS, there are two things I used to boost the speed and control memory consumption in this pathfinding module:
brickLoc >>> 16
. To get the y value of a brickLoc, do brickLoc & 0xffff
Try node tests/sync_astar_continue_test.js
it does an continuously test of pathfinding on some map fixtures, and the vm memory recycled correctly.
Ok thanks for the details, I understand better how it works now. I think i'll go with my own fork, I need to disallow diagonals and also a setWalkableAt method
Please go ahead, and let me know if any bug.
To implement setWalkableAt() method, please refere to: https://github.com/yi/node-path-finding/blob/master/src/grid.coffee#L48
and I close this issue for now.
I've tried your pathfinding module @yi, it's really fast ! The fastest i've ever tried. But when I search for a path, it outputs an array with numbers and not a 2d array with coords like [[0,0], [1,0]...]
How can I get this ?
Thanks :)