Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
wildfirecode13
xiaoxiaole
Commits
b31c0c6e
Commit
b31c0c6e
authored
Sep 24, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
3275d414
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
MainScene.ts
egret/src/mainScene/MainScene.ts
+5
-4
No files found.
egret/src/mainScene/MainScene.ts
View file @
b31c0c6e
...
@@ -217,7 +217,8 @@ export default class MainScene extends Scene {
...
@@ -217,7 +217,8 @@ export default class MainScene extends Scene {
this
.
chapterTxt
.
text
=
"第"
+
this
.
chapter
+
"关"
;
this
.
chapterTxt
.
text
=
"第"
+
this
.
chapter
+
"关"
;
//关卡数据,1期定制,70,后面35关地图一致,步数减少
//关卡数据,1期定制,70,后面35关地图一致,步数减少
var
mapDataIndex
=
this
.
chapter
;
var
mapDataIndex
=
this
.
chapter
;
if
(
this
.
chapter
>=
56
)
{
//56到70的话,中间36到50
if
(
this
.
chapter
>=
56
&&
this
.
chapter
<=
70
)
{
//循环36到50
//循环36到50
mapDataIndex
=
this
.
chapter
-
20
mapDataIndex
=
this
.
chapter
-
20
}
}
...
@@ -233,8 +234,8 @@ export default class MainScene extends Scene {
...
@@ -233,8 +234,8 @@ export default class MainScene extends Scene {
NetManager
.
ins
.
showLog
(
getlogItem
(
10
))
NetManager
.
ins
.
showLog
(
getlogItem
(
10
))
NetManager
.
ins
.
showLog
(
getlogItem
(
13
))
NetManager
.
ins
.
showLog
(
getlogItem
(
13
))
//步数初始化,1期定制,
//步数初始化,1期定制,
56到70的话
if
(
this
.
chapter
>=
56
)
{
if
(
this
.
chapter
>=
56
&&
this
.
chapter
<=
70
)
{
this
.
steps
=
this
.
chapterData
.
stepCount
-
4
;
this
.
steps
=
this
.
chapterData
.
stepCount
-
4
;
}
}
else
{
else
{
...
@@ -2373,7 +2374,7 @@ export default class MainScene extends Scene {
...
@@ -2373,7 +2374,7 @@ export default class MainScene extends Scene {
Loading2
.
instace
.
show
();
Loading2
.
instace
.
show
();
NetManager
.
ins
.
hc_submit
((
s
,
data
)
=>
{
NetManager
.
ins
.
hc_submit
((
s
,
data
)
=>
{
if
(
s
)
{
if
(
s
)
{
wait
(
200
).
then
(()
=>
{
wait
(
200
).
then
(()
=>
{
updateMainTimerAfterGetData
();
//submit之后再判断一次home,更新倒计时
updateMainTimerAfterGetData
();
//submit之后再判断一次home,更新倒计时
});
});
const
submitData
=
DataManager
.
ins
.
getData
(
'hc_submit'
).
data
;
const
submitData
=
DataManager
.
ins
.
getData
(
'hc_submit'
).
data
;
...
...
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