Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Coloring_OL
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_OL
Commits
20073fe3
Commit
20073fe3
authored
Apr 07, 2022
by
张世斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修复bug
parent
c9510c03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
Coloring_OL.fire
assets/Coloring_OL/scene/Coloring_OL.fire
+1
-1
Coloring_OL.js
assets/Coloring_OL/scene/Coloring_OL.js
+6
-1
No files found.
assets/Coloring_OL/scene/Coloring_OL.fire
View file @
20073fe3
...
@@ -847,7 +847,7 @@
...
@@ -847,7 +847,7 @@
"__id__": 14
"__id__": 14
},
},
"_children": [],
"_children": [],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
"_components": [
{
{
"__id__": 16
"__id__": 16
...
...
assets/Coloring_OL/scene/Coloring_OL.js
View file @
20073fe3
...
@@ -206,7 +206,8 @@ cc.Class({
...
@@ -206,7 +206,8 @@ cc.Class({
// this.playAudioByName('click');
// this.playAudioByName('click');
// });
// });
// }
// }
this
.
paint
.
on
(
"
click
"
,()
=>
{
this
.
paint
.
on
(
"
click
"
,
async
()
=>
{
await
asyncDelay
(
0.5
);
if
(
this
.
_can_tap
!=
true
)
if
(
this
.
_can_tap
!=
true
)
return
;
return
;
this
.
_can_tap
=
false
;
this
.
_can_tap
=
false
;
...
@@ -1414,6 +1415,10 @@ cc.Class({
...
@@ -1414,6 +1415,10 @@ cc.Class({
// let answers = info.answers.split('');
// let answers = info.answers.split('');
// let words = 'aAcBaCbA'.split('');
// let words = 'aAcBaCbA'.split('');
// let answers = '0147'.split('');
// let answers = '0147'.split('');
this
.
color_selector
.
active
=
true
;
// this.color_selector.x = this.color_buttons[0].x;
// this.color_selector.y = this.color_buttons[0].y;
this
.
_color
=
this
.
getColor
(
"
f8ed21
"
);
let
spriteFrame
=
await
this
.
getSpriteFrimeByUrl
(
this
.
data
.
bg
);
let
spriteFrame
=
await
this
.
getSpriteFrimeByUrl
(
this
.
data
.
bg
);
let
bg1
=
this
.
paint
.
getChildByName
(
"
alligator_img
"
);
let
bg1
=
this
.
paint
.
getChildByName
(
"
alligator_img
"
);
...
...
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