Преглед на файлове

refactor: adjust logic for feedback message in mode b

lairaalmas преди 9 месеца
родител
ревизия
0816616680
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 7 0
      js/games/circleOne.js

+ 7 - 0
js/games/circleOne.js

@@ -530,6 +530,13 @@ const circleOne = {
         }
 
         finalPosition = balloonX;
+
+        self.blocks.list.forEach((cur) => {
+          self.utils.fillCurrentBlock(balloonX, cur.x, cur);
+          if (self.utils.isOverBlock(balloonX, cur.x, cur.width, cur))
+            self.blocks.cur = cur;
+        });
+
         // Restart if
         // In Game mode 'b' : Top circle position is out of bounds (when on the ground)
         if (gameOperation === 'minus') {