Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ET-18
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
ET-18
Commits
504d5d21
Commit
504d5d21
authored
Feb 26, 2021
by
asdf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉goodjob音效
parent
3ac7fd16
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
merge.mp3
play/assets/tmpGame/audios/merge.mp3
+0
-0
merge.mp3.meta
play/assets/tmpGame/audios/merge.mp3.meta
+7
-0
Scene.js
play/assets/tmpGame/script/Scene.js
+7
-6
No files found.
play/assets/tmpGame/audios/merge.mp3
0 → 100644
View file @
504d5d21
File added
play/assets/tmpGame/audios/merge.mp3.meta
0 → 100644
View file @
504d5d21
{
"ver": "2.0.1",
"uuid": "572039bb-724c-435a-95e7-22b0d49b03e2",
"downloadMode": 0,
"duration": 0.216,
"subMetas": {}
}
\ No newline at end of file
play/assets/tmpGame/script/Scene.js
View file @
504d5d21
...
...
@@ -122,7 +122,7 @@ cc.Class({
this
.
startGame
();
},
initBoot
(){
initBoot
()
{
GameData
.
questionIndex
=
0
;
this
.
loadCenterImage
();
this
.
questionList
=
[];
...
...
@@ -131,7 +131,7 @@ cc.Class({
}
this
.
nodeDict
.
nodBgTitle
.
on
(
'
touchstart
'
,
()
=>
{
if
(
GameData
.
audioCount
!==
0
)
{
if
(
GameData
.
audioCount
!==
0
)
{
return
;
}
GameData
.
audioCount
++
;
...
...
@@ -265,7 +265,8 @@ cc.Class({
.
to
(
0.1
,
{
scale
:
1
})
.
call
(()
=>
{
this
.
onBtnClickAudio
(()
=>
{
this
.
playAudioGoodjob
();
// this.playAudioGoodjob();
this
.
checkOver
();
});
})
.
start
()
...
...
@@ -354,9 +355,9 @@ cc.Class({
},
playAudio
(
cb
)
{
if
(
GameData
.
audioCount
!==
0
)
{
return
;
}
if
(
GameData
.
audioCount
!==
0
)
{
return
;
}
GameData
.
audioCount
++
;
let
url
=
this
.
data
.
questionList
[
GameData
.
questionIndex
].
audio
;
// url = 'http://127.0.0.1/iamflying.mp3';
...
...
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