-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (59 loc) · 2.22 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>彩球游戏</title>
<link rel="icon" type="image/svg" sizes="64x64" href="ball.svg">
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>彩球游戏,当前玩家<span id="name"></span>,当前生命值<span id="life"></span>,当前得分<span id="score"></span></h1>
<introduce onClick="showIntroduce()">
<img src="introduction.png">
</introduce>
<setting>
<div>
<label for="maxLen">
球的个数:<input type="range" name="maxLen" value="6" min="1" max="30" />
</label>
<label for="minSize">
最小半径:<input type="range" name="minSize" value="25" min="10" max="30" />
</label>
<label for="maxSize">
最大半径:<input type="range" name="maxSize" value="35" min="30" max="50" />
</label>
<label for="minVel">
最小速度:<input type="range" name="minVel" value="1" min="1" max="3" />
</label>
<label for="maxVel">
最大速度:<input type="range" name="maxVel" value="3" min="3" max="10" />
</label>
<hr />
<label for="life">
玩家初始生命:<input type="range" name="life" value="5" min="1" max="9999" />
</label>
<label for="score">
玩家初始得分:<input type="range" name="score" value="0" min="0" max="9999" />
</label>
<label>
<button type="button" onClick="saveSetting()">保 存</button>
<button type="button" onClick="showSetting()">取 消</button>
</label>
</div>
</setting>
<control>
<button type="button" onClick="showIntroduce()">玩 法</button>
<button type="button" onClick="showSetting()">设 置</button>
<button type="button" onClick="againGame()">重 来</button>
<button type="button" onClick="startGame()">开 始</button>
<button type="button" onClick="pauseGame()">暂 停</button>
</control>
<canvas></canvas>
<!-- ES5 -->
<!-- <script src="main.js"></script> -->
<!-- ES6 -->
<script src="user.js"></script>
<script src="ball.js"></script>
<script src="main_es6.js"></script>
</body>
</html>