-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
73 lines (72 loc) · 2.66 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="css/style.css"/>
<title>飞机作战</title>
</head>
<body data-status="index"><!--HTML5 data-* 自定义属性-->
<canvas id="game"></canvas>
<!-- 游戏主页面 -->
<div class="ui-index">
<h1>飞机大作战</h1>
<div class="bt-group">
<button class="js-start btn">开始游戏</button>
<button class="js-setting btn">游戏设置</button>
<button class="js-rule btn">游戏说明</button>
</div>
</div>
<!-- 游戏设置页面 -->
<div class="ui-setting ui-panel">
<h2>游戏设置</h2>
<ul class="setting-group">
<li class="setting">
<span class="setting-title">音乐设置</span>
<select id="musicSet">
<option value="0">开启</option>
<option value="1">关闭</option>
</select>
</li>
<li class="setting">
<span class="setting-title">背景设置</span>
<select id="bgSet">
<option value="1">夜袭墓地</option>
<option value="2">迷失古迹</option>
<option value="3">原始森林</option>
<option value="4">爆裂火山</option>
</select>
</li>
<li class="setting">
<span class="setting-title">战机设置</span>
<select id="planeSet">
<option value="bluePlaneIcon">蓝色战机</option>
<option value="pinkPlaneIcon">粉色战机</option>
</select>
</li>
</ul>
<button class="js-confirm-setting">确认设置</button>
</div>
<!-- 游戏说明页面 -->
<div class="ui-rule ui-panel">
<h2>游戏说明</h2>
<p>通过手指移动飞机,躲避敌人,通过子弹射击敌人得分;游戏无限时;消灭小型飞机得100分,消灭大型飞机得1000分</p>
<button class="js-confirm-rule">我知道了</button>
</div>
<!-- 游戏结束页面 -->
<div class="ui-end ui-panel">
<h2>游戏结束</h2>
<p></p>
<button class="js-playAgain">再玩一次</button>
<button class="js-exitGame">退出游戏</button>
</div>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.js"></script>
<script type="text/javascript" src="js/config.js"></script>
<script type="text/javascript" src="js/resource.js"></script>
<script type="text/javascript" src="js/element.js"></script>
<script type="text/javascript" src="js/enemy.js"></script>
<script type="text/javascript" src="js/bullet.js"></script>
<script type="text/javascript" src="js/plane.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</body>
</html>