-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
67 lines (64 loc) · 2.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>html5在线贪吃蛇小游戏</title>
<link rel="shortcut icon" href="./img/favicon.ico" />
<meta name="description" content="html5贪吃蛇小游戏,200行左右主逻辑代码,源码地址(https://github.com/gaga-change/game-snake)。" />
<meta name="keywords" content="html5小游戏,h5小游戏,html5贪吃蛇小游戏,html贪吃蛇小游戏,在线贪吃蛇小游戏,html在线游戏" />
<link rel="stylesheet" href="css/stylesheet.css?v=3">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui">
</head>
<body>
<div id="app">
<div class="content-canvas">
<canvas></canvas>
</div>
<div class="control">
<div class="row">
<div class="btn">
<button id="UpBtn">上</button>
</div>
<div class="scope">
分数:<span id="scope">0</span>
</div>
<div class="stop-game">
<button id="EndBtn" type="button">结束</button>
</div>
</div>
<div class="row clearfix">
<div class="btn half-width left">
<button id="LeftBtn">左</button>
</div>
<div class="btn half-width right">
<button id="RightBtn">右</button>
</div>
</div>
<div class="row">
<div class="btn">
<button id="DownBtn">下</button>
</div>
</div>
</div>
<div class="menu" id="MenuArea" style="display: block">
<h1>贪吃蛇</h1>
<div class="history">
<h5>历史记录</h5>
<div id="HistoryArea"></div>
</div>
<div class="btn">
<button id="StartBtn" type="button">开始</button>
</div>
</div>
</div>
<!-- 引入createjs - easeljs包 -->
<script src="https://cdn.bootcss.com/EaselJS/1.0.2/easeljs.min.js"></script>
<!-- 载入jquery 方便dom操作 -->
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<!-- sweetalert 美化alert用的 -->
<script src="https://cdn.bootcss.com/sweetalert/2.1.2/sweetalert.min.js"></script>
<script src="js/main.js?v=4"></script>
</body>
</html>