/
index.html
84 lines (55 loc) · 2.21 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>It is as if you were doing work</title>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<link rel="stylesheet" href="css/jquery-ui.min.css">
<link rel="stylesheet" href="css/jquery-ui.theme.min.css">
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<link rel="stylesheet" href="css/style.css">
<script src="js/lodash.min.js"></script>
<script src="js/breakout/phaser.min.js"></script>
<script src="js/breakout/Boot.js"></script>
<script src="js/breakout/Preloader.js"></script>
<script src="js/breakout/Breakout.js"></script>
<script src="js/data.js"></script>
<script src="js/ui-generators.js"></script>
<script src="js/game.js"></script>
</head>
<body>
<div id="window-size-overlay">
</div>
<div id="wrapper">
<div id="container">
<div id="ui">
</div>
</div>
</div>
<div id="gameContainer"></div>
<script type="text/javascript">
var breakoutPhaserGame;
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)
breakoutPhaserGame = new Phaser.Game(480, 320, Phaser.AUTO, 'gameContainer');
// 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.
breakoutPhaserGame.state.add('Boot', BasicGame.Boot);
breakoutPhaserGame.state.add('Preloader', BasicGame.Preloader);
breakoutPhaserGame.state.add('Breakout', BasicGame.Breakout);
// Now start the Boot state.
breakoutPhaserGame.state.start('Boot');
};
</script>
<!-- FOR PIPPINBARR.COM -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-GECKZQ62DH"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-GECKZQ62DH');
</script>
</body>
</html>