Commit be46958a authored by 范雪寒's avatar 范雪寒

fix: bugs

parent 92dbf1f3
...@@ -3164,8 +3164,8 @@ ...@@ -3164,8 +3164,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 200, "width": 40,
"height": 200 "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": 0, "_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": "97OpfnoZhGJZqUO+57ENtW" "_id": "6795/9P25Eh50ibqg7SSPR"
}, },
{ {
"__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": "81KbNzWQFCPanO7gBVqWiv" "_id": "27xRI5ub1KC4pQ2OWP6ccS"
}, },
{ {
"__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;
......
...@@ -4,7 +4,7 @@ cd publish ...@@ -4,7 +4,7 @@ cd publish
set -e set -e
node build_check.js node build_check.js || exit
set +e set +e
......
let fs = require('fs'); let fs = require('fs');
const { exit } = require('process');
const dirNames = __dirname.split('/'); const dirNames = __dirname.split('/');
const projectName = dirNames[dirNames.length - 2]; const projectName = dirNames[dirNames.length - 2];
...@@ -29,4 +30,26 @@ files.forEach(fileName => { ...@@ -29,4 +30,26 @@ files.forEach(fileName => {
if (!same) { if (!same) {
throw (`bundle文件夹名称(${folderName})与scene名称不相同`); throw (`bundle文件夹名称(${folderName})与scene名称不相同`);
} }
\ No newline at end of file
function checkFileNameWithSpace(src) {
const exists = fs.existsSync(src);
if (!exists) {
return;
}
//读取目录
const paths = fs.readdirSync(src);
for (let i = 0; i < paths.length; i++) {
let path = paths[i];
if (path.indexOf(' ') != -1) {
throw (`文件/文件夹名称(${src}/${path})不能有空格`);
}
const newpath = `${src}/${path}`;
const st = fs.statSync(newpath);
if (st.isDirectory()) {
arguments.callee(newpath);
}
}
}
checkFileNameWithSpace('../play/assets');
\ No newline at end of file
{"ios":{"sceneName":"dfzx_cocos_dqq_app","version":"6a94d"},"android":{"sceneName":"dfzx_cocos_dqq_app","version":"6a94d"}} {"ios":{"sceneName":"dfzx_cocos_dqq_app","version":"61cc2"},"android":{"sceneName":"dfzx_cocos_dqq_app","version":"61cc2"}}
\ No newline at end of file \ 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