-
Notifications
You must be signed in to change notification settings - Fork 30
/
index.html
52 lines (49 loc) · 1.96 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
<html>
<head>
<meta charset="utf-8">
<title>俄罗斯方块</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div>请用方向键和空格键进行操作,上->旋转 下->坠落 左->左移 右->右移动</div>
<div class="square" id="local">
<div class="title">我的游戏区域</div>
<div class="game" id="local_game"></div>
<div class="next" id="local_next"></div>
<div class="info">
<div>已用时:<span id="local_time">0</span>s</div>
<div>已得分:<span id="local_score">0</span>分</div>
<div id="local_gameover"></div>
</div>
</div>
<div class="square" id="remote">
<div class="title">对方的游戏区域</div>
<div class="game" id="remote_game"></div>
<div class="next" id="remote_next"></div>
<div class="info">
<div>已用时:<span id="remote_time">0</span>s</div>
<div>已得分:<span id="remote_score">0</span>分</div>
<div id="remote_gameover"></div>
<button id="down">down</button><br/>
<button id="right">right</button><br/>
<button id="left">left</button><br/>
<button id="rotate">rotate</button><br/>
<button id="fall">fall</button><br/>
<button id="fixed">fixed</button><br/>
<button id="preformNext">preformNext</button><br/>
<button id="checkClear">checkClear</button><br/>
<button id="checkGameOver">checkGameOver</button><br/>
<button id="setTime">setTime</button><br/>
<button id="addSocre">addSocre</button><br/>
<button id="gameOver">gameOver</button><br/>
<button id="addTailLines">addTailLines</button>
</div>
</div>
<script type="text/javascript" src="js/game.js"></script>
<script type="text/javascript" src="js/local.js"></script>
<script type="text/javascript" src="js/square.js"></script>
<script type="text/javascript" src="js/squareFactory.js"></script>
<script type="text/javascript" src="js/remote.js"></script>
<script type="text/javascript" src="js/script.js"></script>
</body>
</html>