From 755500f6d50b272e5a5b16f407a0b9656241935d Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Wed, 28 Jun 2023 22:50:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=A0=B7=E6=9D=BF=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E9=83=A8=E5=88=86=E5=8A=A0=E8=BD=BD=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/libs/loader.js | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/public/libs/loader.js b/public/libs/loader.js index 651f68f..f00b383 100644 --- a/public/libs/loader.js +++ b/public/libs/loader.js @@ -32,14 +32,7 @@ loader.prototype._load = function (callback) { loader.prototype._load_sync = function (callback) { this._loadAnimates_sync(); - this._loadMusic_sync(); - core.loader._loadMaterials_sync(function () { - core.loader._loadExtraImages_sync(function () { - core.loader._loadAutotiles_sync(function () { - core.loader._loadTilesets_sync(callback); - }); - }); - }); + callback(); }; loader.prototype._load_async = function (callback) { @@ -116,15 +109,6 @@ loader.prototype._load_async = function (callback) { loader.prototype._loadMaterials_sync = function (callback) { callback(); - this._setStartLoadTipText('正在加载资源文件...'); - this.loadImages( - 'materials', - core.materials, - core.material.images, - function () { - core.loader._loadMaterials_afterLoad(); - } - ); }; loader.prototype._loadMaterials_async = function (onprogress, onfinished) {