-
Notifications
You must be signed in to change notification settings - Fork 0
/
phaser.html
117 lines (102 loc) · 3.5 KB
/
phaser.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8" />
<title>Phaser FMD</title>
<script src="lib/lodash.min.js"></script>
<script src="lib/phaser.min.js"></script>
<script src="js/phaser/phaser-utils.js"></script>
<script src="js/phaser/boot.js"></script>
<script src="js/phaser/preloader.js"></script>
<script src="js/phaser/fmd-menu.js"></script>
<script src="js/phaser/fmd-dungeon.js"></script>
<script src="js/utils.js"></script>
<script src="js/game.js"></script>
<script src="js/dungeon.js"></script>
<script src="js/skills.js"></script>
<script src="js/items.js"></script>
<script src="js/hero.js"></script>
<script src="js/monsters.js"></script>
<script src="js/bosses.js"></script>
<style>
body {
background-color: #000;
}
@font-face {
font-family: 'Chicago';
src: url('fonts/chicagoflf-webfont.eot');
src: url('fonts/chicagoflf-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/chicagoflf-webfont.woff') format('woff'),
url('fonts/chicagoflf-webfont.ttf') format('truetype'),
url('fonts/chicagoflf-webfont.svg#chicagoflfregular') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'FmdIcons';
src:url('fonts/icomoon.eot?wbm48j');
src:url('fonts/icomoon.eot?#iefixwbm48j') format('embedded-opentype'),
url('fonts/icomoon.woff?wbm48j') format('woff'),
url('fonts/icomoon.ttf?wbm48j') format('truetype'),
url('fonts/icomoon.svg?wbm48j#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}
.preloadFont1 {
position: fixed;
top: 0px; left: 0px; color: rgba(0,0,0,0);
font-size: 32px;
font-family: 'Chicago';
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.preloadFont2 {
position: fixed;
top: 0px; left: 0px; color: rgba(0,0,0,0);
font-size: 32px;
font-family: 'FmdIcons';
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
</style>
</head>
<body>
<div class="preloadFont1">Dungeon</div>
<div class="preloadFont2"></div>
<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)
var game = new Phaser.Game(1024, 768, 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.
game.state.add('Boot', FmdGame.Boot);
// game.state.add('Preloader', FmdGame.Preloader);
game.state.add('MainMenu', FmdGame.MainMenu);
// game.state.add('Gallery', FmdGame.Game);
// game.state.add('ChooseCharacter', FmdGame.Game);
// game.state.add('Colosseum', FmdGame.Game);
// game.state.add('Customize', FmdGame.Game);
// game.state.add('About', FmdGame.Game);
game.state.add('Dungeon', FmdGame.Dungeon);
// Now start the Boot state.
game.state.start('Boot');
};
</script>
</body>
</html>