-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
88 lines (88 loc) · 2.9 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>2048</title>
<link rel="stylesheet" href="main.css" type="text/css" />
</head>
<body>
<div class="container">
<div class="header">
<div class="title">
<h1 class="game-title">2048</h1>
<p class="game-description">使用方向键或WASD移动方块,合成2048!</p>
</div>
<div class="above-board">
<div class="score-board">
<div class="score-title">得分</div>
<div class="score-text">0</div>
</div>
<button class="common-button" type="button" value="restart">
重新开始
</button>
</div>
</div>
<div class="game-board">
<div class="grid-container">
<!-- <div class="grid-row"> -->
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<!-- </div>
<div class="grid-row"> -->
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<!-- </div> -->
<!-- <div class="grid-row"> -->
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<!-- </div> -->
<!-- <div class="grid-row"> -->
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<div class="grid-cell"></div>
<!-- </div> -->
</div>
<div class="tips-container">
<div class="tips-common tips-win">
<p class="tips-text">你赢了</p>
<div class="button-list">
<button
class="common-button button-continue"
type="button"
value="continue"
>
继续游戏
</button>
<button class="common-button" type="button" value="restart">
重新开始
</button>
</div>
</div>
<div class="tips-common tips-lose">
<p class="tips-text">你输了</p>
<button class="common-button" type="button" value="restart">
重新开始
</button>
</div>
</div>
</div>
<hr />
<div class="footer"></div>
</div>
<!-- <script src="index.js"></script> -->
<script src="js/Tile.js"></script>
<script src="js/GameManager.js"></script>
<script src="js/InputManager.js"></script>
<script src="js/Grid.js"></script>
<script src="js/Renderer.js"></script>
<script src="js/app.js"></script>
</body>
</html>