mirror of
https://github.com/hexahigh/games.git
synced 2025-12-11 20:15:38 +01:00
tetris
This commit is contained in:
parent
1b4af25b2a
commit
b65484007b
@ -11,5 +11,6 @@
|
||||
<script src='js/tetris.js'></script>
|
||||
<script src='js/controller.js'></script>
|
||||
<script src='js/render.js'></script>
|
||||
<script src='js/controller2.js'></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -6,12 +6,6 @@ document.body.onkeydown = function( e ) {
|
||||
38: 'rotate',
|
||||
32: 'drop'
|
||||
};
|
||||
var keys = {
|
||||
65: 'left2',
|
||||
68: 'right2',
|
||||
83: 'down2',
|
||||
87: 'rotate2',
|
||||
};
|
||||
if ( typeof keys[ e.keyCode ] != 'undefined' ) {
|
||||
keyPress( keys[ e.keyCode ] );
|
||||
render();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user