diff --git a/index.html b/index.html index 818a381e..e6c2633d 100644 --- a/index.html +++ b/index.html @@ -166,16 +166,16 @@
- - - - - - - - - - 此浏览器不支持HTML5 + + + + + + + + + + 此浏览器不支持HTML5
diff --git a/libs/core.js b/libs/core.js index bb01d112..148d537b 100644 --- a/libs/core.js +++ b/libs/core.js @@ -226,6 +226,11 @@ core.prototype.init = function (coreData, callback) { this._init_others(); this._initPlugins(); + // 初始化画布 + for (var name in core.canvas) { + core.canvas[name].canvas.width = core.canvas[name].canvas.height = core.__PIXELS__; + } + core.loader._load(function () { core.extensions._load(function () { core._afterLoadResources(callback);