-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
29 lines (29 loc) · 1.06 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
<!DOCTYPE html>
<html>
<head>
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link rel="stylesheet" type="text/css" href="css/index.css">
<title>Tetris</title>
</head>
<body onclick="start()">
<div class="app">
<center>
<canvas id="background" width="1000" height="2000"></canvas>
<canvas id="playfield" width="1000" height="2000"></canvas>
<div class="UI">
<button onclick="move(-1, playfield, falling, true)">←</button>
<button onclick="rotate(playfield, falling, true)">↻</button>
<button onclick="move(1, playfield, falling, true)">→</button>
<br>
<p>Touch anywhere to start.</p>
</div>
</center>
</div>
<div class="hidden">
<img id="square" src="img/square.png" width="100" height="100">
</div>
<script type="text/javascript" src="js/Noise.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>