Stable Grid-System with A*
Stable Grid-System with A*

How to use:
//This must be called before attempting to use the grid
collisionGrid.initGrid(width, height, cellsize)

//Returns a list of {pos:[x, y], cell:cell} objects
// Where cell is {snake:snake, part:part}
collisionGrid.lineTest(startX, startY, endX, endY)

//has an example of how to use the A* searching
// the a* will return a list of nodes that can be used with
collisionGrid.getCellByXY(path[index].x, path[index].y) to get the map
space coordinates
collisionGrid.generatePath(startX, startY, endX, endY)

AdrianDroid/Slither.io-bot,ChadSki/Slither.io-bot,alexzeit/Slither.io-bot,ErmiyaEskandary/slither.io-bot