From ac5f10bb535f676bcf68200dd16e2e9df6a5f870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=A8=E8=90=BD=E5=9F=BA=E5=9B=B4=E8=99=BE?= <3161880837@qq.com> Date: Sun, 22 Mar 2026 16:39:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor(Characters):=20=E6=9B=B4=E6=96=B0Kerny?= =?UTF-8?q?r=E7=9A=84=E6=98=BE=E7=A4=BA=E5=90=8D=E7=A7=B0=E4=B8=BATestBoss?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refactor(Bullets): 优化Parrier的动画配置并移除baseDamage属性 --- components/Bullets/Parrier.tscn | 29 ++++++++++++++--------------- components/Characters/Kernyr.tscn | 2 +- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/components/Bullets/Parrier.tscn b/components/Bullets/Parrier.tscn index 73cd981..3c9a9b8 100644 --- a/components/Bullets/Parrier.tscn +++ b/components/Bullets/Parrier.tscn @@ -3,6 +3,20 @@ [ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_57y3f"] [ext_resource type="Script" uid="uid://bi7nde2rs0w4m" path="res://scripts/Contents/Bullets/Parrier.gd" id="2_li4th"] +[sub_resource type="Animation" id="Animation_ksxds"] +length = 0.001 +tracks/0/type = "bezier" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("%texture/..:parryRate") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"handle_modes": PackedInt32Array(0), +"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0), +"times": PackedFloat32Array(0) +} + [sub_resource type="Animation" id="Animation_li4th"] resource_name = "spawn" length = 0.5 @@ -19,20 +33,6 @@ tracks/0/keys = { "times": PackedFloat32Array(0, 0.5) } -[sub_resource type="Animation" id="Animation_ksxds"] -length = 0.001 -tracks/0/type = "bezier" -tracks/0/imported = false -tracks/0/enabled = true -tracks/0/path = NodePath("%texture/..:parryRate") -tracks/0/interp = 1 -tracks/0/loop_wrap = true -tracks/0/keys = { -"handle_modes": PackedInt32Array(0), -"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0), -"times": PackedFloat32Array(0) -} - [sub_resource type="AnimationLibrary" id="AnimationLibrary_k4ctn"] _data = { &"RESET": SubResource("Animation_ksxds"), @@ -46,7 +46,6 @@ height = 200.0 [node name="Parrier" instance=ExtResource("1_57y3f")] script = ExtResource("2_li4th") parryRate = 0.0 -baseDamage = 0.0 penerate = 1.0 autoSpawnAnimation = true freeAfterSpawn = true diff --git a/components/Characters/Kernyr.tscn b/components/Characters/Kernyr.tscn index 652ebf1..06ec70d 100644 --- a/components/Characters/Kernyr.tscn +++ b/components/Characters/Kernyr.tscn @@ -22,7 +22,7 @@ size = Vector2(118, 98) [node name="Kernyr" instance=ExtResource("1_bha5j")] script = ExtResource("2_vkls3") -displayName = "口势咯" +displayName = "TestBoss" drops = Array[int]([0, 1]) dropCounts = Array[Vector2]([Vector2(30, 50), Vector2(20, 40)]) appleCount = Vector2i(2, 5)