fix(战斗): 调整攻击技能碰撞区域与移动逻辑

- 统一四个攻击技能的碰撞框宽度从100增加至150,并调整偏移量
- 移除移动系统中保持距离的逻辑,仅在超出最小范围且需要调整阵型时移动
- 为atk_s3和atk_s4技能添加debugMode字段
This commit is contained in:
panw
2026-03-17 11:03:48 +08:00
parent 2a842f533e
commit 8dc3bccbd8
7 changed files with 15 additions and 13 deletions

View File

@@ -21,12 +21,12 @@
"_exoticAnimation": null, "_exoticAnimation": null,
"_events": [ "_events": [
{ {
"frame": 0.20833333333333334, "frame": 0.08333333333333333,
"func": "", "func": "",
"params": [] "params": []
}, },
{ {
"frame": 0.20833333333333334, "frame": 0.08333333333333333,
"func": "atk", "func": "atk",
"params": [] "params": []
} }

View File

@@ -21,12 +21,12 @@
"_exoticAnimation": null, "_exoticAnimation": null,
"_events": [ "_events": [
{ {
"frame": 0.125, "frame": 0.08333333333333333,
"func": "", "func": "",
"params": [] "params": []
}, },
{ {
"frame": 0.125, "frame": 0.08333333333333333,
"func": "atk", "func": "atk",
"params": [] "params": []
} }

View File

@@ -21,12 +21,12 @@
"_exoticAnimation": null, "_exoticAnimation": null,
"_events": [ "_events": [
{ {
"frame": 0.14814814814814814, "frame": 0.07407407407407407,
"func": "", "func": "",
"params": [] "params": []
}, },
{ {
"frame": 0.14814814814814814, "frame": 0.07407407407407407,
"func": "atk", "func": "atk",
"params": [] "params": []
} }

View File

@@ -523,7 +523,7 @@
}, },
"_size": { "_size": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 100, "width": 150,
"height": 100 "height": 100
}, },
"_id": "" "_id": ""

View File

@@ -521,12 +521,12 @@
"_restitution": 0, "_restitution": 0,
"_offset": { "_offset": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 50, "x": 0,
"y": 50 "y": 50
}, },
"_size": { "_size": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 100, "width": 150,
"height": 100 "height": 100
}, },
"_id": "" "_id": ""

View File

@@ -457,6 +457,7 @@
}, },
"atk_x": 0, "atk_x": 0,
"atk_y": 0, "atk_y": 0,
"debugMode": false,
"_id": "" "_id": ""
}, },
{ {
@@ -517,12 +518,12 @@
"_restitution": 0, "_restitution": 0,
"_offset": { "_offset": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 50, "x": 0,
"y": 50 "y": 50
}, },
"_size": { "_size": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 100, "width": 150,
"height": 100 "height": 100
}, },
"_id": "" "_id": ""

View File

@@ -457,6 +457,7 @@
}, },
"atk_x": 0, "atk_x": 0,
"atk_y": 0, "atk_y": 0,
"debugMode": false,
"_id": "" "_id": ""
}, },
{ {
@@ -517,12 +518,12 @@
"_restitution": 0, "_restitution": 0,
"_offset": { "_offset": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 50, "x": 0,
"y": 50 "y": 50
}, },
"_size": { "_size": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 100, "width": 150,
"height": 100 "height": 100
}, },
"_id": "" "_id": ""