Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
WL02
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
WL02
Commits
540e7d98
Commit
540e7d98
authored
Jul 28, 2021
by
linzhiguo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ 游戏结束(框架代码)
parent
3a5a2084
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
WL02.fire
play/assets/WL02/scene/WL02.fire
+3
-3
WL02.js
play/assets/WL02/scene/WL02.js
+8
-1
No files found.
play/assets/WL02/scene/WL02.fire
View file @
540e7d98
...
@@ -5365,8 +5365,8 @@
...
@@ -5365,8 +5365,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
379.412
,
1656.989
,
-
756.431
,
-
2046.94
,
0,
0,
0,
0,
0,
0,
...
@@ -6430,7 +6430,7 @@
...
@@ -6430,7 +6430,7 @@
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
640,
640,
-
69.655
,
-
1346.376
,
0,
0,
0,
0,
0,
0,
...
...
play/assets/WL02/scene/WL02.js
View file @
540e7d98
...
@@ -518,12 +518,13 @@ cc.Class({
...
@@ -518,12 +518,13 @@ cc.Class({
this
.
_comeon
.
active
=
true
;
this
.
_comeon
.
active
=
true
;
playDragonBoneAnimation
(
this
.
_comeon
,
'
newAnimation
'
,
1
,
()
=>
{
playDragonBoneAnimation
(
this
.
_comeon
,
'
newAnimation
'
,
1
,
()
=>
{
this
.
_comeon
.
active
=
false
;
this
.
_comeon
.
active
=
false
;
this
.
gameEnd
();
});
});
}
}
else
{
else
{
this
.
playAudioByName
(
'
victory
'
);
this
.
playAudioByName
(
'
victory
'
);
this
.
_flower
.
active
=
true
;
this
.
_flower
.
active
=
true
;
playDragonBoneAnimation
(
this
.
_flower
,
'
normal
'
);
playDragonBoneAnimation
(
this
.
_flower
,
'
normal
'
,
1
,
this
.
gameEnd
);
}
}
return
;
return
;
}
}
...
@@ -533,6 +534,12 @@ cc.Class({
...
@@ -533,6 +534,12 @@ cc.Class({
this
.
updateItem
();
this
.
updateItem
();
},
},
gameEnd
(){
if
(
window
&&
window
.
courseware
)
{
window
.
courseware
.
gameEnd
();
}
},
flyIn
(
cb
){
flyIn
(
cb
){
this
.
flyVirus
[
0
].
active
=
true
;
this
.
flyVirus
[
0
].
active
=
true
;
this
.
flyVirus
[
1
].
active
=
true
;
this
.
flyVirus
[
1
].
active
=
true
;
...
...
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