From ebfcf8958467537ce7285a6de9dbd4247276fb70 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 24 May 2023 09:45:53 +0200 Subject: [PATCH] commented out not working shit --- res/script.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/res/script.js b/res/script.js index 6a17e28..a8cf991 100644 --- a/res/script.js +++ b/res/script.js @@ -35,8 +35,7 @@ function turn_left() { if (turn < 0 && (Math.abs(turn) - (1/MOVE_PIECES / 2)) >= 0) { - //ctx.drawImage(img, img.width - WIDTH * MOVE_PIECES * (Math.abs(turn) - (1/MOVE_PIECES / 2)), 0, img.width, img.height, 0, 0, WIDTH * MOVE_PIECES * (Math.abs(turn) - (1/MOVE_PIECES / 2)), WIDTH * ASPECT_RATIO); //DRAW RIGHT PART ON THE LEFT SIDE //TODO - + //ctx.drawImage(img, x1, 0, img.width * MOVE_PIECES * (Math.abs(turn) - (1/MOVE_PIECES / 2) + 1), img.height, 0 - x1, 0, img.width * MOVE_PIECES * (Math.abs(turn) - (1/MOVE_PIECES / 2) + 1) * WIDTH/img.width, WIDTH * ASPECT_RATIO); //DRAW A HALF OF img //TODO return; }