Last active
December 11, 2015 00:19
-
-
Save McFunkypants/4515991 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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