Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dc_ns08
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
dc_ns08
Commits
69be4f1e
Commit
69be4f1e
authored
Mar 21, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
4bf16588
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
14 deletions
+3
-14
dc_ns08.js
assets/dc_ns08/scene/dc_ns08.js
+3
-14
No files found.
assets/dc_ns08/scene/dc_ns08.js
View file @
69be4f1e
...
...
@@ -286,8 +286,6 @@ cc.Class({
this
.
_flyswatter
.
y
=
pos
.
y
;
this
.
_touched
=
false
;
playDragonBoneAnimation
(
this
.
_flyswatter
.
children
[
0
],
'
normal
'
);
let
astr
=
this
.
flyVirus
[
i
].
_text
.
string
;
let
isRight
=
this
.
flyVirus
[
i
].
_isRight
;
item
.
_dizzy_ani
=
cc
.
tween
(
this
.
_flyswatter
)
//.delay(0.2)
.
call
(()
=>
{
...
...
@@ -301,11 +299,9 @@ cc.Class({
console
.
log
(
this
.
_correct_index
+
"
->
"
+
i
);
if
(
i
!=
this
.
_correct_index
)
{
console
.
log
(
'
hit err
'
);
this
.
sendAnswer
(
astr
);
this
.
fallCare
(
false
);
}
else
{
console
.
log
(
'
hit ok
'
);
this
.
sendAnswer
(
astr
,
true
);
this
.
fallCare
(
true
);
}
})
...
...
@@ -391,7 +387,6 @@ cc.Class({
.
to
(
this
.
_current_time
,
{
x
:
0
})
.
call
(()
=>
{
this
.
flyOut
();
this
.
sendAnswer
();
})
.
start
();
...
...
@@ -628,15 +623,9 @@ cc.Class({
gameEnd
()
{
if
(
window
&&
window
.
courseware
)
{
window
.
courseware
.
gameEnd
();
}
},
sendAnswer
(
answer
=
""
,
isRight
=
false
)
{
console
.
log
(
this
.
_aiexerciseid
,
answer
,
isRight
,
this
.
_startTime
);
// alert(answer);
if
(
window
&&
window
.
courseware
)
{
window
.
courseware
.
sendAnswer
(
this
.
_aiexerciseid
,
answer
,
isRight
,
this
.
_startTime
);
// 游戏结束
// TODO 上报成绩
window
.
courseware
.
nextPage
();
}
},
...
...
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