A*(A星,A star)寻路算法说明:A* Pathfinding for Beginners

测试地址 http://aiddroid.com/astar.php?start[x]=5&start[y]=5&goal[x]=5&goal[y]=20&isCross=1&closeZone=0
参数说明:
isCross:1对角可穿越,0不可穿越
closeZone:1封闭区域,0不封闭
trace:1显示节点的选择,0不显示

点击查看 运行效果(canvas绘图)

代码