Commit bc1218fb by kaisa

feat:火箭升空音效

parent 577f2600
Showing with 8 additions and 3 deletions
...@@ -538,12 +538,17 @@ ...@@ -538,12 +538,17 @@
} }
}, 70); }, 70);
} }
function boomShow() { function boomShow(data) {
rocketStop(); rocketStop();
var boomNum = 252; var boomNum = 252;
$(".fly").fadeOut(350); $(".fly").fadeOut(350);
betBoom(); if (
data.result.userData.player == 1 &&
data.result.userData.jumper != 1
) {
betLose(); betLose();
}
$(".boomShow").show(); $(".boomShow").show();
boomTime = setInterval(function () { boomTime = setInterval(function () {
$(".boomShow").attr("src", "images/boom1/1_00" + boomNum + ".png"); $(".boomShow").attr("src", "images/boom1/1_00" + boomNum + ".png");
...@@ -803,7 +808,7 @@ ...@@ -803,7 +808,7 @@
$(".out-fly-box >div") $(".out-fly-box >div")
.unbind("click") .unbind("click")
.css("filter", "grayscale(100%)"); .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