Commit 7618562a by kaisa

feat:火箭上升音效

parent 7256500c
Showing with 4 additions and 2 deletions
...@@ -482,7 +482,7 @@ ...@@ -482,7 +482,7 @@
} }
}, 70) }, 70)
} }
function boomShow() { function boomShow(data) {
rocketStop(); rocketStop();
var boomNum = 252 var boomNum = 252
$(".fly").fadeOut(350) $(".fly").fadeOut(350)
...@@ -496,12 +496,14 @@ ...@@ -496,12 +496,14 @@
$(".boomShow").hide() $(".boomShow").hide()
} }
}, 70) }, 70)
layer.msg('betLose') layer.msg('betLose')
// 用户参与了但是没跳船成功 // 用户参与了但是没跳船成功
if ( if (
data.result.userData.player == 1 && data.result.userData.player == 1 &&
data.result.userData.jumper != 1 data.result.userData.jumper != 1
) { ) {
layer.msg('betLose')
betLose(); betLose();
} }
} }
...@@ -700,7 +702,7 @@ ...@@ -700,7 +702,7 @@
betBoom(); betBoom();
//这时候爆炸了 //这时候爆炸了
$(".out-fly-box >div").unbind("click").css("filter", "grayscale(100%)") $(".out-fly-box >div").unbind("click").css("filter", "grayscale(100%)")
boomShow() boomShow(data)
} else { } else {
if (data.result.shipData.explosion == 1) return; if (data.result.shipData.explosion == 1) return;
clearInterval(miTimer) clearInterval(miTimer)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment