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
c0b4c569
Commit
c0b4c569
authored
May 14, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码暂存
parent
08c0f4ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
MapBottomPart.ts
egret/src/mapScene/MapBottomPart.ts
+1
-1
MapRpeatPart.ts
egret/src/mapScene/MapRpeatPart.ts
+1
-1
MapScene.ts
egret/src/mapScene/MapScene.ts
+7
-0
No files found.
egret/src/mapScene/MapBottomPart.ts
View file @
c0b4c569
...
@@ -10,7 +10,7 @@ import { getRepeatCount } from "../startScene/StartScene";
...
@@ -10,7 +10,7 @@ import { getRepeatCount } from "../startScene/StartScene";
export
default
class
MapBottomPart
extends
ComponentBase
{
export
default
class
MapBottomPart
extends
ComponentBase
{
static
LEVEL_NUMS
=
3
;
static
LEVEL_NUMS
=
3
;
getTxt
(
i
):
eui
.
BitmapLabel
{
return
this
[
`txt
${
i
}
`
];
}
getTxt
(
i
):
eui
.
BitmapLabel
{
return
this
[
`txt
${
i
}
`
];
}
start
(
{
repeatHeight
,
topHeight
}
)
{
start
()
{
super
.
start
();
super
.
start
();
for
(
var
i
=
0
;
i
<
MapBottomPart
.
LEVEL_NUMS
;
i
++
){
for
(
var
i
=
0
;
i
<
MapBottomPart
.
LEVEL_NUMS
;
i
++
){
...
...
egret/src/mapScene/MapRpeatPart.ts
View file @
c0b4c569
...
@@ -17,7 +17,7 @@ export default class MapRpeatPart extends ComponentBase {
...
@@ -17,7 +17,7 @@ export default class MapRpeatPart extends ComponentBase {
start
()
{
start
()
{
super
.
start
();
super
.
start
();
console
.
log
(
"repeadtMap----------------start"
);
for
(
var
i
=
0
;
i
<
MapRpeatPart
.
LEVEL_NUMS
;
i
++
){
for
(
var
i
=
0
;
i
<
MapRpeatPart
.
LEVEL_NUMS
;
i
++
){
const
star
=
new
MapStarComp
();
const
star
=
new
MapStarComp
();
star
.
loadSkin
();
star
.
start
();
star
.
loadSkin
();
star
.
start
();
...
...
egret/src/mapScene/MapScene.ts
View file @
c0b4c569
...
@@ -379,12 +379,19 @@ export default class MapScene extends Scene {
...
@@ -379,12 +379,19 @@ export default class MapScene extends Scene {
this
.
_data
=
data
;
this
.
_data
=
data
;
this
.
maptoppart
=
new
MapTopPart
();
this
.
maptoppart
=
new
MapTopPart
();
this
.
maptoppart
.
loadSkin
();
this
.
maptoppart
.
loadSkin
();
this
.
maptoppart
.
start
();
this
.
onemapreppart
=
new
MapRpeatPart
();
this
.
onemapreppart
=
new
MapRpeatPart
();
this
.
onemapreppart
.
loadSkin
();
this
.
onemapreppart
.
loadSkin
();
this
.
onemapreppart
.
start
();
this
.
twomapreppart
=
new
MapRpeatPart
();
this
.
twomapreppart
=
new
MapRpeatPart
();
this
.
twomapreppart
.
loadSkin
();
this
.
twomapreppart
.
loadSkin
();
this
.
twomapreppart
.
start
();
this
.
mapbotpart
=
new
MapBottomPart
();
this
.
mapbotpart
=
new
MapBottomPart
();
this
.
mapbotpart
.
loadSkin
();
this
.
mapbotpart
.
loadSkin
();
this
.
mapbotpart
.
start
();
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
initMapScene
,
this
);
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
initMapScene
,
this
);
}
}
...
...
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