Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP05
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
OP05
Commits
d6b6c81b
Commit
d6b6c81b
authored
Jun 20, 2022
by
Guo Yuhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://vcs.ireadabc.com/template/OP05
parents
ae56a636
5b3d11a5
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
648 additions
and
1 deletion
+648
-1
OP05.js
assets/OP05/scene/OP05.js
+16
-1
yarn.lock
yarn.lock
+632
-0
No files found.
assets/OP05/scene/OP05.js
View file @
d6b6c81b
...
...
@@ -180,10 +180,12 @@ cc.Class({
//全局游戏
_gameCode
:
null
,
resultArr
:
null
,
initData
()
{
//数据解析
GameManager
.
getIns
().
parseData
(
this
.
data
);
this
.
_gameCode
=
0
;
this
.
resultArr
=
[];
},
//单局游戏
_cantouch
:
null
,
...
...
@@ -487,7 +489,9 @@ cc.Class({
// this.playSFX("audio_finish");
// pg.view.visible(btn_picture, true);
pg
.
view
.
visible
(
btn_record
,
false
);
onHomeworkFinish
&&
onHomeworkFinish
();
console
.
log
(
'
this.resultArr:
'
,
JSON
.
stringify
(
this
.
resultArr
));
onHomeworkFinish
&&
onHomeworkFinish
({
result
:
this
.
resultArr
});
},
playPartAni
()
{
...
...
@@ -696,6 +700,7 @@ cc.Class({
},
recrodEnd
(
data
)
{
let
score
=
data
.
result
.
overall
;
this
.
_stageData
.
curScore
=
score
;
// score = (score / 100) * 40 + (100 - 40);
// score = 40;
if
(
score
>=
80
)
{
...
...
@@ -750,6 +755,9 @@ cc.Class({
nextStage
()
{
let
isOver
=
GameManager
.
getIns
().
addStage
();
//关卡标记+1
this
.
pushResultData
();
if
(
isOver
)
{
//执行总结束的内容
GameManager
.
getIns
().
setState
(
5
);
...
...
@@ -760,6 +768,13 @@ cc.Class({
}
},
pushResultData
()
{
console
.
log
(
'
in pushResultData
'
);
const
word
=
this
.
_stageData
.
word
;
const
score
=
this
.
_stageData
.
curScore
;
this
.
resultArr
.
push
(
{
word
,
score
}
);
},
...
...
yarn.lock
0 → 100644
View file @
d6b6c81b
This diff is collapsed.
Click to expand it.
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