First working, initial version of Tetris.js
This commit is contained in:
20
index.html
Normal file
20
index.html
Normal 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>
|
Reference in New Issue
Block a user