-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
56 lines (52 loc) · 1.7 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>STACK.</title>
<link rel="shortcut icon" href="assets/favicon.png" type="image/png">
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script>
<script type="text/javascript" src="js/phaser.min.js"></script>
<script type="text/javascript" src="js/constants.js"></script>
<script type="text/javascript" src="js/boot.js"></script>
<script type="text/javascript" src="js/preload.js"></script>
<script type="text/javascript" src="js/gametitle.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/mainmenu.js"></script>
<script type="text/javascript" src="js/gameover.js"></script>
<style type="text/css">
body {
margin: 0;
background-color: #555555;
}
canvas {
margin: 0 auto;
}
</style>
<script type="text/javascript">
// Initialise the game. Adjust the width according to the window size.
(function() {
gameWidth = window.innerWidth * window.devicePixelRatio < 3000
? 3000
: window.innerWidth * window.devicePixelRatio;
Phaser.ScaleManager.SHOW_ALL = 1;
game = new Phaser.Game(
gameWidth,
2500,
Phaser.AUTO
);
//Add all states
game.state.add("Boot", Boot);
game.state.add("Preload", Preload);
game.state.add("GameTitle", GameTitle);
game.state.add("MainMenu", MainMenu);
game.state.add("Main", Main);
game.state.add("GameOver", GameOver);
//Start the first state
game.state.currentTheme = 'qingandian';
game.state.start('Boot');
})();
</script>
</head>
<body>
</body>
</html>