Commit 598625fd authored by Lwd's avatar Lwd

aaaa

parent d399d96e
...@@ -144,7 +144,7 @@ var game = cc.Class({ ...@@ -144,7 +144,7 @@ var game = cc.Class({
//五秒没操作 //五秒没操作
hintPlay: function () { hintPlay: function () {
this.playLionDragon("openmouth") // this.playLionDragon("openmouth")
this.playCatDragon("begin") this.playCatDragon("begin")
g.speaker.inst.playEffect(g.enum.E_Audio.CatHint); g.speaker.inst.playEffect(g.enum.E_Audio.CatHint);
......
...@@ -131,13 +131,14 @@ cc.Class({ ...@@ -131,13 +131,14 @@ cc.Class({
g.data_mgr.nowNum -= 1; g.data_mgr.nowNum -= 1;
//狮子猫动画 //狮子猫动画
g.game.inst.playCatDragon("right");
g.game.inst.playLionDragon("chew"); g.game.inst.playLionDragon("chew");
//先播放错误声音 //先播放错误声音
g.speaker.inst.playEffect(g.enum.E_Audio.Right); g.speaker.inst.playEffect(g.enum.E_Audio.Right);
setTimeout(() => { setTimeout(() => {
g.game.inst.playCatDragon("right");
let num = g.utils.randFromTo_Int(g.enum.E_Audio.CatRight1, g.enum.E_Audio.CatRight2); let num = g.utils.randFromTo_Int(g.enum.E_Audio.CatRight1, g.enum.E_Audio.CatRight2);
//先播放错误声音 //先播放错误声音
...@@ -192,7 +193,11 @@ cc.Class({ ...@@ -192,7 +193,11 @@ cc.Class({
let num = g.utils.randFromTo_Int(g.enum.E_Audio.CatError1, g.enum.E_Audio.CatError2); let num = g.utils.randFromTo_Int(g.enum.E_Audio.CatError1, g.enum.E_Audio.CatError2);
//先播放错误声音 //先播放错误声音
g.speaker.inst.playEffect(num); g.speaker.inst.playEffect(num, () => {
g.game.inst.playCatDragon("normal");
});
g.game.inst.playCatDragon("wrong");
g.game.inst.playLionDragon("normal");
}, 500) }, 500)
}, },
......
...@@ -100,8 +100,8 @@ var speaker = cc.Class({ ...@@ -100,8 +100,8 @@ var speaker = cc.Class({
//播放音效 //播放音效
playEffect: function (num) { playEffect: function (num, cb) {
g.snd_mgr.playEffect(this.eff_audio[num]); g.snd_mgr.playEffect(this.eff_audio[num], cb);
}, },
......
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 to comment