First working, initial version of Tetris.js

This commit is contained in:
Marcel
2017-12-15 19:58:42 +01:00
parent d23586d156
commit 6491056b8f
3 changed files with 318 additions and 0 deletions

20
index.html Normal file
View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tetris</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="score"></div>
<canvas id="tetris" width="240" height="400"></canvas>
<div id="controls">
Controls:
<br>
Arrow Keys -> Move left/right or down
<br>
Q/W -> Rotate the tile
</div>
<script src="tetris.js"></script>
</body>
</html>