-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (35 loc) · 957 Bytes
/
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>
<head>
<meta charset="UTF-8" />
<title>Client Smash!</title>
<script src="lib/phaser.min.js"></script>
<script src="src/DS.js"></script>
<script src="src/Boot.js"></script>
<script src="src/Preloader.js"></script>
<script src="src/MainMenu.js"></script>
<script src="src/Game.js"></script>
<style>
canvas {
// width: 1024px;
// height: 768px;
image-rendering: -webkit-optimize-contrast;
image-rendering: -moz-crisp-edges;
-ms-interpolation-mode: nearest-neighbor;
}
</style>
</head>
<body>
<div id="gameContainer"></div>
<script type="text/javascript">
window.onload = function() {
var game = new Phaser.Game(1024/2, 768/2, Phaser.CANVAS, 'gameContainer');
game.state.add('Boot', BasicGame.Boot);
game.state.add('Preloader', BasicGame.Preloader);
game.state.add('MainMenu', BasicGame.MainMenu);
game.state.add('Game', BasicGame.Game);
game.state.start('Boot');
};
</script>
</body>
</html>