This commit is contained in:
Boof 2022-10-21 12:06:48 +02:00 committed by GitHub
parent 1b4af25b2a
commit b65484007b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View File

@ -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>

View File

@ -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();