Commit f1790ef2 authored by Tt's avatar Tt

refactor(SSAPP2501): 优化语音数据保存逻辑并调整动画参数

parent 8b4b0a51
......@@ -15203,8 +15203,8 @@
0,
0,
1,
1,
1,
1.5,
1.5,
1
]
},
......@@ -15314,7 +15314,7 @@
"ctor": "Float64Array",
"array": [
0,
0,
-150,
0,
0,
0,
......@@ -15465,8 +15465,8 @@
0,
0,
1,
0.5,
0.5,
1,
1,
1
]
},
......@@ -15527,8 +15527,8 @@
0,
-0.7071067811865475,
0.7071067811865476,
0.5,
0.5,
0.8,
0.8,
1
]
},
......@@ -15621,8 +15621,8 @@
0,
0,
1,
0.5,
0.5,
1,
1,
1
]
},
......@@ -15683,8 +15683,8 @@
0,
-0.7071067811865475,
0.7071067811865476,
0.5,
0.5,
0.8,
0.8,
1
]
},
......@@ -15777,8 +15777,8 @@
0,
0,
1,
0.5,
0.5,
1,
1,
1
]
},
......@@ -15839,8 +15839,8 @@
0,
-0.7071067811865475,
0.7071067811865476,
0.5,
0.5,
0.8,
0.8,
1
]
},
......@@ -15933,8 +15933,8 @@
0,
0,
1,
0.5,
0.5,
1,
1,
1
]
},
......@@ -15995,8 +15995,8 @@
0,
-0.7071067811865475,
0.7071067811865476,
0.5,
0.5,
0.8,
0.8,
1
]
},
......@@ -16089,8 +16089,8 @@
0,
0,
1,
0.5,
0.5,
1,
1,
1
]
},
......@@ -16151,8 +16151,8 @@
0,
-0.7071067811865475,
0.7071067811865476,
0.5,
0.5,
0.8,
0.8,
1
]
},
......@@ -16245,8 +16245,8 @@
0,
0,
1,
0.5,
0.5,
1,
1,
1
]
},
......@@ -16307,8 +16307,8 @@
0,
-0.7071067811865475,
0.7071067811865476,
0.5,
0.5,
0.8,
0.8,
1
]
},
......@@ -16401,8 +16401,8 @@
0,
0,
1,
0.5,
0.5,
1,
1,
1
]
},
......@@ -16463,8 +16463,8 @@
0,
-0.7071067811865475,
0.7071067811865476,
0.5,
0.5,
0.8,
0.8,
1
]
},
......@@ -16557,8 +16557,8 @@
0,
0,
1,
0.5,
0.5,
1,
1,
1
]
},
......@@ -16619,8 +16619,8 @@
0,
-0.7071067811865475,
0.7071067811865476,
0.5,
0.5,
0.8,
0.8,
1
]
},
......
......@@ -1152,6 +1152,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let isSuccess = this.checkWords(data);
this.log("data: " + JSON.stringify(data));
Game.getIns().player.addVoice(data);
// 根据评分和单词正确性显示不同的提示
if (isSuccess) {
this.recordTouching = false;
......@@ -1161,20 +1162,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 80分及以上,显示优秀提示(3星)
this.updateTips(TIPS_STATE.EXCELLENT);
pg.hw.playLocalAudio('score_success');
// 保存录音数据
Game.getIns().player.addVoice(data);
} else if (score >= 60) {
// 60-80分,显示不错提示(2星)
this.updateTips(TIPS_STATE.NICE);
pg.hw.playLocalAudio('score_success');
// 保存录音数据
Game.getIns().player.addVoice(data);
} else if (score >= 10) {
// 10-60分,显示加油提示(1星)
this.updateTips(TIPS_STATE.COMEON);
pg.hw.playLocalAudio('score_success');
// 保存录音数据
Game.getIns().player.addVoice(data);
} else {
// 10分以下,显示再试一次提示(0星)
this.updateTips(TIPS_STATE.TRYAGAIN);
......@@ -1204,7 +1201,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (this.touchData && this.touchData.parent && !this.activeFireNodes.includes(this.touchData.parent)) {
this.activeFireNodes.push(this.touchData.parent);
}
Game.getIns().player.addVoice(data);
}
// 延迟后隐藏提示
......
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