Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dfzx_ac2
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
dfzx_ac2
Commits
5dca3eff
Commit
5dca3eff
authored
Mar 23, 2021
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix
parent
28a68d4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
GameLogic.js
play/assets/tmpGame/script/GameLogic.js
+8
-0
No files found.
play/assets/tmpGame/script/GameLogic.js
View file @
5dca3eff
...
@@ -117,6 +117,7 @@ export default class GameLogic {
...
@@ -117,6 +117,7 @@ export default class GameLogic {
if
(
!
this
.
g_enableClick
)
{
if
(
!
this
.
g_enableClick
)
{
return
return
}
}
this
.
g_cartoon
.
playAudio
(
"
按钮
"
);
this
.
g_cartoon
.
tweenChange
(
btn_restart
.
node
,
{
scaleX
:
0
,
scaleY
:
0
},
0.2
,
_
=>
{
this
.
g_cartoon
.
tweenChange
(
btn_restart
.
node
,
{
scaleX
:
0
,
scaleY
:
0
},
0.2
,
_
=>
{
this
.
enableClick
(
"
Restart
"
)
this
.
enableClick
(
"
Restart
"
)
this
.
restartGame
();
this
.
restartGame
();
...
@@ -128,6 +129,7 @@ export default class GameLogic {
...
@@ -128,6 +129,7 @@ export default class GameLogic {
if
(
!
this
.
g_enableClick
)
{
if
(
!
this
.
g_enableClick
)
{
return
return
}
}
this
.
g_cartoon
.
playAudio
(
"
按钮
"
);
this
.
g_cartoon
.
tweenChange
(
btn_start
.
node
,
{
scaleX
:
0
,
scaleY
:
0
},
0.2
,
_
=>
{
this
.
g_cartoon
.
tweenChange
(
btn_start
.
node
,
{
scaleX
:
0
,
scaleY
:
0
},
0.2
,
_
=>
{
this
.
enableClick
(
"
start
"
)
this
.
enableClick
(
"
start
"
)
if
(
this
.
nextQuestion
())
{
if
(
this
.
nextQuestion
())
{
...
@@ -766,6 +768,12 @@ export default class GameLogic {
...
@@ -766,6 +768,12 @@ export default class GameLogic {
}
}
showStar
(
currentStarIdx
,
callback
)
{
showStar
(
currentStarIdx
,
callback
)
{
if
(
this
.
g_formData
.
dataArray
.
length
==
0
)
{
if
(
callback
)
{
callback
()
}
return
}
if
(
!
currentStarIdx
)
{
if
(
!
currentStarIdx
)
{
currentStarIdx
=
0
;
currentStarIdx
=
0
;
}
}
...
...
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