-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
44 lines (29 loc) · 864 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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8" />
<title>Masonry - Game Dolphin</title>
<script src="phaser.min.js"></script>
<script src="load.js"></script>
<script src="mainmenu.js"></script>
<script src="block.js"></script>
<script src="game.js"></script>
</head>
<body style:"margin:0px auto;">
<div id="gameContainer" style:"margin:0px auto;"></div>
<script type="text/javascript">
/* Made by Nambiar - Game Dolphin
Feel free to use and learn from */
var w = 400, h = 600;
window.onload = function() {
var gamevar = new Phaser.Game(w,h,Phaser.AUTO,'gameContainer');
gamevar.state.add('Load',Game.Load);
gamevar.state.add('MainMenu',Game.MainMenu);
gamevar.state.add('Game',Game.PlayGame);
gamevar.state.add('Lose',Game.LoseScreen);
gamevar.state.add('Win',Game.WinScreen);
gamevar.state.start('Load');
};
</script>
</body>
</html>