Commit 74f1074f authored by wildfirecode13's avatar wildfirecode13

1

parent ea70bbc1
No preview for this file type
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -52,11 +52,25 @@ export default class GameView extends engine.Container {
second: this.getSecond(),
});
if(this.picturesWrapper) {
while(this.picturesWrapper.children.length > 0) {
const child = this.picturesWrapper.getChildAt(0);
if(child) {
try{
this.picturesWrapper.removeChild(child)
}catch(e) {
console.warn('移除child失败了',e)
}
}
}
}
// 图片一维数组
const result = qietu(this.picturesWrapper, props.picUrl, MAX_COL, MAX_ROW);
this.picturesWrapper.addChild(this.guideHole);
console.log(this.picturesWrapper)
console.log(this.picturesWrapper);
// this.picturesWrapper.alpha = 1
this.pictures = result[0];
this.rightList = this.pictures.concat([]);
......
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