HTML and CSS Reference
context . strokeStyle = "black" ;
context . lineWidth = 5 ;
context . arc (( node . y * 32 ) + 16 , ( node . x * 32 ) + 16 , 10 , 0 ,
( Math . PI / 180 ) * 360 , false
context . stroke ();
context . closePath ();
<div style= "position: absolute; top: 50px; left: 50px;" >
<canvas id= "canvas" width= "500" height= "500" >
Your browser does not support the HTML5 Canvas.
the total node path value by 1, it was still the shortest path through the maze to the end
goal node. This resulted in a path that ran through the grass node. In the next example,
tank will avoid the grass node because the A* function will be able to find a path that has a
lower total combined node weight than one that travels over the grass tiles.