From cdacdc50e76c6a2645d0d20c6583fa82d17fbb33 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Wed, 19 Nov 2025 16:36:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=B0=E5=9B=BE=E6=95=B0=E7=BB=84?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages-user/client-modules/src/render/index.tsx | 2 -- public/project/functions.js | 10 +++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages-user/client-modules/src/render/index.tsx b/packages-user/client-modules/src/render/index.tsx index 86153ff..3ce8c32 100644 --- a/packages-user/client-modules/src/render/index.tsx +++ b/packages-user/client-modules/src/render/index.tsx @@ -23,8 +23,6 @@ export function createGameRenderer() { mainRenderer.hide(); createApp(App).mount(mainRenderer); - - console.log(mainRenderer); } export function createRender() { diff --git a/public/project/functions.js b/public/project/functions.js index 4b16998..e66ad05 100644 --- a/public/project/functions.js +++ b/public/project/functions.js @@ -163,11 +163,11 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = { // 更新地图状态 const { state } = Mota.require('@user/data-state'); - const bg = core.floors[floorId].bgmap ?? []; - const bg2 = core.floors[floorId].bg2map ?? []; - const event = core.floors[floorId].map ?? []; - const fg = core.floors[floorId].fgmap ?? []; - const fg2 = core.floors[floorId].fg2map ?? []; + const bg = core.maps._getBgFgMapArray('bg', floorId); + const bg2 = core.maps._getBgFgMapArray('bg2', floorId); + const event = core.getMapArray(floorId); + const fg = core.maps._getBgFgMapArray('fg', floorId); + const fg2 = core.maps._getBgFgMapArray('fg2', floorId); const { width, height } = core.floors[floorId]; const bgLayer = state.layer.getLayerByAlias('bg'); const bg2Layer = state.layer.getLayerByAlias('bg2');