Commit 098021d0 authored by Tt's avatar Tt

音频修改上传

parent ef2ecbfb
...@@ -591,7 +591,6 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent ...@@ -591,7 +591,6 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent
const offsetY = { Red: -90, Blue: -90 }; const offsetY = { Red: -90, Blue: -90 };
this._status[color] = idx; this._status[color] = idx;
await this.playLocalAudio("正确");
piece.zIndex = 1; piece.zIndex = 1;
this.showStars(piece); this.showStars(piece);
...@@ -752,7 +751,7 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent ...@@ -752,7 +751,7 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent
return; return;
} }
this.playLocalAudio("错误弹回"); this.playLocalAudio("落子");
await asyncTweenTo( await asyncTweenTo(
node, node,
0.7, 0.7,
...@@ -943,6 +942,7 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent ...@@ -943,6 +942,7 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent
await this.pieceFindRightBlock(rightBlock, idx); await this.pieceFindRightBlock(rightBlock, idx);
} }
await this.playLocalAudio("正确");
this.updateProgress(idx); this.updateProgress(idx);
pieceRed["cantMove"] = true; pieceRed["cantMove"] = true;
pieceBlue["cantMove"] = true; pieceBlue["cantMove"] = true;
...@@ -1040,7 +1040,7 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent ...@@ -1040,7 +1040,7 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent
"fluency": 60, "fluency": 60,
"rhythm": 90, "rhythm": 90,
"kernel_version": "5.2.4", "kernel_version": "5.2.4",
"overall": 75,//75 "overall": 25,//75
"integrity": 100, "integrity": 100,
"duration": "6.779", "duration": "6.779",
"rear_tone": "fall", "rear_tone": "fall",
...@@ -1147,9 +1147,11 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent ...@@ -1147,9 +1147,11 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent
"applicationId": "154838659000009e" "applicationId": "154838659000009e"
} }
if (this.recrodEnd(testData)) { if (this.recrodEnd(testData)) {
this.playLocalAudio("正确");
await this.showVoiceGood(); await this.showVoiceGood();
return resolve(true) return resolve(true)
} else { } else {
this.playLocalAudio("错误弹回");
await this.showVoiceTry(); await this.showVoiceTry();
return resolve(false); return resolve(false);
} }
...@@ -1158,9 +1160,11 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent ...@@ -1158,9 +1160,11 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent
courseware && courseware.stopTest(async (data) => { courseware && courseware.stopTest(async (data) => {
data = JSON.parse(data); data = JSON.parse(data);
if (this.recrodEnd(data)) { if (this.recrodEnd(data)) {
this.playLocalAudio("正确");
await this.showVoiceGood(); await this.showVoiceGood();
return resolve(true) return resolve(true)
} else { } else {
this.playLocalAudio("错误弹回");
await this.showVoiceTry(); await this.showVoiceTry();
return resolve(false); return resolve(false);
} }
......
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