Browse Source

s2 - remove intro text after click

lairaalmas 1 năm trước cách đây
mục cha
commit
df56f51361
2 tập tin đã thay đổi với 12 bổ sung11 xóa
  1. 11 10
      src/js/games/squareTwo.js
  2. 1 1
      src/js/globals/globals_debug.js

+ 11 - 10
src/js/games/squareTwo.js

@@ -135,16 +135,6 @@ const squareTwo = {
   },
 
   utils: {
-    startDelayHandler: () => {
-      console.log('startdelayhandler');
-      self.control.animationDelay++;
-
-      if (self.control.animationDelay === 50) {
-        self.utils.checkAnswer();
-        self.control.animationDelay = 0;
-        self.control.startEndAnimation = true;
-      }
-    },
     // RENDERS
     renderBlockSetup: function () {
       // Coordinates for (a) and (b)
@@ -416,6 +406,17 @@ const squareTwo = {
         textStyles.btn
       );
     },
+    startDelayHandler: () => {
+      self.control.animationDelay++;
+
+      if (self.control.animationDelay === 50) {
+        self.ui.message[0].alpha = 0;
+        self.ui.message[1].alpha = 0;
+        self.utils.checkAnswer();
+        self.control.animationDelay = 0;
+        self.control.startEndAnimation = true;
+      }
+    },
 
     // UPDATE
     moveBlocks: function () {

+ 1 - 1
src/js/globals/globals_debug.js

@@ -11,7 +11,7 @@ const debugState = {
     },
   },
   map: { skip: true },
-  end: { skip: true, stop: false },
+  end: { skip: false, stop: false },
   moodle: {
     emulate: false,
     info: {