Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
op_09
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
op_09
Commits
7825df5c
Commit
7825df5c
authored
Sep 23, 2021
by
huoshizhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: coolCat
parent
55b633b5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
op_09.js
play/assets/op_09/scene/op_09.js
+5
-5
No files found.
play/assets/op_09/scene/op_09.js
View file @
7825df5c
...
...
@@ -379,7 +379,7 @@ cc.Class({
coolCatSpeakStart
(
cb
)
{
const
cat
=
cc
.
find
(
'
Canvas/bg/catFrame/CoolCat
'
);
playDragonBoneAnimation
(
cat
,
'
begin
'
,
-
1
);
this
.
play
Effect
(
'
CoolCatBegin
'
,
()
=>
{
this
.
play
AudioByUrl
(
this
.
data
.
startAudio
,
()
=>
{
playDragonBoneAnimation
(
cat
,
'
normal
'
,
-
1
);
cb
();
});
...
...
@@ -388,7 +388,7 @@ cc.Class({
coolCatSpeakRight
(
cb
)
{
const
cat
=
cc
.
find
(
'
Canvas/bg/catFrame/CoolCat
'
);
playDragonBoneAnimation
(
cat
,
'
right
'
,
-
1
);
this
.
play
AudioByUrl
(
this
.
data
.
startAudio
,
()
=>
{
this
.
play
Effect
(
'
CoolCatRight
'
,
()
=>
{
playDragonBoneAnimation
(
cat
,
'
normal
'
,
-
1
);
cb
();
});
...
...
@@ -397,7 +397,7 @@ cc.Class({
coolCatSpeakWrong
(
cb
)
{
const
cat
=
cc
.
find
(
'
Canvas/bg/catFrame/CoolCat
'
);
playDragonBoneAnimation
(
cat
,
'
wrong
'
,
-
1
);
this
.
play
AudioByUrl
(
this
.
data
.
endAudio
,
()
=>
{
this
.
play
Effect
(
'
CoolCatWrong
'
,
()
=>
{
playDragonBoneAnimation
(
cat
,
'
normal
'
,
-
1
);
cb
();
});
...
...
@@ -406,10 +406,10 @@ cc.Class({
coolCatSpeakEnd
(
cb
)
{
const
cat
=
cc
.
find
(
'
Canvas/bg/catFrame/CoolCat
'
);
playDragonBoneAnimation
(
cat
,
'
finish
'
,
-
1
);
this
.
play
Effect
(
'
CoolCatFinish
'
,
()
=>
{
this
.
play
AudioByUrl
(
this
.
data
.
endAudio
,
()
=>
{
playDragonBoneAnimation
(
cat
,
'
normal
'
,
-
1
);
});
cb
();
});
},
...
...
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