Skip to content

Instantly share code, notes, and snippets.

@BrentFarris
Created December 18, 2016 07:22
Show Gist options
  • Save BrentFarris/a257e072b94ec639e265c5b9c4fa6654 to your computer and use it in GitHub Desktop.
Save BrentFarris/a257e072b94ec639e265c5b9c4fa6654 to your computer and use it in GitHub Desktop.
HTML5 Game Framework Part 2 Updating the index
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HTML 5 Canvas</html>
<style type="text/css">
* {margin:;padding:0;}
html, body {
background-color: #000;
overflow: hidden;
height: 100%;
}
</style>
</head>
<body>
<canvas id="canvas">
Your browser does not support HTML5 canvas. If you would like to view, please update your browser.
</canvas>
<script src="rectangle.js"></script>
<script src="main.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment