Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JJ_Game_11
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_11
Commits
e3615e7f
Commit
e3615e7f
authored
Dec 28, 2023
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
d1cbf2c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
JJ_Game_11.js
assets/JJ_Game_11/script/JJ_Game_11.js
+13
-14
No files found.
assets/JJ_Game_11/script/JJ_Game_11.js
View file @
e3615e7f
...
...
@@ -429,6 +429,9 @@ cc.Class({
cc
.
tween
({})
.
delay
(
1
)
.
call
(()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
if
(
window
&&
window
.
courseware
&&
this
.
isTeacher
)
{
window
.
courseware
.
nextPage
();
}
...
...
@@ -682,6 +685,9 @@ cc.Class({
cc
.
tween
(
this
.
bgLayer
)
.
to
(
1
,
{
x
:
-
this
.
curPageIndex
*
this
.
canvasWidth
},
{
easing
:
"
cubicOut
"
})
.
call
(()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
this
.
canTouch
=
true
;
this
.
refreshPageLabel
();
})
...
...
@@ -705,20 +711,13 @@ cc.Class({
}
playAudioByUrl
(
audioUrl
);
},
onDestroy
()
{
this
.
isDestroy
=
true
;
}
// if (!this.curAudio) {
// this.curAudio = audio;
// this.curAudio.addEventListener('ended', () => {
// console.log('ended');
// this.onPageAudioOver();
// this.curAudio = null;
// });
// }
// audio.play();
// this.audioBtn.init(this.images.get('btn_stop'));
},
// pausePageAudio() {
// this.curAudio.pause();
// this.audioBtn.init(this.images.get('btn_play'));
...
...
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