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
7975580d
Commit
7975580d
authored
Sep 27, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主页
parent
6cbefe4f
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
151 deletions
+30
-151
workspace.xml
.idea/workspace.xml
+15
-136
popmartXXL2c.getActivityBaseInfoById.json
mock/miniTb/popmartXXL2c.getActivityBaseInfoById.json
+1
-1
map_star_disable.png
resource/map/map_star_disable.png
+0
-0
map_star_enable.png
resource/map/map_star_enable.png
+0
-0
CheckBtn.ts
src/scene/map/CheckBtn.ts
+3
-3
MapScene.ts
src/scene/map/MapScene.ts
+5
-5
MapTop.ts
src/scene/map/MapTop.ts
+6
-6
No files found.
.idea/workspace.xml
View file @
7975580d
This diff is collapsed.
Click to expand it.
mock/miniTb/popmartXXL2c.getActivityBaseInfoById.json
View file @
7975580d
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
"message"
:
"nisi amet sunt Lorem"
,
"message"
:
"nisi amet sunt Lorem"
,
"data"
:
{
"data"
:
{
"rule"
:
"测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试"
,
"rule"
:
"测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试"
,
"currentLevel"
:
120
,
"currentLevel"
:
7
,
"power"
:
101
,
"power"
:
101
,
"tools"
:
{
"tools"
:
{
"steps"
:
100
,
"steps"
:
100
,
...
...
resource/map/map_star_disable.png
View replaced file @
6cbefe4f
View file @
7975580d
2.35 KB
|
W:
|
H:
1.07 KB
|
W:
|
H:
2-up
Swipe
Onion skin
resource/map/map_star_enable.png
View replaced file @
6cbefe4f
View file @
7975580d
2.66 KB
|
W:
|
H:
1.48 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/scene/map/CheckBtn.ts
View file @
7975580d
...
@@ -142,11 +142,11 @@ export default class CheckBtn extends Container {
...
@@ -142,11 +142,11 @@ export default class CheckBtn extends Container {
// 三个星星
// 三个星星
const
star1
=
this
.
addChild
(
new
CheckStar
());
const
star1
=
this
.
addChild
(
new
CheckStar
());
star1
.
position
.
set
(
1
5
,
-
5
.5
);
star1
.
position
.
set
(
1
6.5
,
83
.5
);
const
star2
=
this
.
addChild
(
new
CheckStar
());
const
star2
=
this
.
addChild
(
new
CheckStar
());
star2
.
position
.
set
(
4
0
,
-
12
.5
);
star2
.
position
.
set
(
4
2.5
,
90
.5
);
const
star3
=
this
.
addChild
(
new
CheckStar
());
const
star3
=
this
.
addChild
(
new
CheckStar
());
star3
.
position
.
set
(
6
5
,
-
5
.5
);
star3
.
position
.
set
(
6
7.5
,
83
.5
);
this
.
star
=
[
star1
,
star2
,
star3
];
this
.
star
=
[
star1
,
star2
,
star3
];
// 关卡文字
// 关卡文字
...
...
src/scene/map/MapScene.ts
View file @
7975580d
...
@@ -29,7 +29,7 @@ export class MapScene extends Scene {
...
@@ -29,7 +29,7 @@ export class MapScene extends Scene {
private
uiLayer
:
MapUI
=
null
;
private
uiLayer
:
MapUI
=
null
;
//
private mapAvatar: MapAvatar = null;
private
mapAvatar
:
MapAvatar
=
null
;
public
get
groupNames
():
string
[]
{
public
get
groupNames
():
string
[]
{
return
[
return
[
...
@@ -91,7 +91,7 @@ export class MapScene extends Scene {
...
@@ -91,7 +91,7 @@ export class MapScene extends Scene {
guide_check
.
enabled
=
true
;
guide_check
.
enabled
=
true
;
guide_check
.
type
=
CHECK_TYPE
.
CUR
;
guide_check
.
type
=
CHECK_TYPE
.
CUR
;
guide_check
.
position
.
set
(
MapScene
.
checkArr
[
1
].
x
,
MapScene
.
checkArr
[
1
].
y
);
guide_check
.
position
.
set
(
MapScene
.
checkArr
[
1
].
x
,
MapScene
.
checkArr
[
1
].
y
);
//
guide_check.addChild(new MapAvatar());
guide_check
.
addChild
(
new
MapAvatar
());
const
guide_hand
=
guide
.
addChild
(
Tools
.
getSprite
(
'guide_hand.png'
));
const
guide_hand
=
guide
.
addChild
(
Tools
.
getSprite
(
'guide_hand.png'
));
guide_hand
.
position
.
set
(
guide_check
.
x
+
90
,
guide_check
.
y
+
40
);
guide_hand
.
position
.
set
(
guide_check
.
x
+
90
,
guide_check
.
y
+
40
);
...
@@ -142,9 +142,9 @@ export class MapScene extends Scene {
...
@@ -142,9 +142,9 @@ export class MapScene extends Scene {
if
(
currentLevel
<
121
&&
currentLevel
>
0
)
{
if
(
currentLevel
<
121
&&
currentLevel
>
0
)
{
MapScene
.
checkArr
[
currentLevel
].
type
=
CHECK_TYPE
.
CUR
;
MapScene
.
checkArr
[
currentLevel
].
type
=
CHECK_TYPE
.
CUR
;
MapScene
.
checkArr
[
currentLevel
].
enabled
=
true
;
MapScene
.
checkArr
[
currentLevel
].
enabled
=
true
;
//
!this.mapAvatar && (this.mapAvatar = this.addChild(new MapAvatar()));
!
this
.
mapAvatar
&&
(
this
.
mapAvatar
=
this
.
addChild
(
new
MapAvatar
()));
//
this.mapAvatar.parent && this.mapAvatar.parent.removeChild(this.mapAvatar);
this
.
mapAvatar
.
parent
&&
this
.
mapAvatar
.
parent
.
removeChild
(
this
.
mapAvatar
);
//
MapScene.checkArr[currentLevel].addChild(this.mapAvatar);
MapScene
.
checkArr
[
currentLevel
].
addChild
(
this
.
mapAvatar
);
}
}
// 未通关的
// 未通关的
...
...
src/scene/map/MapTop.ts
View file @
7975580d
...
@@ -9,12 +9,12 @@ export default class MapTop extends MapPart {
...
@@ -9,12 +9,12 @@ export default class MapTop extends MapPart {
public
static
totalCount
=
6
;
public
static
totalCount
=
6
;
public
btnPos
=
[
public
btnPos
=
[
[
37
9
,
1133
],
[
37
4
,
1114
],
[
2
60
,
1083
],
[
2
55
,
1066
],
[
201
,
974
],
[
196
,
960
],
[
31
7
,
919
],
[
31
2
,
905
],
[
39
7
,
827
],
[
39
2
,
814
],
[
49
7
,
760
],
[
49
2
,
747
],
];
];
constructor
(
data
)
{
constructor
(
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