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
eb5541d2
Commit
eb5541d2
authored
Sep 27, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e7ba6005
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
232 additions
and
35 deletions
+232
-35
index.html
egret/index.html
+3
-2
MapScene.ts
egret/src/mapScene/MapScene.ts
+1
-22
home.json
mock/happyclear/home.json
+227
-10
getSignInfo.json
mock/sign/getSignInfo.json
+1
-1
No files found.
egret/index.html
View file @
eb5541d2
...
@@ -49,8 +49,9 @@
...
@@ -49,8 +49,9 @@
<img
id=
"pic"
style=
"width:100%;position: absolute;z-index: 999;display: none;"
/>
<img
id=
"pic"
style=
"width:100%;position: absolute;z-index: 999;display: none;"
/>
<script>
<script>
// localStorage.clear();
// localStorage.clear();
window
[
'total_level'
]
=
18
+
13
*
4
;
window
[
'total_level'
]
=
18
+
13
*
5
;
window
[
'last_level'
]
=
69
;
//必须大于等于total_level
window
[
'last_level'
]
=
80
;
//必须大于等于total_level
// localStorage.clear();
// localStorage.clear();
var
sharePic
=
document
.
getElementById
(
'pic'
);
var
sharePic
=
document
.
getElementById
(
'pic'
);
...
...
egret/src/mapScene/MapScene.ts
View file @
eb5541d2
...
@@ -37,14 +37,6 @@ export default class MapScene extends Scene {
...
@@ -37,14 +37,6 @@ export default class MapScene extends Scene {
const
{
signInfoVO
}
=
DataManager
.
ins
.
getData
(
'getSignInfo'
);
const
{
signInfoVO
}
=
DataManager
.
ins
.
getData
(
'getSignInfo'
);
if
(
signInfoVO
.
continueDay
>=
7
)
return
;
if
(
signInfoVO
.
continueDay
>=
7
)
return
;
// const date = new Date();
// date.setHours(0, 0, 0, 0);
// const nowTimerStr = date.getTime() + '';
// const oldTimerStr = localStorage.getItem('nowTimerStr' + window['CFG'].consumerId);
// if (oldTimerStr != nowTimerStr) {
// localStorage.setItem('nowTimerStr' + window['CFG'].consumerId, nowTimerStr);
// PanelCtrl.instance.show('sign');
// }
if
(
signInfoVO
.
todaySigned
==
0
){
if
(
signInfoVO
.
todaySigned
==
0
){
PanelCtrl
.
instance
.
show
(
'sign'
);
PanelCtrl
.
instance
.
show
(
'sign'
);
}
}
...
@@ -65,19 +57,6 @@ export default class MapScene extends Scene {
...
@@ -65,19 +57,6 @@ export default class MapScene extends Scene {
this
.
initSound
();
this
.
initSound
();
// setTimeout(function() {
// PanelCtrl.instance.show('sign')
// }, 1000);
// window['gameover'] = ()=>{
// NetManager.ins.hc_submit(() => { }, 1, 1, null, '');
// NetManager.ins.getPlugOrderStatus(() => { }, 1, () => { return false })
// // setTimeout(() => {
// PanelCtrl.instance.show('failed', { level: 1 })
// // }, 2000);
// }
this
.
_data
=
data
;
this
.
_data
=
data
;
//滚动的背景变黑
//滚动的背景变黑
this
[
'rectbg'
].
height
=
this
.
stage
.
stageHeight
;
this
[
'rectbg'
].
height
=
this
.
stage
.
stageHeight
;
...
@@ -189,7 +168,7 @@ export default class MapScene extends Scene {
...
@@ -189,7 +168,7 @@ export default class MapScene extends Scene {
return
this
.
getScrollV1
(
lastOrder
,
stageHeight
);
return
this
.
getScrollV1
(
lastOrder
,
stageHeight
);
}
}
if
(
lastOrder
>=
60
)
{
//底部的60-70关
if
(
lastOrder
>=
window
[
'total_level'
]
-
10
)
{
//底部的60-70关 70-10
return
this
.
getScrollV2
(
lastOrder
,
stageHeight
);
return
this
.
getScrollV2
(
lastOrder
,
stageHeight
);
}
}
//中部的4个循环*13 8~59
//中部的4个循环*13 8~59
...
...
mock/happyclear/home.json
View file @
eb5541d2
...
@@ -2,11 +2,8 @@
...
@@ -2,11 +2,8 @@
"success"
:
true
,
"success"
:
true
,
"code"
:
"0000000000"
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"desc"
:
"OK"
,
"timestamp"
:
15668858110
0
1
,
"timestamp"
:
15668858110
3
1
,
"data"
:
{
"data"
:
{
"refectionCountdown"
:
10
,
"remainEnargy"
:
5
,
"isGetAllTreasureBox"
:
0
,
"wealth"
:
7960
,
"wealth"
:
7960
,
"totalStars"
:
145
,
"totalStars"
:
145
,
"levels"
:
[
"levels"
:
[
...
@@ -139,25 +136,245 @@
...
@@ -139,25 +136,245 @@
"levelNum"
:
26
,
"levelNum"
:
26
,
"maxScore"
:
99999
,
"maxScore"
:
99999
,
"stars"
:
3
"stars"
:
3
},
{
"levelNum"
:
27
,
"maxScore"
:
44540
,
"stars"
:
2
},
{
"levelNum"
:
28
,
"maxScore"
:
112230
,
"stars"
:
3
},
{
"levelNum"
:
29
,
"maxScore"
:
67810
,
"stars"
:
3
},
{
"levelNum"
:
30
,
"maxScore"
:
43530
,
"stars"
:
2
},
{
"levelNum"
:
31
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
32
,
"maxScore"
:
18450
,
"stars"
:
1
},
{
"levelNum"
:
33
,
"maxScore"
:
28560
,
"stars"
:
1
},
{
"levelNum"
:
34
,
"maxScore"
:
99999
,
"stars"
:
1
},
{
"levelNum"
:
35
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
36
,
"maxScore"
:
14860
,
"stars"
:
0
},
{
"levelNum"
:
37
,
"maxScore"
:
22300
,
"stars"
:
0
},
{
"levelNum"
:
38
,
"maxScore"
:
43380
,
"stars"
:
3
},
{
"levelNum"
:
39
,
"maxScore"
:
27610
,
"stars"
:
0
},
{
"levelNum"
:
40
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
41
,
"maxScore"
:
30890
,
"stars"
:
2
},
{
"levelNum"
:
42
,
"maxScore"
:
15660
,
"stars"
:
3
},
{
"levelNum"
:
43
,
"maxScore"
:
48170
,
"stars"
:
1
},
{
"levelNum"
:
44
,
"maxScore"
:
18080
,
"stars"
:
1
},
{
"levelNum"
:
45
,
"maxScore"
:
29170
,
"stars"
:
1
},
{
"levelNum"
:
46
,
"maxScore"
:
37980
,
"stars"
:
1
},
{
"levelNum"
:
47
,
"maxScore"
:
37800
,
"stars"
:
3
},
{
"levelNum"
:
48
,
"maxScore"
:
19950
,
"stars"
:
1
},
{
"levelNum"
:
49
,
"maxScore"
:
36190
,
"stars"
:
0
},
{
"levelNum"
:
50
,
"maxScore"
:
42610
,
"stars"
:
2
},
{
"levelNum"
:
51
,
"maxScore"
:
34300
,
"stars"
:
1
},
{
"levelNum"
:
52
,
"maxScore"
:
31650
,
"stars"
:
3
},
{
"levelNum"
:
53
,
"maxScore"
:
5140
,
"stars"
:
0
},
{
"levelNum"
:
54
,
"maxScore"
:
49630
,
"stars"
:
3
},
{
"levelNum"
:
55
,
"maxScore"
:
99999
,
"stars"
:
1
},
{
"levelNum"
:
56
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
57
,
"maxScore"
:
34090
,
"stars"
:
2
},
{
"levelNum"
:
58
,
"maxScore"
:
13030
,
"stars"
:
3
},
{
"levelNum"
:
59
,
"maxScore"
:
72760
,
"stars"
:
1
},
{
"levelNum"
:
60
,
"maxScore"
:
16250
,
"stars"
:
1
},
{
"levelNum"
:
61
,
"maxScore"
:
81870
,
"stars"
:
3
},
{
"levelNum"
:
62
,
"maxScore"
:
36110
,
"stars"
:
1
},
{
"levelNum"
:
63
,
"maxScore"
:
28240
,
"stars"
:
3
},
{
"levelNum"
:
64
,
"maxScore"
:
23910
,
"stars"
:
1
},
{
"levelNum"
:
65
,
"maxScore"
:
47990
,
"stars"
:
1
},
{
"levelNum"
:
66
,
"maxScore"
:
60740
,
"stars"
:
3
},
{
"levelNum"
:
67
,
"maxScore"
:
33670
,
"stars"
:
1
},
{
"levelNum"
:
68
,
"maxScore"
:
25370
,
"stars"
:
3
},
{
"levelNum"
:
69
,
"maxScore"
:
11650
,
"stars"
:
0
},
{
"levelNum"
:
70
,
"maxScore"
:
15910
,
"stars"
:
1
}
}
],
],
"remainProp"
:
[
"remainProp"
:
[
{
{
"type"
:
2
,
"type"
:
2
,
"num"
:
1
0
"num"
:
0
},
},
{
{
"type"
:
3
,
"type"
:
3
,
"num"
:
1
0
"num"
:
0
},
},
{
{
"type"
:
4
,
"type"
:
4
,
"num"
:
1
0
"num"
:
0
}
}
],
],
"remainEnargy"
:
9979
,
"askForEnergy"
:
tru
e
,
"askForEnergy"
:
fals
e
,
"canReceiveTreasureBoxNum"
:
1
0
,
"canReceiveTreasureBoxNum"
:
0
,
"nextRangeStarsNum"
:
150
"nextRangeStarsNum"
:
150
}
}
}
}
\ No newline at end of file
mock/sign/getSignInfo.json
View file @
eb5541d2
...
@@ -2,6 +2,6 @@
...
@@ -2,6 +2,6 @@
"success"
:
true
,
"success"
:
true
,
"signInfoVO"
:
{
"signInfoVO"
:
{
"continueDay"
:
6
,
"continueDay"
:
6
,
"todaySigned"
:
0
"todaySigned"
:
1
}
}
}
}
\ No newline at end of file
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