Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
op_09
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
op_09
Commits
8bb814cc
Commit
8bb814cc
authored
Sep 18, 2021
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: onHomeworkFinish
parent
a0a06131
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
op_09.js
play/assets/op_09/scene/op_09.js
+2
-11
No files found.
play/assets/op_09/scene/op_09.js
View file @
8bb814cc
...
@@ -161,17 +161,6 @@ cc.Class({
...
@@ -161,17 +161,6 @@ cc.Class({
const
canvasWidth
=
cc
.
find
(
'
Canvas
'
).
width
;
const
canvasWidth
=
cc
.
find
(
'
Canvas
'
).
width
;
const
canvasHeight
=
cc
.
find
(
'
Canvas
'
).
height
;
const
canvasHeight
=
cc
.
find
(
'
Canvas
'
).
height
;
console
.
log
(
'
canvasWidth =
'
+
canvasWidth
);
console
.
log
(
'
canvasHeight =
'
+
canvasHeight
);
let
monster
=
100
;
let
hero
=
100
;
setInterval
(()
=>
{
monster
=
monster
*
1.05
;
hero
=
hero
+
5
;
console
.
log
(
Math
.
round
(
monster
*
100
)
/
100
);
console
.
log
(
Math
.
round
(
hero
*
100
)
/
100
);
},
1000
);
},
},
jumpToQuestion
(
questionIdx
)
{
jumpToQuestion
(
questionIdx
)
{
...
@@ -381,6 +370,8 @@ cc.Class({
...
@@ -381,6 +370,8 @@ cc.Class({
},
},
showNextBtn
()
{
showNextBtn
()
{
onHomeworkFinish
();
const
btnNext
=
cc
.
find
(
'
Canvas/bg/btnNext
'
);
const
btnNext
=
cc
.
find
(
'
Canvas/bg/btnNext
'
);
btnNext
.
active
=
true
;
btnNext
.
active
=
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