同步主站 Cocos 当前工程:关卡资源、运行脚本与打包工具。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-12 14:40:34 +08:00
parent ae75fce80b
commit fac515a669
5609 changed files with 27744634 additions and 5653 deletions

View File

@@ -164,8 +164,10 @@ function parseTilesFromNodes(objs, projectPath) {
function mergeMapSources(mapData, fromNodes) {
const md = mapData || { ground: {}, border: {}, theme: null, levelID: 0 };
const nodes = fromNodes || { ground: {}, border: {} };
const ground = Object.keys(nodes.ground).length ? nodes.ground : md.ground || {};
const border = Object.keys(nodes.border).length ? nodes.border : md.border || {};
// LevelMapData 是烘焙权威(含 JumpBlock / kuai11。节点贴图 UUID 对不上时
// 会被收成 Baseblock / WallBlock不能盖过 JSON。
const ground = Object.keys(md.ground || {}).length ? md.ground : (nodes.ground || {});
const border = Object.keys(md.border || {}).length ? md.border : (nodes.border || {});
return {
levelID: md.levelID || 0,
ground,