quyueting 5 年之前
父節點
當前提交
7c79e0df68
共有 1 個文件被更改,包括 5 次插入9 次删除
  1. 5 9
      minigame/WebContent/js/main.js

+ 5 - 9
minigame/WebContent/js/main.js

@@ -569,7 +569,8 @@ function handleComplete(evt, comp) {
                 exportRoot.blackboard.material1.x -=300;
                 exportRoot.blackboard.material1.y -=180;
                 // $(".shake-mode").show();
-                shakeInit();
+                setTimeout(function(){ shakeInit(); }, 3000);
+                
             });
         })
         exportRoot.blackboard.material2.addEventListener("mousedown", function() {
@@ -591,7 +592,7 @@ function handleComplete(evt, comp) {
                 exportRoot.blackboard.material2.x -=120;
                 exportRoot.blackboard.material2.y -=180;
                 // $(".shake-mode").show();
-                shakeInit();
+                setTimeout(function(){ shakeInit(); }, 3000);
             });
         })
         exportRoot.blackboard.material3.addEventListener("mousedown", function() {
@@ -613,7 +614,7 @@ function handleComplete(evt, comp) {
                 exportRoot.blackboard.material3.x +=30;
                 exportRoot.blackboard.material3.y -=180;
                 // $(".shake-mode").show();
-                shakeInit();
+                setTimeout(function(){ shakeInit(); }, 3000);
             });
         })
     }
@@ -692,7 +693,7 @@ function handleComplete(evt, comp) {
                     if(!createTime) {
 						createTime = true;
 						var video = createjs.Sound.play("shake");//播放
-						setTimeout(function(){ video.paused = true; }, 5000);
+						setTimeout(function(){ video.paused = true;createTime = false; }, 5000);
 					}
                     $(".shake-mode2").hide();
                     $(".shake-mode").show();
@@ -747,11 +748,6 @@ function handleComplete(evt, comp) {
 
     }
 
-
-
-
-
-
     //Registers the "tick" event listener.
     function fnStartAnimation() {
         stage.addChild(exportRoot, lineShape);