Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hw_lettersort
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
hw_lettersort
Commits
0194bd97
Commit
0194bd97
authored
May 24, 2023
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
bb96d31f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
hw_lettersort.js
assets/hw_lettersort/scene/hw_lettersort.js
+5
-4
No files found.
assets/hw_lettersort/scene/hw_lettersort.js
View file @
0194bd97
...
@@ -1141,7 +1141,7 @@ cc.Class({
...
@@ -1141,7 +1141,7 @@ cc.Class({
// this.move1Clip = cc.find('Canvas/res/audio/move_1').getComponent(cc.AudioSource).clip;
// this.move1Clip = cc.find('Canvas/res/audio/move_1').getComponent(cc.AudioSource).clip;
// this.move2Clip = cc.find('Canvas/res/audio/move_2').getComponent(cc.AudioSource).clip;
// this.move2Clip = cc.find('Canvas/res/audio/move_2').getComponent(cc.AudioSource).clip;
// this.failClip = cc.find('Canvas/res/audio/fail_4').getComponent(cc.AudioSource).clip;
// this.failClip = cc.find('Canvas/res/audio/fail_4').getComponent(cc.AudioSource).clip;
//
this.rightClip = cc.find('Canvas/res/audio/right').getComponent(cc.AudioSource).clip;
this
.
rightClip
=
cc
.
find
(
'
Canvas/res/audio/right
'
).
getComponent
(
cc
.
AudioSource
).
clip
;
this
.
clickClip
=
cc
.
find
(
'
Canvas/res/audio/click
'
).
getComponent
(
cc
.
AudioSource
).
clip
;
this
.
clickClip
=
cc
.
find
(
'
Canvas/res/audio/click
'
).
getComponent
(
cc
.
AudioSource
).
clip
;
this
.
nextClip
=
cc
.
find
(
'
Canvas/res/audio/next
'
).
getComponent
(
cc
.
AudioSource
).
clip
;
this
.
nextClip
=
cc
.
find
(
'
Canvas/res/audio/next
'
).
getComponent
(
cc
.
AudioSource
).
clip
;
// this.wrongClip = cc.find('Canvas/res/audio/wrong').getComponent(cc.AudioSource).clip;
// this.wrongClip = cc.find('Canvas/res/audio/wrong').getComponent(cc.AudioSource).clip;
...
@@ -6155,7 +6155,7 @@ cc.Class({
...
@@ -6155,7 +6155,7 @@ cc.Class({
labelNode
.
color
=
cc
.
Color
.
fromHEX
(
new
cc
.
Color
(),
color
);
labelNode
.
color
=
cc
.
Color
.
fromHEX
(
new
cc
.
Color
(),
color
);
labelOutline
.
width
=
outlineWidth
;
labelOutline
.
width
=
outlineWidth
;
labelOutline
.
color
=
cc
.
Color
.
fromHEX
(
new
cc
.
Color
(),
outlineColor
);
labelOutline
.
color
=
cc
.
Color
.
fromHEX
(
new
cc
.
Color
(),
outlineColor
);
//
label.enableBold = isBold;
label
.
enableBold
=
isBold
;
label
.
lineHeight
=
fontSize
;
label
.
lineHeight
=
fontSize
;
...
@@ -9775,8 +9775,9 @@ cc.Class({
...
@@ -9775,8 +9775,9 @@ cc.Class({
this
.
canTouch
=
false
;
this
.
canTouch
=
false
;
this
.
delayCall
(
0.2
,
()
=>
{
this
.
delayCall
(
0.7
,
()
=>
{
cc
.
audioEngine
.
playEffect
(
this
.
nextClip
,
false
,
0.8
);
cc
.
audioEngine
.
playEffect
(
this
.
rightClip
,
false
,
0.8
);
// cc.audioEngine.playEffect(this.nextClip, false, 0.8);
})
})
this
.
delayCall
(
0.3
,
()
=>
{
this
.
delayCall
(
0.3
,
()
=>
{
this
.
enterNextGroup
();
this
.
enterNextGroup
();
...
...
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