@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user