From d4598e113d6f84dbffdcd8c582d190a8f3147657 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, 4 Apr 2026 08:42:32 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B8=B8=E6=88=8F=E5=86=85=E5=AE=B9):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=B0=E6=95=8C=E4=BA=BA=E6=B3=A2=E6=AC=A1?= =?UTF-8?q?=E5=B9=B6=E8=B0=83=E6=95=B4=E6=AD=A6=E5=99=A8=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为游戏添加新的敌人波次WAVE_MOWING,包含多种敌人类型。同时调整InfinitySword武器的穿透伤害减免参数和音频音量,并修改敌人生成范围从200-1000调整为400-800,以改善游戏平衡性 --- components/Bullets/InfinitySword.tscn | 2 ++ scripts/Contents/Wave.gd | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/components/Bullets/InfinitySword.tscn b/components/Bullets/InfinitySword.tscn index 2cd0410..a5a265e 100644 --- a/components/Bullets/InfinitySword.tscn +++ b/components/Bullets/InfinitySword.tscn @@ -145,6 +145,7 @@ height = 580.0 script = ExtResource("2_nbqhn") speed = 25.0 penerate = 1.0 +penerateDamageReduction = 0.05 autoSpawnAnimation = true autoPlayTexture = true freeAfterSpawn = true @@ -158,6 +159,7 @@ sprite_frames = SubResource("SpriteFrames_c741v") libraries/ = SubResource("AnimationLibrary_3cvbl") [node name="audio" parent="texture" index="1" unique_id=1167114186] +volume_db = 10.0 max_distance = 10000.0 [node name="hitbox" parent="." index="1" unique_id=175349408] diff --git a/scripts/Contents/Wave.gd b/scripts/Contents/Wave.gd index ac01a9e..8152204 100644 --- a/scripts/Contents/Wave.gd +++ b/scripts/Contents/Wave.gd @@ -48,8 +48,14 @@ static var WAVE_TESTBOSS_CHICK = [ static var WAVE_JUSTJOKE = [ Wave.create("Kernyr", 0, 0, true, 0, INF, 1), ] +static var WAVE_MOWING = [ + Wave.create("Hen", 15, 30, false, 0, INF, 1), + Wave.create("Cat", 15, 30, false, 0, INF, 1), + Wave.create("Dog", 15, 30, false, 0, INF, 1), + Wave.create("MTY", 1, 5, false, 0, INF, 1), +] static var WAVE_EMPTY = [] -static var waveConfig = [WAVE_NORMAL, 1] +static var waveConfig = [WAVE_MOWING, 1] static var current: int = startWith(1) if WorldManager.isRelease() else startWith(waveConfig[1]) static var data = WAVE_NORMAL if WorldManager.isRelease() else waveConfig[0] @@ -105,7 +111,7 @@ static func spawn(center: Vector2) -> Array: var wave: Wave = data[i] for j in range(entityCountOf(wave)): var currentWave = wave.duplicate() - currentWave.entityPosition = MathTool.sampleInRing(200, 1000) + center + currentWave.entityPosition = MathTool.sampleInRing(400, 800) + center result.append(currentWave) return result static func next(waves: Array):