-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·49 lines (39 loc) · 1.48 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE HTML>
<html style = "background-color: black;">
<head>
<meta charset="UTF-8" />
<title>TIMEJAMMERS (Demo)</title>
<script src="js/phaser.min.js"></script>
<script src="js/Player.js"></script>
<script src="js/Disc.js"></script>
<script src="js/Wall.js"></script>
<script src="js/Net.js"></script>
<script src="js/Reticle.js"></script>
<script src="js/Boot.js"></script>
<script src="js/Preloader.js"></script>
<script src="js/MainMenu.js"></script>
<script src="js/Game.js"></script>
<script src="js/ScoreOverlay.js"></script>
<script src="js/PlayerPortrait.js"></script>
<script src="js/DiscTrail.js"></script>
<script src="js/PlayerTrail.js"></script>
</head>
<body style = "padding-top:100px;">
<div id="gameContainer"></div>
<script type="text/javascript">
window.onload = function() {
// Create your Phaser game and inject it into the gameContainer div.
// We did it in a window.onload event, but you can do it anywhere (requireJS load, anonymous function, jQuery dom ready, - whatever floats your boat)
game = new Phaser.Game(768, 432, Phaser.AUTO, 'gameContainer', null, false, false);
// Add the States your game has.
// You don't have to do this in the html, it could be done in your Boot state too, but for simplicity I'll keep it here.
game.state.add('Boot', Boot);
game.state.add('Preloader', Preloader);
game.state.add('MainMenu', MainMenu);
game.state.add('Game', Game);
// Now start the Boot state.
game.state.start('Boot');
};
</script>
</body>
</html>