diff --git a/play/assets/scene/scene/scene.js b/play/assets/scene/scene/scene.js index 1f119c3175df152fda9d508cbf90ab38d788916c..3f5c564c29eb25978d1b33b7a60300de018dc81c 100644 --- a/play/assets/scene/scene/scene.js +++ b/play/assets/scene/scene/scene.js @@ -49,6 +49,9 @@ cc.Class({ sy = frameSize.height / this._designSize.height; this._mapScaleMin = Math.min(sx, sy) * this._cocosScale; this._mapScaleMax = Math.max(sx, sy) * this._cocosScale; + + cc.director._scene.width = frameSize.width; + cc.director._scene.height = frameSize.height; }, diff --git a/publish/build_check.js b/publish/build_check.js index 9c1cd8f5511b0fb2fa100dffaf52647f0648189e..5cfcc0a43454b3dde2ececbeb5324cd9daa8c423 100644 --- a/publish/build_check.js +++ b/publish/build_check.js @@ -29,4 +29,6 @@ files.forEach(fileName => { if (!same) { throw (`bundle文件夹åç§°(${folderName})与sceneåç§°ä¸ç›¸åŒ`); -} \ No newline at end of file +} + +// 'caller', 'callee', and 'arguments' \ No newline at end of file