Commit 3fd217d3 authored by Tt's avatar Tt

细节修改

parent 765aeedf
...@@ -655,7 +655,9 @@ cc.Class({ ...@@ -655,7 +655,9 @@ cc.Class({
//按钮触发,使用的方法 //按钮触发,使用的方法
onTouchRecord() { onTouchRecord() {
if (this._playing) return; if (this._playing) {
cc.audioEngine.stopAllEffects();
}
this.playSFX("audio_btns"); this.playSFX("audio_btns");
let end = pg.view.find(this, "end"); let end = pg.view.find(this, "end");
let bg_tryagain = pg.view.find(end, "bg_tryagain") let bg_tryagain = pg.view.find(end, "bg_tryagain")
...@@ -694,9 +696,9 @@ cc.Class({ ...@@ -694,9 +696,9 @@ cc.Class({
}, },
recrodEnd(data) { recrodEnd(data) {
let score = data.result.overall; let score = data.result.overall;
score = (score / 100) * 40 + (100 - 40); // score = (score / 100) * 40 + (100 - 40);
// score = 40; // score = 40;
if (score > 50) { if (score >= 80) {
GameManager.getIns().setState(3); GameManager.getIns().setState(3);
this.initLayout(); this.initLayout();
} else { } else {
......
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