Commit 21f4bc75 authored by liujiangnan's avatar liujiangnan

feat

parent b529318a
...@@ -3782,7 +3782,7 @@ ...@@ -3782,7 +3782,7 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "6795/9P25Eh50ibqg7SSPR" "_id": "e9W+pFRbNOUIfe0xlD3FUQ"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
...@@ -3817,7 +3817,7 @@ ...@@ -3817,7 +3817,7 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "27xRI5ub1KC4pQ2OWP6ccS" "_id": "f3e/G5M2hK4KQ71+hXx608"
}, },
{ {
"__type__": "cc.RichText", "__type__": "cc.RichText",
......
import { defaultData } from '../script/defaultData.js'; import { defaultData } from '../script/defaultData_dfzx_cocos_dqq_app.js';
import { import {
addBtnListener, addBtnListener,
showTrebleFirework, showTrebleFirework,
...@@ -13,7 +13,7 @@ import { ...@@ -13,7 +13,7 @@ import {
playAudioByUrlSync, playAudioByUrlSync,
RandomInt, RandomInt,
onHomeworkFinish, onHomeworkFinish,
} from "../script/util"; } from "../script/util_dfzx_cocos_dqq_app";
cc.Class({ cc.Class({
...@@ -345,6 +345,7 @@ cc.Class({ ...@@ -345,6 +345,7 @@ cc.Class({
}, },
gameNextFlag: null,
createBall(answer) { createBall(answer) {
let ball = null; let ball = null;
if (answer.answerType == 'img') { if (answer.answerType == 'img') {
...@@ -396,7 +397,8 @@ cc.Class({ ...@@ -396,7 +397,8 @@ cc.Class({
this._status.currentRightNumber++; this._status.currentRightNumber++;
const currentQuestion = this.data.questionList[this._status.currentQuestionIdx]; const currentQuestion = this.data.questionList[this._status.currentQuestionIdx];
this.updateRightNumber(); this.updateRightNumber();
if (this._status.currentRightNumber >= currentQuestion.rigthNumber) { if (this._status.currentRightNumber >= currentQuestion.rigthNumber && !this.gameNextFlag) {
this.gameNextFlag = true;
this.stopShowBalls(); this.stopShowBalls();
await asyncDelay(0.5); await asyncDelay(0.5);
await this.showStar(); await this.showStar();
...@@ -409,6 +411,7 @@ cc.Class({ ...@@ -409,6 +411,7 @@ cc.Class({
await this.playQuestionAudio(); await this.playQuestionAudio();
this.startShowBalls(); this.startShowBalls();
} }
this.gameNextFlag = false;
} }
}); });
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 76, "height": 76,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"彩带": { "cd": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "fae2e4dd-cbd3-4a27-8506-c6a2b11da5c6", "uuid": "fae2e4dd-cbd3-4a27-8506-c6a2b11da5c6",
"rawTextureUuid": "afcdd4b4-7d30-4229-b7bc-549324e9a8f5", "rawTextureUuid": "afcdd4b4-7d30-4229-b7bc-549324e9a8f5",
......
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
"packages": "packages", "packages": "packages",
"name": "play", "name": "play",
"id": "9af72fd2-44a6-4131-8ea3-3e1b3fa22231", "id": "9af72fd2-44a6-4131-8ea3-3e1b3fa22231",
"version": "2.4.4", "version": "2.4.5",
"isNew": false "isNew": false
} }
\ No newline at end of file
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