HTML and CSS Reference
In-Depth Information
Figure 8-14.
Example 8-14
A* applied to the 15x15 tile map
Example 8-14. Larger A* example
<!doctype html>
<html
<html lang=
"en"
>
<head>
<head>
<meta
<meta charset=
"UTF-8"
>
<title>
<title>
Chapter 8 Example 14 - Larger A* Example
</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
();
}
function
function
canvasSupport
() {
return
return
Modernizr
.
canvas
;
}
function
function
canvasApp
(){