Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dfzx_cocos_dqq_app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
dfzx_cocos_dqq_app
Commits
be46958a
Commit
be46958a
authored
Mar 24, 2021
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: bugs
parent
92dbf1f3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
9 deletions
+36
-9
dfzx_cocos_dqq_app.fire
play/assets/dfzx_cocos_dqq_app/scene/dfzx_cocos_dqq_app.fire
+5
-5
dfzx_cocos_dqq_app.js
play/assets/dfzx_cocos_dqq_app/scene/dfzx_cocos_dqq_app.js
+5
-1
build.sh
publish/build.sh
+1
-1
build_check.js
publish/build_check.js
+24
-1
config.json
publish/publish/config.json
+1
-1
No files found.
play/assets/dfzx_cocos_dqq_app/scene/dfzx_cocos_dqq_app.fire
View file @
be46958a
...
...
@@ -3164,8 +3164,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
20
0,
"height":
200
"width":
4
0,
"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",
...
...
play/assets/dfzx_cocos_dqq_app/scene/dfzx_cocos_dqq_app.js
View file @
be46958a
...
...
@@ -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
;
...
...
publish/build.sh
View file @
be46958a
...
...
@@ -4,7 +4,7 @@ cd publish
set
-e
node build_check.js
node build_check.js
||
exit
set
+e
...
...
publish/build_check.js
View file @
be46958a
let
fs
=
require
(
'
fs
'
);
const
{
exit
}
=
require
(
'
process
'
);
const
dirNames
=
__dirname
.
split
(
'
/
'
);
const
projectName
=
dirNames
[
dirNames
.
length
-
2
];
...
...
@@ -29,4 +30,26 @@ files.forEach(fileName => {
if
(
!
same
)
{
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
publish/publish/config.json
View file @
be46958a
{
"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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment