-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·57 lines (46 loc) · 2.13 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Tetris</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link href='https://fonts.googleapis.com/css?family=Press+Start+2P' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body onkeydown="storeKey(event)">
<div id="screen">
<div id="game_box">
<div id="game_screen">
<h1>Welcome to the best tetris version</h1>
<canvas id="canvas" width="432px" height="528px">
</canvas>
</div>
</div>
<div id="startGame">
<div id="instructions">
<div id="tetris-logo">JS'TETRIS</div>
</br>
</br>
<p>INSTRUCTIONS:</p>
<p>Press <span class='keys'>"UP Arrow"</span> to rotate Tetrominoe</p>
<p>Press <span class='keys'>"LEFT Arrow"</span> to slide left</p>
<p>Press <span class='keys'>"RIGHT Arrow"</span> to slide right</p>
<p>Press <span class='keys'>"DOWN Arrow"</span> to go down</p>
<p>Press <span class='keys'>"SPACE"</span> to send to bottom</p>
</br>
<button class="button">Start Game</button>
</div>
</div>
<div id="score">
<b><span id="score">SCORE: 0</span></b> </br>
<button id="restart" onClick="window.location.reload()">Restart Game</button>
<button id="github" class="github-button"><i class="fa fa-github" style="font-size:24px"></i> Github code</button>
<button id="tutorial-gif" onclick="showTutorial()">Tutorial</button>
<img id="show-tutorial" src="images/tutorial-gif.gif" style="display: none">
<button id="detailedInstructions" onclick="buttonInstructions()">Detailed Instructions</button>
<p id="demo"></p>
</div>
</div>
<script src="main.js"></script>
</body>
</html>