HTML and CSS Reference
In-Depth Information
Figure 8-20 shows how the new tile map will affect the node path with diagonal movement
applied. The new tiles will block the diagonal path through the seemingly impassable walls
and create real impassable diagonal walls.
Figure 8-20. A* tank moving through the maze, with added walls to create impassible diagonal
barriers
Example 8-20. New maze design with impassable walls
<!doctype html>
<html
<html lang= "en" >
<head>
<head>
<meta
<meta charset= "UTF-8" >
<title>
<title> Chapter 8 Example 20 - A* With Tank Animation with new maze to prevent
passable walls </title>
</title>
< script src = "modernizr.js" >< /script>
< script type = 'text/javascript' src = 'graph.js' >< /script>
< script type = 'text/javascript' src = 'astar.js' >< /script>
< script type = "text/javascript" >
window . addEventListener ( 'load' , eventWindowLoaded , false
false );
function
function eventWindowLoaded () {
canvasApp ();
}
Search WWH ::




Custom Search