Commit 0871a21d authored by 范雪寒's avatar 范雪寒

fix: bugs

parent 12d7d2e3
...@@ -3165,7 +3165,7 @@ ...@@ -3165,7 +3165,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 40, "width": 40,
"height": 40 "height": 36
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3220,7 +3220,7 @@ ...@@ -3220,7 +3220,7 @@
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 2, "_sizeMode": 1,
"_fillType": 0, "_fillType": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3782,7 +3782,7 @@ ...@@ -3782,7 +3782,7 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "f5DQotAvxIFrYz0hLdu0IJ" "_id": "4bgFoz6gBGQ5GAUkueedqD"
}, },
{ {
"__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": "7f1ppJnIlP7pJ6Ul+9sIBC" "_id": "67Y1wQBY9LV7O06viVpseQ"
}, },
{ {
"__type__": "cc.RichText", "__type__": "cc.RichText",
......
...@@ -305,6 +305,10 @@ cc.Class({ ...@@ -305,6 +305,10 @@ cc.Class({
const time = this.createSpeed[currentQuestion.speedLevel]; const time = this.createSpeed[currentQuestion.speedLevel];
this.ballList = []; this.ballList = [];
const answer = answerList[RandomInt(answerList.length)];
const ball = this.createBall(answer);
this.ballList.push(ball);
this.showBallsinterval = setInterval(() => { this.showBallsinterval = setInterval(() => {
const answer = answerList[RandomInt(answerList.length)]; const answer = answerList[RandomInt(answerList.length)];
const ball = this.createBall(answer); const ball = this.createBall(answer);
...@@ -345,7 +349,7 @@ cc.Class({ ...@@ -345,7 +349,7 @@ cc.Class({
const ballPosXBase = ballPosXBaseList[RandomInt(ballPosXBaseList.length)]; const ballPosXBase = ballPosXBaseList[RandomInt(ballPosXBaseList.length)];
ball.x = ballPosXBase + RandomInt(-50, 50); ball.x = ballPosXBase + RandomInt(-50, 50);
ball.y = -bg.height; ball.y = -bg.height / 2;
ball.parent = bg; ball.parent = bg;
this.lastBallPosXBase = ballPosXBase; this.lastBallPosXBase = ballPosXBase;
......
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