-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.html
36 lines (35 loc) · 1.28 KB
/
game.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
31
32
33
34
35
36
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="utf-8">
<title>SpaceShips</title>
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico">
<script src="js/lib/enchant.min.js"></script>
<script src="js/enemyChars.js"></script>
<script src="js/friendlyChars.js"></script>
<script src="js/effects.js"></script>
<script src="js/leaderBoard.js"></script>
<script src="js/gameScene.js"></script>
<script src="js/comControls.js"></script>
<script src="js/mobileControls.js"></script>
<script src="js/config.js"></script>
<script src="js/main.js"></script>
<script src="js/launchGameScreen.js"></script>
<script>
function handleResize() {
var w = window.outerWidth;
var h = window.outerHeight;
if (w > 575) {
window.resizeTo(575, h);
}
if (h > 845) {
window.resizeTo(w, 845);
}
}
window.addEventListener("resize", handleResize);
</script>
</head>
<body>
<div style="width:800px; margin:0 auto;"></div>
</body>
</html>