-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
72 lines (72 loc) · 3.29 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content= "width=device-width, initial-scale=1.0">
<title>TETRIS SWITCH</title>
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Play:400,700&display=swap" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="assets/js/Block.js"></script>
<script src="assets/js/Tetrimino.js"></script>
<script src="assets/js/Board.js"></script>
<script src="assets/js/Main.js"></script>
</head>
<body>
<div id="container">
<div class="panel">
<div class="predictor box"></div>
<div class="box">
<div class="scoreboard">0</div>
<div class="levelboard">LEVEL 0</div>
</div>
<div class="box">
<a href="#" class="start">NEW GAME</a>
<a href="#" class="pause">PAUSE</a>
</div>
<div class="buttons box">
<a href="#" class="help tab-button" data-target="help-content">HELP</a>
<div id="help-content" class="tab-content" style="display: none">
<p>You will play in two boards and you have two different modes:<br>
- <strong>Auto-switch</strong>: Everytime you clear a row the boards switch.<br>
- <strong>Manual</strong>: You can switch between boards whenever you want by pressing 'c'.</p>
<p>The more lines you make at once, the more points you earn:<br>
- <strong>1 line</strong>: 100 points<br>
- <strong>2 lines</strong>: 800 points<br>
- <strong>3 lines</strong>: 2700 points<br>
- <strong>4 lines</strong>: 6400 points<br>
Win small extra points by lower a tetrimino by pressing 'space'.</p>
<p>In manual mode you can get score multipliers by clearing rows alternatively between boards.</p>
</div>
<a href="#" class="controls tab-button" data-target="controls-content">CONTROLS</a>
<div id="controls-content" class="tab-content" style="display: none">
<p><strong>Left / Right arrows</strong><br>Move blocks left /right</p>
<p><strong>Down arrow</strong><br>Move blocks fast down</p>
<p><strong>Space</strong><br>Translate blocks to the bottom</p>
<p><strong>Up Arrow</strong><br>Rotate blocks</p>
<p><strong>C key</strong><br>Switch between boards (only manual mode)</p>
<p><strong>Escape</strong><br>Pause the game</p>
<p><strong>S key</strong><br>Start a new game</p>
</div>
<a href="#" class="settings tab-button" data-target="settings-content">SETTINGS</a>
<div id="settings-content" class="tab-content" style="display: none">
<div class="auto-switch">
<a href="#" class="selected"></a><label>Auto-switch mode</label>
</div>
<p>Create your custom tetriminos<br>(min 2 blocks)</p>
</div>
</div>
</div>
<div class="modal"></div>
<div class="alert" style="display: none">
<div class="content">
<a href="#" class="close"><i class="fa fa-times"></i></a>
<p class="text"></p>
<button type="button" class="ok">OK</button>
<button type="button" class="cancel">CANCEL</button>
</div>
</div>
</div>
</body>
</html>