Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP05
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
OP05
Commits
ff7ec199
Commit
ff7ec199
authored
Sep 25, 2021
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成
parent
96a235f0
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
393 additions
and
372 deletions
+393
-372
scene.fire
play/assets/scene/scene/scene.fire
+369
-369
scene.js
play/assets/scene/scene/scene.js
+24
-3
No files found.
play/assets/scene/scene/scene.fire
View file @
ff7ec199
This diff is collapsed.
Click to expand it.
play/assets/scene/scene/scene.js
View file @
ff7ec199
...
...
@@ -222,7 +222,7 @@ cc.Class({
}
else
if
(
GameManager
.
getIns
().
getState
()
==
1
)
{
let
dragonDisplay
=
carton
.
getComponent
(
dragonBones
.
ArmatureDisplay
);
dragonDisplay
.
playAnimation
(
this
.
animationName
,
1
);
//animation所有的动画名称
// 动画结束后,出现单词,同时播放音频-----缺少单词放大效果
setTimeout
(()
=>
{
pg
.
view
.
visible
(
icon_ex
,
true
);
let
icon_ex_word
=
this
.
_stageData
.
word
;
...
...
@@ -250,7 +250,7 @@ cc.Class({
pg
.
view
.
visible
(
btn_recording
,
true
);
pg
.
view
.
visible
(
progress
,
true
);
}
else
if
(
GameManager
.
getIns
().
getState
()
==
3
)
{
pg
.
view
.
visible
(
btn_record
,
tru
e
);
pg
.
view
.
visible
(
btn_record
,
fals
e
);
pg
.
view
.
visible
(
btn_recording
,
false
);
pg
.
view
.
visible
(
progress
,
false
);
setTimeout
(()
=>
{
...
...
@@ -263,6 +263,23 @@ cc.Class({
},
1000
*
4
);
//6秒钟之后进入下一关卡
}
else
if
(
GameManager
.
getIns
().
getState
()
==
4
)
{
// 一局失败弹出tryagain,同时下方录音按钮明亮并出现提示
pg
.
view
.
visible
(
end
,
true
);
pg
.
view
.
visible
(
bg_tryagain
,
true
);
pg
.
view
.
visible
(
btn_recording
,
false
);
pg
.
view
.
visible
(
btn_record
,
true
);
pg
.
view
.
visible
(
progress
,
false
);
setTimeout
(()
=>
{
this
.
playSFX
(
"
audio_record
"
);
pg
.
view
.
visible
(
icon_hand
,
true
);
let
action
=
cc
.
tween
(
icon_hand
);
action
.
sequence
(
cc
.
tween
().
by
(
0.5
,
{
y
:
50
}),
cc
.
tween
().
by
(
0.5
,
{
y
:
-
50
}),
).
repeatForever
();
action
.
start
();
},
1000
*
1
);
}
else
if
(
GameManager
.
getIns
().
getState
()
==
5
)
{
pg
.
view
.
visible
(
end
,
false
);
...
...
@@ -306,6 +323,10 @@ cc.Class({
//按钮触发,使用的方法
onTouchRecord
()
{
this
.
playSFX
(
"
audio_btns
"
);
let
end
=
pg
.
view
.
find
(
this
,
"
end
"
);
let
bg_tryagain
=
pg
.
view
.
find
(
end
,
"
bg_tryagain
"
)
pg
.
view
.
visible
(
end
,
false
);
pg
.
view
.
visible
(
bg_tryagain
,
false
);
GameManager
.
getIns
().
setState
(
2
);
this
.
initLayout
()
...
...
@@ -338,7 +359,7 @@ cc.Class({
},
recrodEnd
(
data
)
{
let
score
=
data
.
result
.
overall
;
//
score = 40;
score
=
40
;
if
(
score
>
50
)
{
GameManager
.
getIns
().
setState
(
3
);
this
.
initLayout
();
...
...
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