Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FT_12
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
FT_12
Commits
dcbabc03
Commit
dcbabc03
authored
Dec 31, 2020
by
asdf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
190982c2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
ItemAnswer.js
play/assets/tmpGame/script/ItemAnswer.js
+3
-0
Scene.js
play/assets/tmpGame/script/Scene.js
+6
-9
No files found.
play/assets/tmpGame/script/ItemAnswer.js
View file @
dcbabc03
...
@@ -253,6 +253,9 @@ cc.Class({
...
@@ -253,6 +253,9 @@ cc.Class({
playLabelGreen
(
cb
)
{
playLabelGreen
(
cb
)
{
this
.
dragonBone
.
playAnimation
(
this
.
animationName
,
1
);
this
.
dragonBone
.
playAnimation
(
this
.
animationName
,
1
);
this
.
playAudioOption
((
duration
)
=>
{
this
.
playAudioOption
((
duration
)
=>
{
if
(
!
cc
.
isValid
(
this
)){
return
;
}
this
.
scheduleStep
=
2
;
this
.
scheduleStep
=
2
;
this
.
scheduleDuration
=
duration
/
2
/
this
.
label
.
node
.
width
*
this
.
scheduleStep
;
this
.
scheduleDuration
=
duration
/
2
/
this
.
label
.
node
.
width
*
this
.
scheduleStep
;
if
(
this
.
scheduleDuration
<
0.05
)
{
if
(
this
.
scheduleDuration
<
0.05
)
{
...
...
play/assets/tmpGame/script/Scene.js
View file @
dcbabc03
...
@@ -353,6 +353,9 @@ cc.Class({
...
@@ -353,6 +353,9 @@ cc.Class({
),
),
cc
.
callFunc
(()
=>
{
cc
.
callFunc
(()
=>
{
itemAnswer
.
playLabelGreen
(()
=>
{
itemAnswer
.
playLabelGreen
(()
=>
{
if
(
GameData
.
isOver
){
return
;
}
if
(
this
.
checkOver
())
{
if
(
this
.
checkOver
())
{
this
.
showLayerOver
();
this
.
showLayerOver
();
}
}
...
@@ -422,20 +425,20 @@ cc.Class({
...
@@ -422,20 +425,20 @@ cc.Class({
GameData
.
startStepDone
=
false
;
GameData
.
startStepDone
=
false
;
},
},
onTurnLast
()
{
onTurnLast
()
{
if
(
GameData
.
isOver
)
{
if
(
GameData
.
audioCount
!=
0
)
{
return
;
return
;
}
}
GameData
.
questionIndex
--
;
GameData
.
questionIndex
--
;
this
.
resetDate
();
this
.
resetDate
();
},
},
onReplay
()
{
onReplay
()
{
if
(
GameData
.
isOver
)
{
if
(
GameData
.
audioCount
!=
0
)
{
return
;
return
;
}
}
this
.
resetDate
();
this
.
resetDate
();
},
},
onTurnNext
()
{
onTurnNext
()
{
if
(
GameData
.
isOver
)
{
if
(
GameData
.
audioCount
!=
0
)
{
return
;
return
;
}
}
GameData
.
questionIndex
++
;
GameData
.
questionIndex
++
;
...
@@ -450,9 +453,6 @@ cc.Class({
...
@@ -450,9 +453,6 @@ cc.Class({
if
(
GameData
.
audioCount
!=
0
)
{
if
(
GameData
.
audioCount
!=
0
)
{
return
;
return
;
}
}
if
(
GameData
.
isOver
){
return
;
}
this
.
playAudioPage
(
true
);
this
.
playAudioPage
(
true
);
}
else
if
(
button
.
node
.
name
==
'
btnLast
'
)
{
}
else
if
(
button
.
node
.
name
==
'
btnLast
'
)
{
this
.
onTurnLast
();
this
.
onTurnLast
();
...
@@ -461,9 +461,6 @@ cc.Class({
...
@@ -461,9 +461,6 @@ cc.Class({
}
else
if
(
button
.
node
.
name
==
'
btnNext
'
)
{
}
else
if
(
button
.
node
.
name
==
'
btnNext
'
)
{
this
.
onTurnNext
();
this
.
onTurnNext
();
}
else
if
(
button
.
node
.
name
==
'
btnAudio
'
)
{
}
else
if
(
button
.
node
.
name
==
'
btnAudio
'
)
{
if
(
GameData
.
isOver
){
return
;
}
this
.
onBtnClickAudio
();
this
.
onBtnClickAudio
();
}
}
},
},
...
...
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