Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JJ_Game_01
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
JJ_Game_01
Commits
9aecdded
Commit
9aecdded
authored
Dec 27, 2023
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
772f6373
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
JJ_Game_01.js
assets/JJ_Game_01/script/JJ_Game_01.js
+30
-1
No files found.
assets/JJ_Game_01/script/JJ_Game_01.js
View file @
9aecdded
...
...
@@ -327,6 +327,9 @@ cc.Class({
cc
.
tween
(
this
)
.
delay
(
0.3
)
.
call
(()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
this
.
showPenguin
();
})
.
start
();
...
...
@@ -428,6 +431,9 @@ cc.Class({
cc
.
tween
(
this
)
.
delay
(
0.3
)
.
call
(()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
this
.
showOnePenguin
();
})
.
start
();
...
...
@@ -567,6 +573,9 @@ cc.Class({
cc
.
tween
(
this
)
.
delay
(
1
)
.
call
(()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
this
.
showOnePenguin
();
})
.
start
();
...
...
@@ -656,6 +665,9 @@ cc.Class({
.
delay
(
0.6
)
.
to
(
0.8
,
{
scale
:
0
},
{
easing
:
'
quadOut
'
})
.
call
(()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
this
.
checkGameEnd
();
})
.
start
();
...
...
@@ -696,6 +708,9 @@ cc.Class({
}
await
asyncDelay
(
1
);
if
(
this
.
isDestroy
)
{
return
;
}
this
.
initCurGroup
();
...
...
@@ -710,6 +725,9 @@ cc.Class({
cc
.
tween
(
this
)
.
delay
(
0.2
)
.
call
(()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
onHomeworkFinish
();
this
.
showRestartBtn
();
})
...
...
@@ -870,10 +888,16 @@ cc.Class({
.
to
(
moveTime
,
{
y
:
120
},
{
easing
:
'
quadInOut
'
})
.
delay
(
standTime
)
.
call
(()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
hidePanel
();
})
.
to
(
moveTime
,
{
y
:
downY
},
{
easing
:
'
quadInOut
'
})
.
call
(()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
penguin
.
active
=
false
;
penguin
.
penguin
.
active
=
true
;
penguin
.
wrong
.
active
=
false
;
...
...
@@ -892,7 +916,9 @@ cc.Class({
cc
.
tween
(
this
)
.
delay
(
nextTime
)
.
call
(()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
if
(
!
this
.
isRightDuration
)
{
this
.
showOnePenguin
();
}
...
...
@@ -1504,5 +1530,8 @@ cc.Class({
});
},
onDestroy
()
{
this
.
isDestroy
=
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