-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplane.html
47 lines (38 loc) · 961 Bytes
/
plane.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<link rel="stylesheet" href="plane.css">
</head>
<body>
<div >
<!-- 1.开始界面 -->
<div id = 'startDiv'>
<button onclick="begin()" >开始游戏</button>
</div>
<!-- 2.游戏主界面 -->
<div id = 'mainDiv'>
<!-- 显示分数的盒子 -->
<div id = 'scoreDiv'>
<label>分数:</label>
<label id = 'leftScore'>0</label>
</div>
<!-- 结束界面的盒子 -->
<div id = 'endDiv'>
<p id = 'text'>飞机大战分数</p>
<p id= 'endScore'>0</p>
<button onclick="reAction()">重新开始游戏</button>
</div>
<!-- 暂停界面的盒子 -->
<div id = 'suspendDiv'>
<button>继续</button>
<button>重新开始</button>
<button>回到主页</button>
</div>
</div>
</div>
<script type="text/javascript" src = 'plane.js'></script>
</body>
</html>