|
|
@ -32,8 +32,8 @@ Sound.prototype.init = function () { |
|
|
|
}; |
|
|
|
|
|
|
|
Sound.prototype.playBgm = function () { |
|
|
|
this.music.bgm && this.music.bgm.play({ loop: -1, volume: 0.5 }); // 播放背景音乐
|
|
|
|
this.music.audio2 && this.music.audio2.play({ loop: -1, volume: 0.2, playbackRate: 1.2 }); // 播放射击声
|
|
|
|
this.music.bgm && this.music.bgm.play({ loop: -1 }); // 播放背景音乐
|
|
|
|
this.music.audio2 && this.music.audio2.play({ loop: -1, volume: 0.1 }); // 播放射击声
|
|
|
|
}; |
|
|
|
|
|
|
|
Sound.prototype.playBomb = function (direction) { |
|
|
|