Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
WL01
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
WL01
Commits
f967aa90
Commit
f967aa90
authored
Jul 21, 2021
by
linzhiguo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ 再尝试一下
parent
95b7686e
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
434 deletions
+65
-434
WL01.fire
play/assets/WL01/scene/WL01.fire
+44
-420
WL01.js
play/assets/WL01/scene/WL01.js
+21
-14
No files found.
play/assets/WL01/scene/WL01.fire
View file @
f967aa90
This diff is collapsed.
Click to expand it.
play/assets/WL01/scene/WL01.js
View file @
f967aa90
...
...
@@ -162,6 +162,18 @@ cc.Class({
this
.
initView
();
},
startAudio
(){
let
audio_url
=
this
.
data
.
audio_url
;
if
(
audio_url
&&
audio_url
!=
""
){
playAudioByUrl
(
audio_url
,
()
=>
{
this
.
playGame
();
});
}
else
{
this
.
playGame
();
}
},
initView
()
{
window
.
WL
=
this
;
this
.
shuffle
(
this
.
data
.
mouses
);
...
...
@@ -173,21 +185,16 @@ cc.Class({
this
.
updateFlagArea
();
this
.
title
.
string
=
this
.
data
.
title
;
let
audio_url
=
this
.
data
.
audio_url
;
this
.
_start
=
cc
.
find
(
'
Canvas/start
'
);
this
.
_start
.
on
(
'
click
'
,()
=>
{
this
.
_start
.
active
=
false
;
if
(
audio_url
&&
audio_url
!=
""
){
playAudioByUrl
(
audio_url
,
()
=>
{
this
.
playGame
();
if
(
window
&&
window
.
courseware
)
{
window
.
courseware
.
onEvent
(
"
course-in-screen
"
,
(
data
,
next
)
=>
{
this
.
startAudio
();
next
();
});
}
else
{
this
.
playGame
();
this
.
startAudio
();
}
});
...
...
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