Skip to content

Instantly share code, notes, and snippets.

@McFunkypants
Last active December 11, 2015 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save McFunkypants/4515991 to your computer and use it in GitHub Desktop.
Save McFunkypants/4515991 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<title>A-STAR Pathfinding for HTML5 Canvas by @McFunkypants</title>
<style>
body { padding:0; margin:0; height:100%; width:100%; }
div { font-family:arial; font-size:16px; font-weight:bold; text-align:center; }
</style>
<script type='text/javascript' src='astar-pathfinding-canvas.js'></script>
</head>
<body onload='onload()'>
<div>
HTML5 Pathfinding Tutorial by
<a href='http://twitter.com/McFunkypants'>@McFunkypants</a>
<input type='button' onClick='createWorld()' value='New World'>
</div>
<div>
<canvas id="gameCanvas"></canvas>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment