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
f09b2dae
Commit
f09b2dae
authored
May 19, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地图优化暂存
parent
41b020e6
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
201 additions
and
121 deletions
+201
-121
index.html
egret/index.html
+1
-1
StarSkin.exml
egret/resource/skins/StarSkin.exml
+1
-1
MapBottomPart.ts
egret/src/mapScene/MapBottomPart.ts
+2
-1
MapRpeatPart.ts
egret/src/mapScene/MapRpeatPart.ts
+3
-1
MapScene.ts
egret/src/mapScene/MapScene.ts
+154
-115
MapStarComp.ts
egret/src/mapScene/MapStarComp.ts
+2
-0
MapTopPart.ts
egret/src/mapScene/MapTopPart.ts
+2
-1
home.json
mock/happyclear/home.json
+36
-1
No files found.
egret/index.html
View file @
f09b2dae
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
window
[
'imgver'
]
=
'11112'
;
window
[
'imgver'
]
=
'11112'
;
//top 8 ,repeat 22 , bottom 3
//top 8 ,repeat 22 , bottom 3
window
[
'total_level'
]
=
8
+
3
+
22
*
33
;
window
[
'total_level'
]
=
8
+
3
+
22
*
33
;
window
[
'last_level'
]
=
7
25
;
window
[
'last_level'
]
=
7
37
;
var
sharePic
=
document
.
getElementById
(
'pic'
);
var
sharePic
=
document
.
getElementById
(
'pic'
);
sharePic
.
onclick
=
function
()
{
sharePic
.
onclick
=
function
()
{
...
...
egret/resource/skins/StarSkin.exml
View file @
f09b2dae
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"StarSkin"
width=
"76"
height=
"31"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
class=
"StarSkin"
width=
"76"
height=
"31"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
source=
"无星星_png"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
<e:Image
source=
"无星星_png"
horizontalCenter=
"0"
verticalCenter=
"0"
touchEnabled=
"false"
/>
<e:Image
id=
"star1"
source=
"有星星_png"
horizontalCenter=
"0"
verticalCenter=
"0"
visible=
"false"
/>
<e:Image
id=
"star1"
source=
"有星星_png"
horizontalCenter=
"0"
verticalCenter=
"0"
visible=
"false"
/>
<e:Image
id=
"star2"
source=
"有星星2_png"
horizontalCenter=
"0"
verticalCenter=
"0"
visible=
"false"
/>
<e:Image
id=
"star2"
source=
"有星星2_png"
horizontalCenter=
"0"
verticalCenter=
"0"
visible=
"false"
/>
<e:Image
id=
"star3"
source=
"有星星3_png"
horizontalCenter=
"0"
verticalCenter=
"0"
visible=
"false"
/>
<e:Image
id=
"star3"
source=
"有星星3_png"
horizontalCenter=
"0"
verticalCenter=
"0"
visible=
"false"
/>
...
...
egret/src/mapScene/MapBottomPart.ts
View file @
f09b2dae
...
@@ -17,12 +17,13 @@ export default class MapBottomPart extends ComponentBase {
...
@@ -17,12 +17,13 @@ export default class MapBottomPart extends ComponentBase {
const
star
=
new
MapStarComp
();
const
star
=
new
MapStarComp
();
star
.
loadSkin
();
star
.
start
();
star
.
loadSkin
();
star
.
start
();
const
icon
=
this
.
getIcon
(
i
);
const
icon
=
this
.
getIcon
(
i
);
icon
.
addChild
(
star
);
icon
.
show
=
()
=>
{
icon
.
visible
=
true
;};
icon
.
show
=
()
=>
{
icon
.
visible
=
true
;};
icon
.
hide
=
()
=>
{
icon
.
visible
=
false
;};
icon
.
hide
=
()
=>
{
icon
.
visible
=
false
;};
icon
[
'nums'
]
=
icon
.
getChildAt
(
0
);
icon
[
'nums'
]
=
icon
.
getChildAt
(
0
);
icon
[
'bmptxt'
]
=
icon
.
getChildAt
(
1
);
icon
[
'bmptxt'
]
=
icon
.
getChildAt
(
1
);
icon
.
addChildAt
(
star
,
0
);
icon
[
'starsp'
]
=
star
;
icon
[
'starsp'
]
=
star
;
icon
.
touchEnabled
=
true
;
icon
.
touchEnabled
=
true
;
...
...
egret/src/mapScene/MapRpeatPart.ts
View file @
f09b2dae
...
@@ -22,12 +22,14 @@ export default class MapRpeatPart extends ComponentBase {
...
@@ -22,12 +22,14 @@ export default class MapRpeatPart extends ComponentBase {
const
star
=
new
MapStarComp
();
const
star
=
new
MapStarComp
();
star
.
loadSkin
();
star
.
start
();
star
.
loadSkin
();
star
.
start
();
const
icon
=
this
.
getIcon
(
i
);
const
icon
=
this
.
getIcon
(
i
);
icon
.
addChild
(
star
);
icon
.
show
=
()
=>
{
icon
.
visible
=
true
;};
icon
.
show
=
()
=>
{
icon
.
visible
=
true
;};
icon
.
hide
=
()
=>
{
icon
.
visible
=
false
;};
icon
.
hide
=
()
=>
{
icon
.
visible
=
false
;};
icon
[
'nums'
]
=
icon
.
getChildAt
(
0
);
icon
[
'nums'
]
=
icon
.
getChildAt
(
0
);
icon
[
'bmptxt'
]
=
icon
.
getChildAt
(
1
);
icon
[
'bmptxt'
]
=
icon
.
getChildAt
(
1
);
icon
.
addChildAt
(
star
,
0
);
icon
[
'starsp'
]
=
star
;
icon
[
'starsp'
]
=
star
;
// icon.hide();
// icon.hide();
...
...
egret/src/mapScene/MapScene.ts
View file @
f09b2dae
This diff is collapsed.
Click to expand it.
egret/src/mapScene/MapStarComp.ts
View file @
f09b2dae
...
@@ -23,6 +23,8 @@ export default class MapStarComp extends ComponentBase {
...
@@ -23,6 +23,8 @@ export default class MapStarComp extends ComponentBase {
}
else
if
(
num
==
3
)
{
}
else
if
(
num
==
3
)
{
this
[
'star3'
].
visible
=
true
;
this
[
'star3'
].
visible
=
true
;
}
}
this
[
'star1'
].
touchEnabled
=
this
[
'star2'
].
touchEnabled
=
this
[
'star3'
].
touchEnabled
=
false
;
}
}
get
skinKey
():
string
{
get
skinKey
():
string
{
...
...
egret/src/mapScene/MapTopPart.ts
View file @
f09b2dae
...
@@ -12,12 +12,13 @@ export default class MapTopPart extends ComponentBase {
...
@@ -12,12 +12,13 @@ export default class MapTopPart extends ComponentBase {
const
star
=
new
MapStarComp
();
const
star
=
new
MapStarComp
();
star
.
loadSkin
();
star
.
start
();
star
.
loadSkin
();
star
.
start
();
const
icon
=
this
.
getIcon
(
i
);
const
icon
=
this
.
getIcon
(
i
);
icon
.
addChild
(
star
);
icon
.
show
=
()
=>
{
icon
.
visible
=
true
;};
icon
.
show
=
()
=>
{
icon
.
visible
=
true
;};
icon
.
hide
=
()
=>
{
icon
.
visible
=
false
;};
icon
.
hide
=
()
=>
{
icon
.
visible
=
false
;};
icon
[
'nums'
]
=
icon
.
getChildAt
(
0
);
icon
[
'nums'
]
=
icon
.
getChildAt
(
0
);
icon
[
'bmptxt'
]
=
icon
.
getChildAt
(
1
);
icon
[
'bmptxt'
]
=
icon
.
getChildAt
(
1
);
icon
.
addChildAt
(
star
,
0
);
icon
[
'starsp'
]
=
star
;
icon
[
'starsp'
]
=
star
;
icon
.
touchEnabled
=
true
;
icon
.
touchEnabled
=
true
;
...
...
mock/happyclear/home.json
View file @
f09b2dae
...
@@ -3617,7 +3617,7 @@
...
@@ -3617,7 +3617,7 @@
{
{
"levelNum"
:
721
,
"levelNum"
:
721
,
"maxScore"
:
47440
,
"maxScore"
:
47440
,
"stars"
:
1
"stars"
:
3
},
},
{
{
"levelNum"
:
722
,
"levelNum"
:
722
,
...
@@ -3627,7 +3627,42 @@
...
@@ -3627,7 +3627,42 @@
{
{
"levelNum"
:
723
,
"levelNum"
:
723
,
"maxScore"
:
47440
,
"maxScore"
:
47440
,
"stars"
:
3
},
{
"levelNum"
:
724
,
"maxScore"
:
47440
,
"stars"
:
2
},
{
"levelNum"
:
725
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
726
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
727
,
"maxScore"
:
47440
,
"stars"
:
3
},
{
"levelNum"
:
728
,
"maxScore"
:
47440
,
"stars"
:
1
"stars"
:
1
},
{
"levelNum"
:
729
,
"maxScore"
:
47440
,
"stars"
:
3
},
{
"levelNum"
:
730
,
"maxScore"
:
47440
,
"stars"
:
2
}
}
],
],
"remainProp"
:
[
"remainProp"
:
[
...
...
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