-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTwinStickAlpha.html
92 lines (76 loc) · 2.34 KB
/
TwinStickAlpha.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!doctype html>
<html lang="en">
<head>
<title>Game</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link rel = "stylesheet" href="style.css">
<style type="text/css">
html, body {
width:100%;
height:100%;
font-family:Arial, Helvetica, sans-serif;
margin:0;
padding:0;
overflow:hidden;
}
</style>
</head>
<body>
<div id="game"></div>
<div id="menu" style="background-color: black;" class="hidden">
<H1 id="words" style="color:white; text-align: center;">WIN</H1>
</div>
<!--<div id="glowI" class="glow">
<h1 style="text-orientation: absolute" >
GAME NAME
</h1>
</div>-->
<script src="js/libs/stats.min.js"></script>
<script src="js/libs/detector.js"></script>
<script src="js/libs/three.js"></script>
<script src="js/libs/cannon.js"></script>
<script src="js/libs/GLTFLoader.js"></script>
<script src="js/libs/OBJLoader.js"></script>
<script src="js/game/game.static.js"></script>
<script src="js/game/game.three.js"></script>
<script src="js/game/game.cannon.js"></script>
<script src="js/game/game.events.js"></script>
<script src="js/game/game.helpers.js"></script>
<script src="js/game/game.ui.js"></script>
<script src="js/game/game.controllerHandler.js"></script>
<script src="js/game/game.core.js"></script>
<script src="js/game/game.models.js"></script>
<script src="js/game/game.playerHandler.js"></script>
<script src="js/game/game.enemyHandler.js"></script>
<script src="js/game/game.levelHandler.js"></script>
<script>
if (!Detector.webgl) {
Detector.addGetWebGLMessage();
} else {
window.gameInstance = window.game.core();
window.gameInstance.init({
container: document.querySelector("#game"),
//clearColour: window.game.static.black,
//fov: 45,
//near: 1,
//far: 15000
});
}
// STATS VIA MONKEY PATCH
(function() {
var gameLoop = window.gameInstance.loop;
var stats = new Stats();
stats.domElement.style.position = "absolute";
stats.domElement.style.left = "0px";
stats.domElement.style.top = "0px";
document.body.appendChild( stats.domElement );
window.gameInstance.loop = function() {
stats.begin();
gameLoop();
stats.end();
}
})();
</script>
</body>
</html>