-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
30 lines (30 loc) · 1.02 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{NAME}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="styles/game.css" type="text/css" rel="stylesheet" />
<script src="dojoConfig.js"></script>
<script src="deps/Box2d.min.js"></script>
<script src="dist/game.js"></script>
<script>
if(typeof define !== "function" || !define.amd){
console.log('Game not built, using dojo for loader');
var hd = document.getElementsByTagName("head")[0],
el = document.createElement("script");
el.async = true; // set it to async
el.src = 'deps/dojo/dojo.js';
hd.insertBefore(el, hd.firstChild); // insert it so it will load
}
</script>
</head>
<body>
<div id="gameArea">
<canvas id="canvas" width="700" height="440" ></canvas>
<div id="status">
{NAME} created with <a href="http://frozenjs.com">FrozenJS</a>
</div>
</div>
</body>
</html>