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
ef3c4f37
Commit
ef3c4f37
authored
May 29, 2023
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 防止连点
parent
b45cc5e6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
dfzx_cocos_dqq.js
assets/dfzx_cocos_dqq/scene/dfzx_cocos_dqq.js
+4
-1
cd.png
assets/dfzx_cocos_dqq/textures/cd.png
+0
-0
cd.png.meta
assets/dfzx_cocos_dqq/textures/cd.png.meta
+1
-1
No files found.
assets/dfzx_cocos_dqq/scene/dfzx_cocos_dqq.js
View file @
ef3c4f37
...
@@ -345,6 +345,7 @@ cc.Class({
...
@@ -345,6 +345,7 @@ cc.Class({
},
},
gameNextFlag
:
null
,
createBall
(
answer
)
{
createBall
(
answer
)
{
let
ball
=
null
;
let
ball
=
null
;
if
(
answer
.
answerType
==
'
img
'
)
{
if
(
answer
.
answerType
==
'
img
'
)
{
...
@@ -396,7 +397,8 @@ cc.Class({
...
@@ -396,7 +397,8 @@ cc.Class({
this
.
_status
.
currentRightNumber
++
;
this
.
_status
.
currentRightNumber
++
;
const
currentQuestion
=
this
.
data
.
questionList
[
this
.
_status
.
currentQuestionIdx
];
const
currentQuestion
=
this
.
data
.
questionList
[
this
.
_status
.
currentQuestionIdx
];
this
.
updateRightNumber
();
this
.
updateRightNumber
();
if
(
this
.
_status
.
currentRightNumber
>=
currentQuestion
.
rigthNumber
)
{
if
(
this
.
_status
.
currentRightNumber
>=
currentQuestion
.
rigthNumber
&&
!
this
.
gameNextFlag
)
{
this
.
gameNextFlag
=
true
;
this
.
stopShowBalls
();
this
.
stopShowBalls
();
await
asyncDelay
(
0.5
);
await
asyncDelay
(
0.5
);
await
this
.
showStar
();
await
this
.
showStar
();
...
@@ -409,6 +411,7 @@ cc.Class({
...
@@ -409,6 +411,7 @@ cc.Class({
await
this
.
playQuestionAudio
();
await
this
.
playQuestionAudio
();
this
.
startShowBalls
();
this
.
startShowBalls
();
}
}
this
.
gameNextFlag
=
false
;
}
}
});
});
...
...
assets/dfzx_cocos_dqq/textures/
彩带
.png
→
assets/dfzx_cocos_dqq/textures/
cd
.png
View file @
ef3c4f37
File moved
assets/dfzx_cocos_dqq/textures/
彩带
.png.meta
→
assets/dfzx_cocos_dqq/textures/
cd
.png.meta
View file @
ef3c4f37
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
"height": 76,
"height": 76,
"platformSettings": {},
"platformSettings": {},
"subMetas": {
"subMetas": {
"
彩带
": {
"
cd
": {
"ver": "1.0.4",
"ver": "1.0.4",
"uuid": "fae2e4dd-cbd3-4a27-8506-c6a2b11da5c6",
"uuid": "fae2e4dd-cbd3-4a27-8506-c6a2b11da5c6",
"rawTextureUuid": "afcdd4b4-7d30-4229-b7bc-549324e9a8f5",
"rawTextureUuid": "afcdd4b4-7d30-4229-b7bc-549324e9a8f5",
...
...
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