forked from lianera/archives
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (42 loc) · 1.25 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
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>MagicPlain</title>
<script type="text/javascript" src="phaser.min.js"></script>
<script type="text/javascript" src="game.js"></script>
</head>
<body>
<div id="container">
<div id="gameDiv"></div>
<div id="introduction">
<p>
←↑→↓键进行移动,空格键放置炸弹
</p>
<p>
<a href="http://lianera.com/post/2017/magicplainv2/" target="_blank">详细介绍</a>
<a href="https://github.com/lianera/MagicPlainV2" target="_blank">源代码</a>
</p>
</div>
</div>
<script type="text/javascript">
var game = new Phaser.Game(960, 640, Phaser.AUTO, 'gameDiv');
game.state.add('load', loadState);
game.state.add('menu', menuState);
game.state.add('level', levelState);
game.state.add('play', playState);
game.state.start('load');
</script>
<style type="text/css">
body{
}
#gameDiv{
width: 960px;
}
#container{
width: 960px;
margin: 0 auto;
}
</style>
</body>
</html>