Commit f2a90cde authored by 李维's avatar 李维

Test

parent c3ec72f8
......@@ -85,27 +85,27 @@ cc.Class({
this.data = data || this.getDefaultData();
this.data = JSON.parse(JSON.stringify(this.data));
this.preloadItem()
// this.preloadItem(_=>{
// this.gameLogic = new GameLogic(this.data, {
// designSize: this._designSize,
// frameSize: this._frameSize,
// mapScaleMin: this._mapScaleMin,
// mapScaleMax: this._mapScaleMax,
// cocosScale: this._cocosScale,
// imageResList: this._imageResList,
// audioResList: this._audioResList,
// animaResList: this._animaResList,
// prefabs: {
// bubble: this.bubble,
// star: this.star,
// score: this.score
// },
// properties: {
// option: this.option,
// empty: this.empty
// }
// })
// })
this.preloadItem(_=>{
this.gameLogic = new GameLogic(this.data, {
designSize: this._designSize,
frameSize: this._frameSize,
mapScaleMin: this._mapScaleMin,
mapScaleMax: this._mapScaleMax,
cocosScale: this._cocosScale,
imageResList: this._imageResList,
audioResList: this._audioResList,
animaResList: this._animaResList,
prefabs: {
bubble: this.bubble,
star: this.star,
score: this.score
},
properties: {
option: this.option,
empty: this.empty
}
})
})
})
},
......
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