Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
l2_boardgame2
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
l2_boardgame2
Commits
098021d0
Commit
098021d0
authored
Jul 26, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
音频修改上传
parent
ef2ecbfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
l2_boardgame2.ts
assets/l2_boardgame2/scene/l2_boardgame2.ts
+7
-3
No files found.
assets/l2_boardgame2/scene/l2_boardgame2.ts
View file @
098021d0
...
...
@@ -591,7 +591,6 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent
const
offsetY
=
{
Red
:
-
90
,
Blue
:
-
90
};
this
.
_status
[
color
]
=
idx
;
await
this
.
playLocalAudio
(
"
正确
"
);
piece
.
zIndex
=
1
;
this
.
showStars
(
piece
);
...
...
@@ -752,7 +751,7 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent
return
;
}
this
.
playLocalAudio
(
"
错误弹回
"
);
this
.
playLocalAudio
(
"
落子
"
);
await
asyncTweenTo
(
node
,
0.7
,
...
...
@@ -943,6 +942,7 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent
await
this
.
pieceFindRightBlock
(
rightBlock
,
idx
);
}
await
this
.
playLocalAudio
(
"
正确
"
);
this
.
updateProgress
(
idx
);
pieceRed
[
"
cantMove
"
]
=
true
;
pieceBlue
[
"
cantMove
"
]
=
true
;
...
...
@@ -1040,7 +1040,7 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent
"
fluency
"
:
60
,
"
rhythm
"
:
90
,
"
kernel_version
"
:
"
5.2.4
"
,
"
overall
"
:
7
5
,
//75
"
overall
"
:
2
5
,
//75
"
integrity
"
:
100
,
"
duration
"
:
"
6.779
"
,
"
rear_tone
"
:
"
fall
"
,
...
...
@@ -1147,9 +1147,11 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent
"
applicationId
"
:
"
154838659000009e
"
}
if
(
this
.
recrodEnd
(
testData
))
{
this
.
playLocalAudio
(
"
正确
"
);
await
this
.
showVoiceGood
();
return
resolve
(
true
)
}
else
{
this
.
playLocalAudio
(
"
错误弹回
"
);
await
this
.
showVoiceTry
();
return
resolve
(
false
);
}
...
...
@@ -1158,9 +1160,11 @@ export default class L2_boardgame2_SceneComponent extends MyCocosSceneComponent
courseware
&&
courseware
.
stopTest
(
async
(
data
)
=>
{
data
=
JSON
.
parse
(
data
);
if
(
this
.
recrodEnd
(
data
))
{
this
.
playLocalAudio
(
"
正确
"
);
await
this
.
showVoiceGood
();
return
resolve
(
true
)
}
else
{
this
.
playLocalAudio
(
"
错误弹回
"
);
await
this
.
showVoiceTry
();
return
resolve
(
false
);
}
...
...
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