From bbb4540ec49bdf18427c8968db19f7e4072ea9ae 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: Fri, 27 Mar 2026 23:04:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E5=92=8C=E6=AD=A6=E5=99=A8=E9=85=8D=E7=BD=AE=EF=BC=8C=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E5=AD=90=E5=BC=B9=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将Kernyr角色替换为Chick并更新相关属性 - 修改Rooster的武器配置,替换AcidWind为PurpleCrystal - 调整Yangyi子弹的纹理和粒子效果参数 - 提高武器Tree的攻击速率 - 移除调试标志并优化部分数值设置 --- components/Bullets/Yangyi.tscn | 16 +++++----------- components/Characters/Kernyr.tscn | 9 ++++----- components/Characters/Rooster.tscn | 7 ++++--- components/Weapons/Tree.tscn | 3 +-- scripts/Contents/Bullets/Parrier.gd | 2 +- scripts/Contents/Characters/Kernyr.gd | 3 ++- 6 files changed, 17 insertions(+), 23 deletions(-) diff --git a/components/Bullets/Yangyi.tscn b/components/Bullets/Yangyi.tscn index 0a327a4..f172b56 100644 --- a/components/Bullets/Yangyi.tscn +++ b/components/Bullets/Yangyi.tscn @@ -2,7 +2,7 @@ [ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_i51w8"] [ext_resource type="Script" uid="uid://c3ax35jdfjqox" path="res://scripts/Contents/Bullets/Yangyi.gd" id="2_sku1m"] -[ext_resource type="Texture2D" uid="uid://7hofo0ihj7sh" path="res://resources/bullets/yangyi/0.jpg" id="3_c3irh"] +[ext_resource type="Texture2D" uid="uid://dnpqfqfg6dwt4" path="res://resources/bullets/pencil/frames/pencil-a.svg" id="3_c3irh"] [sub_resource type="SpriteFrames" id="SpriteFrames_peenw"] animations = [{ @@ -65,17 +65,13 @@ curve = SubResource("Curve_c3irh") [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_c3irh"] particle_flag_disable_z = true -angle_min = 1.0728835e-05 -angle_max = 360.00003 +angle_min = 90.000015 +angle_max = 90.000015 direction = Vector3(-1, 0, 0) spread = 0.0 -initial_velocity_min = 1500.0 -initial_velocity_max = 1500.0 -angular_velocity_min = -100.000015 -angular_velocity_max = 99.999985 +initial_velocity_min = 500.0 +initial_velocity_max = 500.0 gravity = Vector3(0, 0, 0) -scale_min = 0.39999998 -scale_max = 0.39999998 alpha_curve = SubResource("CurveTexture_peenw") [node name="Yangyi" instance=ExtResource("1_i51w8")] @@ -86,7 +82,6 @@ lifeTime = 3000.0 autoLoopAnimation = true [node name="texture" parent="." index="0"] -scale = Vector2(0.075, 0.075) sprite_frames = SubResource("SpriteFrames_peenw") [node name="animator" parent="texture" index="0"] @@ -99,7 +94,6 @@ shape = SubResource("RectangleShape2D_x2cof") [node name="trail" type="GPUParticles2D" parent="." index="2"] z_index = -1 -scale = Vector2(0.15, 0.15) texture = ExtResource("3_c3irh") local_coords = true process_material = SubResource("ParticleProcessMaterial_c3irh") diff --git a/components/Characters/Kernyr.tscn b/components/Characters/Kernyr.tscn index 72e7ade..50063ae 100644 --- a/components/Characters/Kernyr.tscn +++ b/components/Characters/Kernyr.tscn @@ -2,7 +2,7 @@ [ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_bha5j"] [ext_resource type="Script" uid="uid://m28dwfwmmhmh" path="res://scripts/Contents/Characters/Kernyr.gd" id="2_vkls3"] -[ext_resource type="Texture2D" uid="uid://b1aq0k7tf1p1" path="res://resources/characters/kernyr/kernyr.jpg" id="3_vkls3"] +[ext_resource type="Texture2D" uid="uid://7pkplcqqxvnp" path="res://resources/characters/chick/chick-a.svg" id="3_vkls3"] [sub_resource type="SpriteFrames" id="SpriteFrames_vkls3"] animations = [{ @@ -22,7 +22,7 @@ size = Vector2(118, 98) [node name="Kernyr" instance=ExtResource("1_bha5j")] script = ExtResource("2_vkls3") -displayName = "主核" +displayName = "Chick" drops = Array[int]([0, 1]) dropCounts = Array[Vector2]([Vector2(30, 50), Vector2(20, 40)]) appleCount = Vector2i(2, 5) @@ -31,12 +31,11 @@ appleCount = Vector2i(2, 5) sprite_frames = SubResource("SpriteFrames_vkls3") [node name="staticBackground" parent="texture" index="0"] -position = Vector2(0, -10) -scale = Vector2(0.22162607, 0.22162607) +scale = Vector2(1.622, 1.622) texture = ExtResource("3_vkls3") [node name="hitbox" parent="texture/hurtbox" index="0"] shape = SubResource("RectangleShape2D_vkls3") [node name="statebar" parent="." index="4"] -position = Vector2(0, -144) +position = Vector2(0, -132) diff --git a/components/Characters/Rooster.tscn b/components/Characters/Rooster.tscn index d010fc6..e6adcf3 100644 --- a/components/Characters/Rooster.tscn +++ b/components/Characters/Rooster.tscn @@ -3,7 +3,7 @@ [ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_e5pl8"] [ext_resource type="Script" uid="uid://cthtupc6dtbav" path="res://scripts/Contents/Characters/Rooster.gd" id="2_oqdqd"] [ext_resource type="PackedScene" uid="uid://cx7nogfnv7s8t" path="res://components/Weapons/Tree.tscn" id="3_0omr3"] -[ext_resource type="PackedScene" uid="uid://yq7vmijwvgx1" path="res://components/Weapons/AcidWind.tscn" id="4_0omr3"] +[ext_resource type="PackedScene" uid="uid://c0n3igy4hucrg" path="res://components/Weapons/PurpleCrystal.tscn" id="3_joj4g"] [ext_resource type="AudioStream" uid="uid://cdrevrq7n6yqa" path="res://resources/sounds/effect/Boing.mp3" id="4_66s6c"] [ext_resource type="AudioStream" uid="uid://benyec5bqni0b" path="res://resources/sounds/effect/Chomp.wav" id="4_k0yme"] [ext_resource type="AudioStream" uid="uid://dmxh3bpk8vyy5" path="res://resources/sounds/effect/Coin.mp3" id="5_xnbhq"] @@ -102,11 +102,12 @@ process_material = SubResource("ParticleProcessMaterial_joj4g") [node name="weaponStore" parent="." index="2"] process_mode = 4 -[node name="Tree" parent="weaponStore" index="0" instance=ExtResource("3_0omr3")] +[node name="PurpleCrystal" parent="weaponStore" index="0" instance=ExtResource("3_joj4g")] offset_bottom = 350.0 debugRebuild = false -[node name="AcidWind" parent="weaponStore" index="1" instance=ExtResource("4_0omr3")] +[node name="Tree" parent="weaponStore" index="1" instance=ExtResource("3_0omr3")] +offset_bottom = 350.0 debugRebuild = false [node name="sprint" parent="sounds" index="0"] diff --git a/components/Weapons/Tree.tscn b/components/Weapons/Tree.tscn index 8f69a14..56aa6a0 100644 --- a/components/Weapons/Tree.tscn +++ b/components/Weapons/Tree.tscn @@ -16,7 +16,7 @@ store = { "atk": 20, "count": 1.0, "max": 3.0, -"rate": 0.25 +"rate": 1.0 } storeType = { "atk": 1, @@ -35,7 +35,6 @@ descriptionTemplate = "进行[b]格挡[/b],化解飞来的子弹。 乾坤剑造成的伤害+$atk点。 格挡时机越精确,成功率越高。" cooldown = 250.0 -debugRebuild = true [node name="avatar" parent="container/info" index="0"] texture = ExtResource("3_nwamk") diff --git a/scripts/Contents/Bullets/Parrier.gd b/scripts/Contents/Bullets/Parrier.gd index 8c1e908..6ffcac9 100644 --- a/scripts/Contents/Bullets/Parrier.gd +++ b/scripts/Contents/Bullets/Parrier.gd @@ -10,7 +10,7 @@ var atk: float = 0 var reflectRate: float = 0.25 func spawn(): - var varians = randi_range(0, 2) + var varians = randi_range(0, 1) var inverts = [2] var frames = load("res://resources/effects/parrier/%d/%d.tres" % [varians, varians]) var eff = EffectController.create(ComponentManager.getEffect("Parrier"), position) diff --git a/scripts/Contents/Characters/Kernyr.gd b/scripts/Contents/Characters/Kernyr.gd index 9ad02fd..41520ba 100644 --- a/scripts/Contents/Characters/Kernyr.gd +++ b/scripts/Contents/Characters/Kernyr.gd @@ -7,13 +7,14 @@ var attack0State = 0 func register(): fields[FieldStore.Entity.MAX_HEALTH] = 2000 fields[FieldStore.Entity.OFFSET_SHOOT] = 20 - attackCooldownMap[0] = 2000 + attackCooldownMap[0] = 3000 attackCooldownMap[1] = 100 attackCooldownMap[2] = 1000 func ai(): tryAttack(0) tryAttack(1) tryAttack(2) + # texture.position = Vector2.from_angle(deg_to_rad(timeLived() / 1000.0 * 360)) * 200 func attack(type: int): if type == 0: var states = [