From 9e38715cc33057b0b74ee9176c4a4e00bd048f7c Mon Sep 17 00:00:00 2001 From: Boof <97455552+hexahigh@users.noreply.github.com> Date: Sat, 22 Oct 2022 12:41:21 +0200 Subject: [PATCH] fixed tetris? --- Tetris/index.html | 2 +- Tetris/js/controller.js | 2 +- Tetris/js/tetris.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tetris/index.html b/Tetris/index.html index 6a1ce43..ad0d361 100644 --- a/Tetris/index.html +++ b/Tetris/index.html @@ -12,4 +12,4 @@ - + \ No newline at end of file diff --git a/Tetris/js/controller.js b/Tetris/js/controller.js index 6e3fee5..c21b688 100644 --- a/Tetris/js/controller.js +++ b/Tetris/js/controller.js @@ -10,4 +10,4 @@ document.body.onkeydown = function( e ) { keyPress( keys[ e.keyCode ] ); render(); } -}; +}; \ No newline at end of file diff --git a/Tetris/js/tetris.js b/Tetris/js/tetris.js index 8cf0c14..94f5fe4 100644 --- a/Tetris/js/tetris.js +++ b/Tetris/js/tetris.js @@ -44,7 +44,7 @@ function newShape() { } } } - + // new shape starts to move freezed = false; // position where the shape will evolve