Commit 964c064b authored by 范雪寒's avatar 范雪寒

feat: scene 的 size 不能为0

parent f621615d
...@@ -49,6 +49,9 @@ cc.Class({ ...@@ -49,6 +49,9 @@ cc.Class({
sy = frameSize.height / this._designSize.height; sy = frameSize.height / this._designSize.height;
this._mapScaleMin = Math.min(sx, sy) * this._cocosScale; this._mapScaleMin = Math.min(sx, sy) * this._cocosScale;
this._mapScaleMax = Math.max(sx, sy) * this._cocosScale; this._mapScaleMax = Math.max(sx, sy) * this._cocosScale;
cc.director._scene.width = frameSize.width;
cc.director._scene.height = frameSize.height;
}, },
......
...@@ -29,4 +29,6 @@ files.forEach(fileName => { ...@@ -29,4 +29,6 @@ files.forEach(fileName => {
if (!same) { if (!same) {
throw (`bundle文件夹名称(${folderName})与scene名称不相同`); throw (`bundle文件夹名称(${folderName})与scene名称不相同`);
} }
\ No newline at end of file
// 'caller', 'callee', and 'arguments'
\ No newline at end of file
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