Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
babycare_xiaoxiao
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
翁阳
babycare_xiaoxiao
Commits
477b5530
Commit
477b5530
authored
Oct 12, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Plain Diff
1
parents
286990ea
ff6739b6
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1828 additions
and
526 deletions
+1828
-526
workspace.xml
.idea/workspace.xml
+72
-6
babycare.getGameInfo.json
mock/miniTb/babycare.getGameInfo.json
+435
-333
babycare.getIndex.json
mock/miniTb/babycare.getIndex.json
+1319
-187
MapScene.ts
src/scene/map/MapScene.ts
+2
-0
No files found.
.idea/workspace.xml
View file @
477b5530
This diff is collapsed.
Click to expand it.
mock/miniTb/babycare.getGameInfo.json
View file @
477b5530
This diff is collapsed.
Click to expand it.
mock/miniTb/babycare.getIndex.json
View file @
477b5530
This diff is collapsed.
Click to expand it.
src/scene/map/MapScene.ts
View file @
477b5530
...
@@ -218,6 +218,7 @@ export class MapScene extends Scene {
...
@@ -218,6 +218,7 @@ export class MapScene extends Scene {
const
midData
=
arr
;
// 剩下的是中间的数据
const
midData
=
arr
;
// 剩下的是中间的数据
let
maxHeight
=
MapTop
.
HEIGHT
;
let
maxHeight
=
MapTop
.
HEIGHT
;
this
.
mapContainer
.
addChild
(
new
MapTop
(
topData
));
// 最后加,因为有个层级问题
this
.
mapContainer
.
addChild
(
new
MapTop
(
topData
));
this
.
mapContainer
.
addChild
(
new
MapTop
(
topData
));
...
@@ -234,6 +235,7 @@ export class MapScene extends Scene {
...
@@ -234,6 +235,7 @@ export class MapScene extends Scene {
bottom
.
y
=
maxHeight
;
bottom
.
y
=
maxHeight
;
maxHeight
+=
MapBottom
.
HEIGHT
;
maxHeight
+=
MapBottom
.
HEIGHT
;
// this.mapContainer.addChild(new MapTop(topData)); // 最后加,因为有个层级问题
// this.mapContainer.addChild(new MapTop(topData)); // 最后加,因为有个层级问题
this
.
scrollPage
.
maxDistance
=
maxHeight
;
this
.
scrollPage
.
maxDistance
=
maxHeight
;
...
...
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