Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Coloring
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
Coloring
Commits
49fc61f9
Commit
49fc61f9
authored
Apr 06, 2022
by
张世斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修复bug
parent
315dbab3
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
316 additions
and
237 deletions
+316
-237
Coloring.fire
assets/Coloring/scene/Coloring.fire
+301
-230
Coloring.js
assets/Coloring/scene/Coloring.js
+15
-7
No files found.
assets/Coloring/scene/Coloring.fire
View file @
49fc61f9
This diff is collapsed.
Click to expand it.
assets/Coloring/scene/Coloring.js
View file @
49fc61f9
...
...
@@ -167,14 +167,20 @@ cc.Class({
});
}
// this.paint.on("Click",()=>{
// playDragonBoneAnimation(this.coolcat, 'wrong', -1);
// this.playAudioByUrl(this.data.wrongAudio,()=>{
// playDragonBoneAnimation(this.coolcat, 'normal', -1);
// this._can_tap = true;
this
.
paint
.
on
(
"
click
"
,()
=>
{
if
(
this
.
_can_tap
!=
true
)
return
;
this
.
_can_tap
=
false
;
cc
.
log
(
"
paint 点击
"
);
playDragonBoneAnimation
(
this
.
coolcat
,
'
wrong
'
,
-
1
);
this
.
playAudioByUrl
(
this
.
data
.
wrongAudio
,()
=>
{
playDragonBoneAnimation
(
this
.
coolcat
,
'
normal
'
,
-
1
);
this
.
_can_tap
=
true
;
// })
// })
})
// this.paintTimeID = setTimeout(() => {
// }, 500);
})
this
.
paint
.
active
=
false
;
this
.
paint2
.
active
=
false
;
...
...
@@ -651,6 +657,8 @@ cc.Class({
if
(
this
.
color_selector
.
active
==
false
)
return
;
this
.
_can_tap
=
false
;
// clearTimeout(this.paintTimeID);
//correct
playDragonBoneAnimation
(
this
.
coolcat
,
'
right
'
,
-
1
);
this
.
playAudioByUrl
(
this
.
data
.
rightAudio
,()
=>
{
...
...
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