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
bef7ac56
Commit
bef7ac56
authored
Sep 04, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b6fcd9a7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
32 deletions
+5
-32
MapScene.ts
egret/src/mapScene/MapScene.ts
+3
-1
home.json
mock/happyclear/home.json
+1
-30
openTreasureBox.json
mock/happyclear/openTreasureBox.json
+1
-1
No files found.
egret/src/mapScene/MapScene.ts
View file @
bef7ac56
...
...
@@ -298,8 +298,10 @@ export default class MapScene extends Scene {
const
data
=
getHomeData
();
if
(
data
.
canReceiveTreasureBoxNum
>
0
)
{
this
[
'boxLayer'
].
visible
=
true
;
this
.
_mc
=
await
loadSvga
(
getResPath
()
+
'resource/assets/svgas/box.svga'
,
this
[
'boxani'
]);
if
(
!
this
.
_mc
)
this
.
_mc
=
await
loadSvga
(
getResPath
()
+
'resource/assets/svgas/box.svga'
,
this
[
'boxani'
]);
this
.
_mc
.
stop
();
this
.
_mc
.
gotoAndStop
(
1
);
this
.
_mc
.
anchorOffsetX
=
750
/
2
;
this
.
_mc
.
anchorOffsetY
=
500
+
50
+
30
;
this
.
_mc
.
x
=
750
/
2
;
...
...
mock/happyclear/home.json
View file @
bef7ac56
{
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1566885811031
,
"data"
:
{
"wealth"
:
7960
,
"totalStars"
:
145
,
"levels"
:
[
],
"remainProp"
:
[
{
"type"
:
2
,
"num"
:
0
},
{
"type"
:
3
,
"num"
:
0
},
{
"type"
:
4
,
"num"
:
0
}
],
"remainEnargy"
:
10
,
"askForEnergy"
:
false
,
"canReceiveTreasureBoxNum"
:
10
,
"nextRangeStarsNum"
:
150
}
}
\ No newline at end of file
{
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1567567005110
,
"data"
:{
"wealth"
:
30
,
"totalStars"
:
32
,
"levels"
:[{
"levelNum"
:
1
,
"maxScore"
:
42120
,
"stars"
:
3
},{
"levelNum"
:
2
,
"maxScore"
:
15130
,
"stars"
:
3
},{
"levelNum"
:
3
,
"maxScore"
:
25840
,
"stars"
:
3
},{
"levelNum"
:
4
,
"maxScore"
:
32830
,
"stars"
:
3
},{
"levelNum"
:
5
,
"maxScore"
:
19050
,
"stars"
:
3
},{
"levelNum"
:
6
,
"maxScore"
:
37200
,
"stars"
:
3
},{
"levelNum"
:
7
,
"maxScore"
:
54670
,
"stars"
:
3
},{
"levelNum"
:
8
,
"maxScore"
:
14180
,
"stars"
:
2
},{
"levelNum"
:
9
,
"maxScore"
:
80250
,
"stars"
:
3
},{
"levelNum"
:
10
,
"maxScore"
:
23690
,
"stars"
:
3
},{
"levelNum"
:
11
,
"maxScore"
:
13130
,
"stars"
:
3
}],
"remainProp"
:[],
"remainEnargy"
:
5
,
"askForEnergy"
:
false
,
"canReceiveTreasureBoxNum"
:
2
,
"nextRangeStarsNum"
:
10
}}
\ No newline at end of file
mock/happyclear/openTreasureBox.json
View file @
bef7ac56
...
...
@@ -4,7 +4,7 @@
"desc"
:
"OK"
,
"timestamp"
:
1566558623308
,
"data"
:
{
"canReceiveTreasureBoxNum"
:
0
,
"canReceiveTreasureBoxNum"
:
99
,
"nextRangeStarsNum"
:
25
,
"orderNum"
:
"1078836456709300393"
,
"totalStars"
:
12
...
...
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