forked from lpaladin/tsTetris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTetris.html
57 lines (56 loc) · 2.49 KB
/
Tetris.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
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Tetris</title>
<link rel="stylesheet" type="text/css" href="app.css" />
<script src="node_modules/webfontloader/webfontloader.js"></script>
<script src="node_modules/gsap/TimelineMax.js"></script>
<script src="node_modules/gsap/TweenMax.js"></script>
<!--<script src="player_api.js"></script>-->
<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="node_modules/gsap/jquery.gsap.js"></script>
<script src="node_modules/pixi.js/dist/pixi.js"></script>
<script src="node_modules/pixi-particles/dist/pixi-particles.js"></script>
<script src="Tetris/app.js?170513"></script>
</head>
<body class="not-player-turn" tabindex="1">
<div class="left">
<a class="btn" onclick="game && game.rotate()">
转
<figure class="tip">旋转当前方块</figure>
</a>
<a class="btn" onclick="game && game.tryNext()">
试
<figure class="tip">尝试下一个可行的初始状态</figure>
</a>
</div>
<div class="right">
<a id="btnSound" class="btn disabled" onclick="snd && (snd.sound = !snd.sound)">音</a>
<a class="btn help-trigger">?</a>
<section class="content">
<table>
<thead>
<tr><td>动作</td><td>键盘</td><td>鼠标</td></tr>
</thead>
<tbody>
<tr><th>给对手指定方块</th><td>数字1~7键</td><td>点击对手场地上方选栏</td></tr>
<tr><th>移动块</th><td>↑↓←→键</td><td>左键拖动块<small>(可以穿墙,但仅限于能够直接落到的位置)</small></td></tr>
<tr><th>坠落块</th><td>/或'键</td><td>左键点击块</td></tr>
<tr><th>落地后提交操作</th><td>回车键</td><td>任意位置右键<small>(手机版可以长按屏幕)</small></td></tr>
<tr><th>逆时针旋转</th><td>空格键</td><td>滚动滚轮或点击“转”按钮</td></tr>
<tr><th>寻找当前方块下一个可行的初始状态</th><td>.键</td><td>点击“试”按钮</td></tr>
<tr><td colspan="3" class="info">本游戏支持拖动进度条</td></tr>
</tbody>
</table>
</section>
</div>
<audio id="sndBGM" loop src="Tetris/bgm.ogg"></audio>
<audio id="sndImpact" src="Tetris/impact.wav"></audio>
<audio id="sndDestroy" src="Tetris/destroy.wav"></audio>
<audio id="sndWarn" src="Tetris/warn.wav"></audio>
<audio id="sndRotate" src="Tetris/rotate.wav"></audio>
<audio id="sndConfirm" src="Tetris/confirm.wav"></audio>
<audio id="sndVictory" src="Tetris/victory.wav"></audio>
</body>
</html>