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

fix: bugs

parent 92dbf1f3
......@@ -3164,8 +3164,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 200,
"height": 200
"width": 40,
"height": 36
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -3220,7 +3220,7 @@
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
},
"_type": 0,
"_sizeMode": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -3782,7 +3782,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "97OpfnoZhGJZqUO+57ENtW"
"_id": "6795/9P25Eh50ibqg7SSPR"
},
{
"__type__": "cc.Label",
......@@ -3817,7 +3817,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "81KbNzWQFCPanO7gBVqWiv"
"_id": "27xRI5ub1KC4pQ2OWP6ccS"
},
{
"__type__": "cc.RichText",
......
......@@ -305,6 +305,10 @@ cc.Class({
const time = this.createSpeed[currentQuestion.speedLevel];
this.ballList = [];
const answer = answerList[RandomInt(answerList.length)];
const ball = this.createBall(answer);
this.ballList.push(ball);
this.showBallsinterval = setInterval(() => {
const answer = answerList[RandomInt(answerList.length)];
const ball = this.createBall(answer);
......@@ -345,7 +349,7 @@ cc.Class({
const ballPosXBase = ballPosXBaseList[RandomInt(ballPosXBaseList.length)];
ball.x = ballPosXBase + RandomInt(-50, 50);
ball.y = -bg.height;
ball.y = -bg.height / 2;
ball.parent = bg;
this.lastBallPosXBase = ballPosXBase;
......
......@@ -4,7 +4,7 @@ cd publish
set -e
node build_check.js
node build_check.js || exit
set +e
......
let fs = require('fs');
const { exit } = require('process');
const dirNames = __dirname.split('/');
const projectName = dirNames[dirNames.length - 2];
......@@ -30,3 +31,25 @@ files.forEach(fileName => {
if (!same) {
throw (`bundle文件夹名称(${folderName})与scene名称不相同`);
}
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"}}
\ No newline at end of file
{"ios":{"sceneName":"dfzx_cocos_dqq_app","version":"61cc2"},"android":{"sceneName":"dfzx_cocos_dqq_app","version":"61cc2"}}
\ 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