-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (45 loc) · 1.49 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>CommessHunter</title>
<script type="text/javascript" src="js/phaser.min.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/gameover.js"></script>
<script type="text/javascript" src="js/intro.js"></script>
<script type="text/javascript" src="js/haivinto.js"></script>
<script src="howler/howler.js"></script>
<script>
var mainMusic = new Howl({
src: ['music/pixelland.mp3']
});
</script>
<style type="text/css">
body {
margin: 0;
overflow: hidden;
}
</style>
<script type="text/javascript">
(function() {
//Create a new game that fills the screen
game = new Phaser.Game(window.innerWidth * window.devicePixelRatio, window.innerHeight * window.devicePixelRatio, Phaser.AUTO);
//Add all states
game.state.add("Boot", Boot);
game.state.add("Preload", Preload);
game.state.add("GameTitle", GameTitle);
game.state.add("Main", Main);
game.state.add("GameOver", GameOver);
game.state.add("Intro", Intro);
game.state.add("HaiVintoFratello", HaiVintoFratello);
//Start the first state
game.state.start("Boot");
})();
</script>
</head>
<body>
</body>
</html>