From 2dae019e1a29614491c645e2271b29f9e886cbbe Mon Sep 17 00:00:00 2001 From: Ben Date: Sun, 14 Oct 2018 18:46:38 +0100 Subject: [PATCH] not much, continued work on the snetris game --- JavaScript/Snetris/index.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/JavaScript/Snetris/index.js b/JavaScript/Snetris/index.js index 39032bb..01903c4 100644 --- a/JavaScript/Snetris/index.js +++ b/JavaScript/Snetris/index.js @@ -123,7 +123,6 @@ let ActiveApple = new Apple(); /*<==== GAME LOGIC AND EVENT HANDLING ====>*/ let stop = false; - function gameLoop() { if (!stop) { clear(); @@ -145,10 +144,9 @@ function gameLoop() { } function animationLoop() { - if (ActiveSnake.frozen) { - console.log('FALLING'); - - drawAnimation(); + if (!stop) { + // loop through Boxes and if a box is in the falling + // state, then apply animation } }