From e2cac417531c02ba15c8a6372cc1fa642aa8e179 Mon Sep 17 00:00:00 2001 From: panw Date: Thu, 19 Mar 2026 16:08:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E8=8B=B1=E9=9B=84?= =?UTF-8?q?=E7=A2=B0=E6=92=9E=E4=BD=93=E7=A7=AF=E5=92=8C=E6=8A=80=E8=83=BD?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BB=A5=E4=BF=AE=E5=A4=8D=E5=91=BD=E4=B8=AD?= =?UTF-8?q?=E5=88=A4=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 统一多个英雄prefab的碰撞宽度从60改为30,优化碰撞检测 - 调整hz1英雄的_contentSize高度从10改为100,修正显示问题 - 修改atk_s1、atk_s4、atk_f2技能prefab的激活状态和碰撞器启用状态 - 移除EType枚举中的distanceEnd类型,将技能6001的消失类型改为collision - 启用物理系统调试绘制,便于开发调试 - 调整atk_f2技能的攻击范围和锚点位置,优化技能表现 --- assets/resources/game/heros/ha1.prefab | 2 +- assets/resources/game/heros/hc1.prefab | 2 +- assets/resources/game/heros/hh1.prefab | 2 +- assets/resources/game/heros/hk1.prefab | 2 +- assets/resources/game/heros/hm1.prefab | 2 +- assets/resources/game/heros/hm2.prefab | 2 +- assets/resources/game/heros/hz1.prefab | 4 +-- assets/resources/game/heros/mo1.prefab | 2 +- assets/resources/game/heros/mo2.prefab | 2 +- assets/resources/game/heros/mo3.prefab | 2 +- assets/resources/game/heros/mo4.prefab | 2 +- assets/resources/game/skill/atk/atk_f2.prefab | 34 ++++++++++--------- assets/resources/game/skill/atk/atk_s1.prefab | 4 +-- assets/resources/game/skill/atk/atk_s4.prefab | 4 +-- assets/script/Main.ts | 10 +++--- assets/script/game/common/config/SkillSet.ts | 5 ++- 16 files changed, 41 insertions(+), 40 deletions(-) diff --git a/assets/resources/game/heros/ha1.prefab b/assets/resources/game/heros/ha1.prefab index 464e4d56..92250dbf 100644 --- a/assets/resources/game/heros/ha1.prefab +++ b/assets/resources/game/heros/ha1.prefab @@ -906,7 +906,7 @@ }, "_size": { "__type__": "cc.Size", - "width": 60, + "width": 30, "height": 100 }, "_id": "" diff --git a/assets/resources/game/heros/hc1.prefab b/assets/resources/game/heros/hc1.prefab index b71be3be..65dd1f55 100644 --- a/assets/resources/game/heros/hc1.prefab +++ b/assets/resources/game/heros/hc1.prefab @@ -778,7 +778,7 @@ }, "_size": { "__type__": "cc.Size", - "width": 60, + "width": 30, "height": 100 }, "_id": "" diff --git a/assets/resources/game/heros/hh1.prefab b/assets/resources/game/heros/hh1.prefab index f11a6a37..f876766d 100644 --- a/assets/resources/game/heros/hh1.prefab +++ b/assets/resources/game/heros/hh1.prefab @@ -778,7 +778,7 @@ }, "_size": { "__type__": "cc.Size", - "width": 60, + "width": 30, "height": 100 }, "_id": "" diff --git a/assets/resources/game/heros/hk1.prefab b/assets/resources/game/heros/hk1.prefab index 83b6fd4d..17707a90 100644 --- a/assets/resources/game/heros/hk1.prefab +++ b/assets/resources/game/heros/hk1.prefab @@ -754,7 +754,7 @@ }, "_size": { "__type__": "cc.Size", - "width": 60, + "width": 30, "height": 100 }, "_id": "" diff --git a/assets/resources/game/heros/hm1.prefab b/assets/resources/game/heros/hm1.prefab index 9ba3a243..72c2877e 100644 --- a/assets/resources/game/heros/hm1.prefab +++ b/assets/resources/game/heros/hm1.prefab @@ -778,7 +778,7 @@ }, "_size": { "__type__": "cc.Size", - "width": 60, + "width": 30, "height": 100 }, "_id": "" diff --git a/assets/resources/game/heros/hm2.prefab b/assets/resources/game/heros/hm2.prefab index ab6cf42b..7a25a0f5 100644 --- a/assets/resources/game/heros/hm2.prefab +++ b/assets/resources/game/heros/hm2.prefab @@ -778,7 +778,7 @@ }, "_size": { "__type__": "cc.Size", - "width": 60, + "width": 30, "height": 100 }, "_id": "" diff --git a/assets/resources/game/heros/hz1.prefab b/assets/resources/game/heros/hz1.prefab index 27a4e329..39e61451 100644 --- a/assets/resources/game/heros/hz1.prefab +++ b/assets/resources/game/heros/hz1.prefab @@ -666,7 +666,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 80, - "height": 10 + "height": 100 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -778,7 +778,7 @@ }, "_size": { "__type__": "cc.Size", - "width": 60, + "width": 30, "height": 100 }, "_id": "" diff --git a/assets/resources/game/heros/mo1.prefab b/assets/resources/game/heros/mo1.prefab index 63c2edef..b419661a 100644 --- a/assets/resources/game/heros/mo1.prefab +++ b/assets/resources/game/heros/mo1.prefab @@ -775,7 +775,7 @@ }, "_size": { "__type__": "cc.Size", - "width": 60, + "width": 30, "height": 90 }, "_id": "" diff --git a/assets/resources/game/heros/mo2.prefab b/assets/resources/game/heros/mo2.prefab index 4b59b3f0..26c13647 100644 --- a/assets/resources/game/heros/mo2.prefab +++ b/assets/resources/game/heros/mo2.prefab @@ -775,7 +775,7 @@ }, "_size": { "__type__": "cc.Size", - "width": 60, + "width": 30, "height": 80 }, "_id": "" diff --git a/assets/resources/game/heros/mo3.prefab b/assets/resources/game/heros/mo3.prefab index ae6a78f0..7b07f6c6 100644 --- a/assets/resources/game/heros/mo3.prefab +++ b/assets/resources/game/heros/mo3.prefab @@ -754,7 +754,7 @@ }, "_size": { "__type__": "cc.Size", - "width": 60, + "width": 30, "height": 100 }, "_id": "" diff --git a/assets/resources/game/heros/mo4.prefab b/assets/resources/game/heros/mo4.prefab index dcbff1d9..392f3089 100644 --- a/assets/resources/game/heros/mo4.prefab +++ b/assets/resources/game/heros/mo4.prefab @@ -1051,7 +1051,7 @@ }, "_size": { "__type__": "cc.Size", - "width": 60, + "width": 30, "height": 100 }, "_id": "" diff --git a/assets/resources/game/skill/atk/atk_f2.prefab b/assets/resources/game/skill/atk/atk_f2.prefab index b4def6a1..47f89adf 100644 --- a/assets/resources/game/skill/atk/atk_f2.prefab +++ b/assets/resources/game/skill/atk/atk_f2.prefab @@ -210,6 +210,8 @@ "__id__": 0 }, "fileId": "3arqAMBz1MvoXBzeDaL5M/", + "instance": null, + "targetOverrides": null, "nestedPrefabInstanceRoots": null }, { @@ -221,7 +223,7 @@ "__id__": 1 }, "_children": [], - "_active": true, + "_active": false, "_components": [ { "__id__": 9 @@ -238,7 +240,7 @@ }, "_lpos": { "__type__": "cc.Vec3", - "x": 40, + "x": 0, "y": 0, "z": 0 }, @@ -279,13 +281,13 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 80, - "height": 100 + "width": 200, + "height": 200 }, "_anchorPoint": { "__type__": "cc.Vec2", "x": 0.5, - "y": 0 + "y": 0.5 }, "_id": "" }, @@ -301,7 +303,7 @@ "node": { "__id__": 8 }, - "_enabled": false, + "_enabled": true, "__prefab": { "__id__": 12 }, @@ -352,10 +354,10 @@ }, "_alignFlags": 45, "_target": null, - "_left": 0, - "_right": 0, - "_top": 0, - "_bottom": 0, + "_left": -60, + "_right": -60, + "_top": -50, + "_bottom": -50, "_horizontalCenter": 0, "_verticalCenter": 0, "_isAbsLeft": true, @@ -406,8 +408,8 @@ }, "_anchorPoint": { "__type__": "cc.Vec2", - "x": 0, - "y": 0 + "x": 0.5, + "y": 0.5 }, "_id": "" }, @@ -519,13 +521,13 @@ "_restitution": 0, "_offset": { "__type__": "cc.Vec2", - "x": 50, - "y": 50 + "x": 0, + "y": 0 }, "_size": { "__type__": "cc.Size", - "width": 100, - "height": 199.9 + "width": 300, + "height": 200 }, "_id": "" }, diff --git a/assets/resources/game/skill/atk/atk_s1.prefab b/assets/resources/game/skill/atk/atk_s1.prefab index a0e0199c..2706e958 100644 --- a/assets/resources/game/skill/atk/atk_s1.prefab +++ b/assets/resources/game/skill/atk/atk_s1.prefab @@ -217,7 +217,7 @@ "__id__": 1 }, "_children": [], - "_active": true, + "_active": false, "_components": [ { "__id__": 9 @@ -297,7 +297,7 @@ "node": { "__id__": 8 }, - "_enabled": false, + "_enabled": true, "__prefab": { "__id__": 12 }, diff --git a/assets/resources/game/skill/atk/atk_s4.prefab b/assets/resources/game/skill/atk/atk_s4.prefab index 983d9520..23d7ea79 100644 --- a/assets/resources/game/skill/atk/atk_s4.prefab +++ b/assets/resources/game/skill/atk/atk_s4.prefab @@ -220,7 +220,7 @@ "__id__": 1 }, "_children": [], - "_active": true, + "_active": false, "_components": [ { "__id__": 9 @@ -300,7 +300,7 @@ "node": { "__id__": 8 }, - "_enabled": false, + "_enabled": true, "__prefab": { "__id__": 12 }, diff --git a/assets/script/Main.ts b/assets/script/Main.ts index bb5c2a5b..4cae125c 100644 --- a/assets/script/Main.ts +++ b/assets/script/Main.ts @@ -12,11 +12,11 @@ const { ccclass, property } = _decorator; @ccclass('Main') export class Main extends Root { start() { - // PhysicsSystem2D.instance.debugDrawFlags = EPhysics2DDrawFlags.Aabb - // |EPhysics2DDrawFlags.Pair - // |EPhysics2DDrawFlags.CenterOfMass - // |EPhysics2DDrawFlags.Joint - // |EPhysics2DDrawFlags.Shape; + PhysicsSystem2D.instance.debugDrawFlags = EPhysics2DDrawFlags.Aabb + |EPhysics2DDrawFlags.Pair + |EPhysics2DDrawFlags.CenterOfMass + |EPhysics2DDrawFlags.Joint + |EPhysics2DDrawFlags.Shape; } protected async run() { smc.initialize = ecs.getEntity(Initialize); diff --git a/assets/script/game/common/config/SkillSet.ts b/assets/script/game/common/config/SkillSet.ts index 93bd8bc3..be7e25eb 100644 --- a/assets/script/game/common/config/SkillSet.ts +++ b/assets/script/game/common/config/SkillSet.ts @@ -75,8 +75,7 @@ export enum RType { export enum EType { animationEnd = 0, //碰撞够也不消失,动画结束才消失 timeEnd = 1, //碰撞够也不消失,时间到才消失 - distanceEnd = 2, //碰撞够也不消失,距离到才消失 - collision = 3, //碰撞次数够就消失 + collision = 2, //碰撞次数够就消失 } //debuff类型 @@ -193,7 +192,7 @@ export const SkillSet: Record = { 6001: { uuid:6001,name:"空挥",sp_name:"atk_s1",icon:"1026",TGroup:TGroup.Enemy,TType:TType.Frontline,readyAnm:"",endAnm:"",act:"atk",DTType:DTType.single, ap:100,hit_count:1,hitcd:0.2,speed:720,with:0, - ready:0,EAnm:0,DAnm:9001,RType:RType.linear,EType:EType.distanceEnd, + ready:0,EAnm:0,DAnm:9001,RType:RType.linear,EType:EType.collision, buffs:[],debuffs:[],info:"对前方目标造成100%攻击的伤害", }, 6002: {