图层修改

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-14 16:02:20 +08:00
parent ff1542c24f
commit ae75fce80b
5121 changed files with 17930 additions and 16467861 deletions

View File

@@ -152,9 +152,10 @@ function parseTilesFromNodes(objs, projectPath) {
const layer = m[1] === 'g' ? 'ground' : 'border';
const tileKey = tileKeyFromSpriteUuid(spriteUuidOnNode(objs, obj), projectPath);
if (layer === 'ground') {
ground[key] = tileKey || 'Baseblock';
ground[key] = tileKey === 'JumpBlock' ? 'JumpBlock' : 'Baseblock';
} else {
border[key] = tileKey || 'WallBlock';
const s = tileKey || 'WallBlock';
border[key] = (s === 'Baseblock' || s === 'JumpBlock') ? 'WallBlock' : s;
}
}
return { ground, border };