From 4648fedc73afa221ece0bafe9b1f0177dffeaa92 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, 14 Dec 2025 14:54:06 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95):=20=E5=B0=86?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=B3=A2=E6=95=B0=E6=8D=AE=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E6=B5=8B=E8=AF=95BOSS=E9=B8=A1=E5=B9=B6=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=97=A0=E7=94=A8=E9=9F=B3=E9=A2=91=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改Wave.gd中的默认波数据为测试BOSS鸡,便于测试 移除Chick.tscn中未使用的狐狸受伤音频资源及相关配置 --- components/Characters/Chick.tscn | 7 +------ scripts/Contents/Wave.gd | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/components/Characters/Chick.tscn b/components/Characters/Chick.tscn index 21401fa..1a43af8 100644 --- a/components/Characters/Chick.tscn +++ b/components/Characters/Chick.tscn @@ -1,8 +1,7 @@ -[gd_scene load_steps=14 format=3 uid="uid://b0ncrvm8u4pox"] +[gd_scene load_steps=13 format=3 uid="uid://b0ncrvm8u4pox"] [ext_resource type="PackedScene" uid="uid://cvogxi7mktumf" path="res://components/Abstracts/EntityBase.tscn" id="1_goqmy"] [ext_resource type="Script" uid="uid://b2gg1fh0bflu7" path="res://scripts/Contents/Characters/Chick.gd" id="2_r6bub"] -[ext_resource type="AudioStream" uid="uid://bp41p33g0mep6" path="res://resources/sounds/effect/foxhurt.mp3" id="3_x766l"] [ext_resource type="AudioStream" uid="uid://bgo8p1l77xrbe" path="res://resources/sounds/effect/Magic Spell.wav" id="4_2qabh"] [ext_resource type="AudioStream" uid="uid://b10u6iir6uvqn" path="res://resources/sounds/effect/BigLaser.wav" id="4_mrsne"] [ext_resource type="AudioStream" uid="uid://bf34p3xnsosgj" path="res://resources/sounds/effect/Dun Dun Dunnn.wav" id="4_w0sit"] @@ -55,10 +54,6 @@ displayName = "狐狸" drops = Array[int]([0, 1]) dropCounts = Array[Vector2]([Vector2(10, 30), Vector2(15, 50)]) appleCount = Vector2i(2, 4) -hurtAudioRate = 0.1 - -[node name="hurt" parent="sounds" index="3"] -stream = ExtResource("3_x766l") [node name="attack1" type="AudioStreamPlayer2D" parent="sounds" index="6"] stream = ExtResource("4_mrsne") diff --git a/scripts/Contents/Wave.gd b/scripts/Contents/Wave.gd index 4b0f3cb..d73b394 100644 --- a/scripts/Contents/Wave.gd +++ b/scripts/Contents/Wave.gd @@ -47,7 +47,7 @@ static var WAVE_TESTBOSS_CHICK = [ Wave.create("Chick", 0, 0, true, 0, INF, 10), ] static var WAVE_EMPTY = [] -static var data = WAVE_NORMAL +static var data = WAVE_TESTBOSS_CHICK static func create( entity_: String,