From b65484007b2b1eac219af214941c42a12ee93948 Mon Sep 17 00:00:00 2001 From: Boof <97455552+hexahigh@users.noreply.github.com> Date: Fri, 21 Oct 2022 12:06:48 +0200 Subject: [PATCH] tetris --- Tetris/index.html | 1 + Tetris/js/controller.js | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Tetris/index.html b/Tetris/index.html index 6a1ce43..2dc9f6f 100644 --- a/Tetris/index.html +++ b/Tetris/index.html @@ -11,5 +11,6 @@ + diff --git a/Tetris/js/controller.js b/Tetris/js/controller.js index 31a6d19..6e3fee5 100644 --- a/Tetris/js/controller.js +++ b/Tetris/js/controller.js @@ -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();