/
tetris.php
47 lines (36 loc) · 940 Bytes
/
tetris.php
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
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no">
<title>Angular.js and HTML5 version of Tetris</title>
<script src="/js/hammer.js"></script>
<script src="/js/angular.js"></script>
<script src="/js/tetris.js"></script>
<link rel="stylesheet" type="text/css" href="/css/tetris.css" media="screen, projection">
</head>
<body ng-controller="tetrisController" ng-keydown="onKeyDown( $event )">
<tetris></tetris>
<br />
<div id="controls" class="mobile_only">
Controls:
<br />
D: Rotate current blockcounter clockwise
<br />
R: Rotate current clockwise
<br />
Up Arrow: Drop current block
<br />
Down Arrow: Lower current block on row
<br />
Left Arrow: Move current block left
<br />
Right Arrow: Move current block right
<br />
S: Swap current block
<br />
Space bar: Toggle Pause
<br />
Q: Restart game
</div>
</body>
</html>