Commit bc1218fb by kaisa

feat:火箭升空音效

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