From 17dc9b0a305b1e89ddc66e8f5a8995d6306e1304 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: Sat, 24 Jan 2026 08:47:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A7=92=E8=89=B2):=20=E4=B8=BA=E7=86=8A?= =?UTF-8?q?=E8=B0=B7=E5=87=8C=E5=92=8C=E9=85=B7=E5=8F=AFmc=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=8B=B9=E6=9E=9C=E6=8E=89=E8=90=BD=E6=95=B0=E9=87=8F?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为熊谷凌角色添加appleCount属性,设置掉落4-8个苹果 为酷可mc角色添加appleCount属性,设置掉落3-6个苹果,并调整武器位置和添加受伤音效 --- components/Characters/Bear.tscn | 1 + components/Characters/KukeMC.tscn | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/components/Characters/Bear.tscn b/components/Characters/Bear.tscn index 796d0ae..b434904 100644 --- a/components/Characters/Bear.tscn +++ b/components/Characters/Bear.tscn @@ -174,6 +174,7 @@ script = ExtResource("2_kh2af") displayName = "熊谷凌" drops = Array[int]([0, 1]) dropCounts = Array[Vector2]([Vector2(50, 100), Vector2(70, 140)]) +appleCount = Vector2i(4, 8) metadata/_edit_vertical_guides_ = [-50.0] [node name="attack1" type="AudioStreamPlayer2D" parent="sounds" index="6"] diff --git a/components/Characters/KukeMC.tscn b/components/Characters/KukeMC.tscn index 4becdb0..500ab6c 100644 --- a/components/Characters/KukeMC.tscn +++ b/components/Characters/KukeMC.tscn @@ -1,8 +1,9 @@ -[gd_scene load_steps=10 format=3 uid="uid://d4lfjwy0hkidu"] +[gd_scene load_steps=11 format=3 uid="uid://d4lfjwy0hkidu"] [ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_r4q7y"] [ext_resource type="Script" uid="uid://cekuqnfohprpb" path="res://scripts/Contents/Characters/KukeMC.gd" id="2_s2dg5"] [ext_resource type="Texture2D" uid="uid://mnockp3ai4ju" path="res://resources/characters/kukemc/pico-a.svg" id="3_1s5d7"] +[ext_resource type="AudioStream" uid="uid://23ttwefh4ej2" path="res://resources/sounds/effect/arrowshot.mp3" id="3_xjfsq"] [ext_resource type="Texture2D" uid="uid://fsiyiwek5awa" path="res://resources/characters/kukemc/pico-b.svg" id="4_xjfsq"] [ext_resource type="Texture2D" uid="uid://dem14qyqmrp52" path="res://resources/characters/kukemc/pico-c.svg" id="5_rfpp4"] [ext_resource type="Texture2D" uid="uid://cvig26vtcyqmd" path="res://resources/characters/kukemc/pico-d.svg" id="6_kcxk2"] @@ -56,9 +57,14 @@ script = ExtResource("2_s2dg5") displayName = "酷可mc" drops = Array[int]([0, 1]) dropCounts = Array[Vector2]([Vector2(20, 40), Vector2(25, 50)]) +appleCount = Vector2i(3, 6) useStatic = true +hurtAudioRate = 0.1 metadata/_edit_vertical_guides_ = [76.0] +[node name="hurt" parent="sounds" index="3"] +stream = ExtResource("3_xjfsq") + [node name="collect" parent="sounds" index="4"] stream = null @@ -80,7 +86,7 @@ position = Vector2(0, -49) shape = SubResource("RectangleShape2D_farlp") [node name="normal" type="Node2D" parent="texture/weapons" index="0"] -position = Vector2(-22, 18) +position = Vector2(29, -38) [node name="statebar" parent="." index="4"] position = Vector2(0, -217)