Created
February 19, 2012 11:41
-
-
Save fjl/1863374 to your computer and use it in GitHub Desktop.
game
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Yeah, baby, uh!</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
</head> | |
<body> | |
<canvas id="canvas" width="200" height="200"></canvas> | |
<script src="script.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
jQuery(Game.run); | |
</script> | |
</body> | |
</html> |
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
Game = {}; | |
Game.run = function () { | |
var canvas = document.getElementById("canvas"); | |
var ctx = canvas.getContext("2d"); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment