Skip to content

Instantly share code, notes, and snippets.

@fjl
Created February 19, 2012 11:41
Show Gist options
  • Save fjl/1863374 to your computer and use it in GitHub Desktop.
Save fjl/1863374 to your computer and use it in GitHub Desktop.
game
<!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>
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