Commit c0b4c569 authored by zjz1994's avatar zjz1994

代码暂存

parent 08c0f4ad
...@@ -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++){
......
...@@ -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();
......
...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment