-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
45 lines (38 loc) · 1.2 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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8" />
<title>My TITLE!</title>
<script src="lib/phaser.min.js"></script>
<script src="states/Boot.js"></script>
<script src="states/Preloader.js"></script>
<script src="states/MainMenu.js"></script>
<script src="states/Game.js"></script>
<style>
body {
margin: 0;
padding: 0;
background-color: #fff;
}
</style>
<meta name="viewport"
content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
</head>
<body>
<script type="text/javascript">
(function() {
// 100% of the browser window - see Boot.js for additional configuration
var SAFE_ZONE_WIDTH = 960;// * window.devicePixelRatio;
var SAFE_ZONE_HEIGHT = 640;// * window.devicePixelRatio;
var game = new Phaser.Game(SAFE_ZONE_WIDTH, SAFE_ZONE_HEIGHT, Phaser.AUTO, '');
// Add the States your game has.
game.state.add('Boot', RENAME_ME.Boot);
game.state.add('Preloader', RENAME_ME.Preloader);
game.state.add('MainMenu', RENAME_ME.MainMenu);
game.state.add('Game', RENAME_ME.Game);
// Now start the Boot state.
game.state.start('Boot');
})();
</script>
</body>
</html>