修改地图生成模板,墙体与水体回复正常
This commit is contained in:
@@ -8,7 +8,8 @@ EXCEL_PATH = "found_方块.xlsx" # 根据你的实际文件名改
|
||||
|
||||
# 作为模板的 prefab(就是你贴出来那份,包含 Ground / Border / Grid)
|
||||
TEMPLATE_PREFAB = "Level90093.prefab" # 根据实际文件名改
|
||||
OLD_LEVEL_NAME = "Level51605" # 模板 prefab 中的旧关卡名
|
||||
OLD_LEVEL_NAME = "Level90093" # 模板 prefab 中的旧关卡名
|
||||
|
||||
|
||||
# 输出目录
|
||||
OUTPUT_DIR = Path("GeneratedPrefabs")
|
||||
@@ -169,11 +170,11 @@ def main():
|
||||
# water -> m_TileIndex:2, m_TileSpriteIndex:2
|
||||
if water_df is not None:
|
||||
wg = water_df[water_df['map'] == map_no]
|
||||
border_tiles += [(int(x), int(y), 2, 2) for x, y in zip(wg['x'], wg['y'])]
|
||||
border_tiles += [(int(x), int(y), 0, 0) for x, y in zip(wg['x'], wg['y'])]
|
||||
# wall -> m_TileIndex:0, m_TileSpriteIndex:0
|
||||
if wall_df is not None:
|
||||
wg = wall_df[wall_df['map'] == map_no]
|
||||
border_tiles += [(int(x), int(y), 0, 0) for x, y in zip(wg['x'], wg['y'])]
|
||||
border_tiles += [(int(x), int(y), 2, 2) for x, y in zip(wg['x'], wg['y'])]
|
||||
# jump -> m_TileIndex:1, m_TileSpriteIndex:1
|
||||
if jump_df is not None:
|
||||
wg = jump_df[jump_df['map'] == map_no]
|
||||
|
||||
Reference in New Issue
Block a user