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
8c276589
Commit
8c276589
authored
Mar 23, 2022
by
张世斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修复bug
parent
f217d6aa
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
9 deletions
+44
-9
cat_auto.mp3.meta
assets/Coloring/audios/cat_auto.mp3.meta
+7
-0
cat_lack.mp3.meta
assets/Coloring/audios/cat_lack.mp3.meta
+7
-0
cat_over.mp3.meta
assets/Coloring/audios/cat_over.mp3.meta
+7
-0
cat_right.mp3.meta
assets/Coloring/audios/cat_right.mp3.meta
+7
-0
cat_wrong.mp3.meta
assets/Coloring/audios/cat_wrong.mp3.meta
+7
-0
MenuController.ts
assets/Coloring/script/Game/MenuController.ts
+9
-9
No files found.
assets/Coloring/audios/cat_auto.mp3.meta
0 → 100644
View file @
8c276589
{
"ver": "2.0.1",
"uuid": "ab64f072-6b37-46d7-9e41-2d35a3e7cfdf",
"downloadMode": 0,
"duration": 9.691429,
"subMetas": {}
}
\ No newline at end of file
assets/Coloring/audios/cat_lack.mp3.meta
0 → 100644
View file @
8c276589
{
"ver": "2.0.1",
"uuid": "318eb94f-8eee-485f-8fcd-1c15e2cc98ed",
"downloadMode": 0,
"duration": 3.096,
"subMetas": {}
}
\ No newline at end of file
assets/Coloring/audios/cat_over.mp3.meta
0 → 100644
View file @
8c276589
{
"ver": "2.0.1",
"uuid": "fb845b9d-9241-494f-9d10-04f26d503853",
"downloadMode": 0,
"duration": 13.061224,
"subMetas": {}
}
\ No newline at end of file
assets/Coloring/audios/cat_right.mp3.meta
0 → 100644
View file @
8c276589
{
"ver": "2.0.1",
"uuid": "7ba34e27-70d4-40ac-a0cc-b3b9c4c89768",
"downloadMode": 0,
"duration": 0.972,
"subMetas": {}
}
\ No newline at end of file
assets/Coloring/audios/cat_wrong.mp3.meta
0 → 100644
View file @
8c276589
{
"ver": "2.0.1",
"uuid": "08218649-1664-4be5-b20c-6d2069c22b48",
"downloadMode": 0,
"duration": 2.196,
"subMetas": {}
}
\ No newline at end of file
assets/Coloring/script/Game/MenuController.ts
View file @
8c276589
...
@@ -14,7 +14,7 @@ export default class MenuController extends Controller{
...
@@ -14,7 +14,7 @@ export default class MenuController extends Controller{
private
catAni
:
dragonBones
.
ArmatureDisplay
private
catAni
:
dragonBones
.
ArmatureDisplay
private
stageIdx
:
number
=
0
private
stageIdx
:
number
=
0
private
colorCur
:
string
//当前选择的色彩
private
colorCur
:
string
//当前选择的色彩
private
answers
:
string
[]
private
answers
:
number
[]
private
camera
:
cc
.
Camera
private
camera
:
cc
.
Camera
private
isCanTap
:
boolean
=
true
;
private
isCanTap
:
boolean
=
true
;
...
@@ -63,20 +63,20 @@ export default class MenuController extends Controller{
...
@@ -63,20 +63,20 @@ export default class MenuController extends Controller{
return
;
return
;
}
}
this
.
answers
[
i
]
=
i
.
toString
()
;
this
.
answers
[
i
]
=
i
;
let
color
=
new
cc
.
Color
();
let
color
=
new
cc
.
Color
();
color
.
fromHEX
(
this
.
colorCur
);
color
.
fromHEX
(
this
.
colorCur
);
colorBlocks
[
i
].
color
=
color
;
colorBlocks
[
i
].
color
=
color
;
// cc.Color.fromHEX(colorBlocks[i].color,+"#"+this.colorCur);
// cc.Color.fromHEX(colorBlocks[i].color,+"#"+this.colorCur);
this
.
onRight
();
this
.
onRight
();
//
let flag=0;
let
flag
=
0
;
//
for(let i=0;i<this.answers.length;i++){
for
(
let
i
=
0
;
i
<
this
.
answers
.
length
;
i
++
){
// if(this.answers[i]==answers[i]
){
if
(
this
.
answers
[
i
]
==
i
){
//
flag++;
flag
++
;
//
}
}
//
}
}
(
this
.
answers
.
length
>=
colorBlocks
.
length
)
&&
this
.
finish
();
(
flag
>=
colorBlocks
.
length
)
&&
this
.
finish
();
// // this.onClickBlock(i,answers);
// // this.onClickBlock(i,answers);
// let result=answers.findIndex((item)=>{
// let result=answers.findIndex((item)=>{
...
...
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