根据现有的植物图标文件,以下是武器与图标的对应关系:
001-0.png - 小尺寸毛豆射手001-1.png - 大尺寸毛豆射手002.png - 尖胡萝卜003.png - 锯齿草004.png - 西瓜炸弹005.png - 回旋镖盆栽006.png - 炙热辣椒007.png - 仙人散弹008.png - 秋葵导弹(标准版)008-1.png - 秋葵导弹(变种版){
"pea_shooter": {
"name": "毛豆射手",
"icons": {
"1x1": "images/植物图标/001-0",
"1x2": "images/植物图标/001-1",
"2x1": "images/植物图标/001-1",
"2x2": "images/植物图标/001-1"
},
"effects": "动效输出/特效输出/tx0001"
},
"sharp_carrot": {
"name": "尖胡萝卜",
"icons": {
"all_sizes": "images/植物图标/002"
},
"effects": "动效输出/特效输出/tx0002"
},
"saw_grass": {
"name": "锯齿草",
"icons": {
"all_sizes": "images/植物图标/003"
},
"effects": "动效输出/特效输出/tx0003"
},
"watermelon_bomb": {
"name": "西瓜炸弹",
"icons": {
"all_sizes": "images/植物图标/004"
},
"effects": "动效输出/特效输出/tx0004"
},
"boomerang_plant": {
"name": "回旋镖盆栽",
"icons": {
"all_sizes": "images/植物图标/005"
},
"effects": "动效输出/特效输出/tx0005"
},
"hot_pepper": {
"name": "炙热辣椒",
"icons": {
"all_sizes": "images/植物图标/006"
},
"effects": "动效输出/特效输出/tx0006"
},
"cactus_shotgun": {
"name": "仙人散弹",
"icons": {
"all_sizes": "images/植物图标/007"
},
"effects": "动效输出/特效输出/tx0007"
},
"okra_missile": {
"name": "秋葵导弹",
"icons": {
"1x1": "images/植物图标/008",
"larger_sizes": "images/植物图标/008-1"
},
"effects": "动效输出/特效输出/tx0004"
}
}
根据现有的角色动画输出文件,以下是敌人与动画的对应关系:
001/ - 普通僵尸动画002/ - 路障僵尸动画003/ - 漫步僵尸动画004/ - 法师僵尸动画005/ - 弓箭僵尸动画006/ - 隐身僵尸动画007/ - 铁桶僵尸动画008/ - 火药桶僵尸动画009/ - BOSS1动画010/ - BOSS2动画011/ - BOSS3动画{
"normal_zombie": {
"name": "普通僵尸",
"animations": "动效输出/角色动画输出/001"
},
"roadblock_zombie": {
"name": "路障僵尸",
"animations": "动效输出/角色动画输出/002"
},
"wandering_zombie": {
"name": "漫步僵尸",
"animations": "动效输出/角色动画输出/003"
},
"mage_zombie": {
"name": "法师僵尸",
"animations": "动效输出/角色动画输出/004",
"projectile_effects": "动效输出/特效输出/tx0001"
},
"archer_zombie": {
"name": "弓箭僵尸",
"animations": "动效输出/角色动画输出/005",
"projectile_effects": "动效输出/特效输出/tx0002"
},
"stealth_zombie": {
"name": "隐身僵尸",
"animations": "动效输出/角色动画输出/006"
},
"bucket_zombie": {
"name": "铁桶僵尸",
"animations": "动效输出/角色动画输出/007"
},
"barrel_zombie": {
"name": "火药桶僵尸",
"animations": "动效输出/角色动画输出/008",
"explosion_effects": "动效输出/特效输出/tx0004"
},
"boss1_gatekeeper": {
"name": "BOSS1",
"animations": "动效输出/角色动画输出/009"
},
"boss2_gravedigger": {
"name": "BOSS2",
"animations": "动效输出/角色动画输出/010"
},
"boss3_cyborg": {
"name": "BOSS3",
"animations": "动效输出/角色动画输出/011"
}
}
tx0001/ - 基础子弹击中特效tx0002/ - 穿透子弹特效tx0003/ - 锯齿弹跳特效tx0004/ - 爆炸特效tx0005/ - 回旋镖特效tx0006/ - 火焰燃烧特效tx0007/ - 散弹特效weapons.json 中的 visualConfig.weaponSprites 和 bulletConfig.hitEffect 字段使用上述路径enemies.json 中的 visualConfig.spritePrefab 和 visualConfig.animations 字段使用上述路径hitEffect、trailEffect、explosionEffect 字段中使用特效路径assets/resources/ 目录的✅ weapons.json - 已更新武器图标和特效路径
⚠️ enemies.json - 需要手动更新动画路径(由于文件较大,建议分批更新)
建议在实际使用时,先测试单个武器或敌人的资源加载,确认路径正确后再应用到所有配置中。