-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
57 lines (45 loc) · 1.69 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
57
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Juego de Karla</title>
<style type="text/css">
body {
margin: 0;
background-color: black;
}
</style>
</head>
<body>
<script src="phaser/build/phaser.min.js"></script>
<script src="src/global_variables.js"></script>
<script src="src/Boot.js"></script>
<script src="src/Preloader.js"></script>
<script src="src/MainMenu.js"></script>
<script src="src/Level_1.js"></script>
<script src="src/Level_2.js"></script>
<script src="src/Level_3.js"></script>
<script src="src/Level_4.js"></script>
<script src="src/Memories.js"></script>
<script type="text/javascript">
(function () {
// Create your Phaser game and inject it into the game 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)
// We're using a game size of 1024 x 768 here, but you can use whatever you feel makes sense for your game of course.
var game = new Phaser.Game(800, 600, Phaser.AUTO, 'game');
// 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', BasicGame.Boot);
game.state.add('Preloader', BasicGame.Preloader);
game.state.add('MainMenu', BasicGame.MainMenu);
game.state.add('Level_1', BasicGame.Level_1);
game.state.add('Level_2', BasicGame.Level_2);
game.state.add('Level_3', BasicGame.Level_3);
game.state.add('Level_4', BasicGame.Level_4);
game.state.add('Memories', BasicGame.Memories);
// Now start the Boot state.
game.state.start('Boot');
})();
</script>
</body>
</html>