-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
45 lines (41 loc) · 1.31 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>
<meta charset="utf-8" />
<title>Block to Block</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="A Sliding Block Puzzle Game">
<meta name="viewport" content="width=1000, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="shortcut icon" href="favicon.ico">
<link rel="apple-touch-icon" href="img/player-1.png">
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-48075254-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-48075254-1');
</script>
<style>
canvas {
position: absolute;
margin: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
</style>
<script src="//cdnjs.cloudflare.com/ajax/libs/phaser/1.1.5/phaser.min.js"></script>
<script>window.Phaser || document.write('<script src="js/phaser.min.js"><\/script>')</script>
<script>
var BlockToBlock = {};
</script>
<script src="js/GameState.js"></script>
<script src="js/Player.js"></script>
<script src="js/Block.js"></script>
<script src="js/levels.js"></script>
<script>
(function () {
var game = new Phaser.Game(1000, 1000, Phaser.AUTO);
game.state.add(BlockToBlock.GameState.STATE, BlockToBlock.GameState, true);
})();
</script>