Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dfzx_cocos_dqq
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
Commits
0871a21d
Commit
0871a21d
authored
Mar 24, 2021
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: bugs
parent
12d7d2e3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
dfzx_cocos_dqq.fire
play/assets/dfzx_cocos_dqq/scene/dfzx_cocos_dqq.fire
+4
-4
dfzx_cocos_dqq.js
play/assets/dfzx_cocos_dqq/scene/dfzx_cocos_dqq.js
+5
-1
No files found.
play/assets/dfzx_cocos_dqq/scene/dfzx_cocos_dqq.fire
View file @
0871a21d
...
@@ -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",
...
...
play/assets/dfzx_cocos_dqq/scene/dfzx_cocos_dqq.js
View file @
0871a21d
...
@@ -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
;
...
...
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