1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-27 05:52:29 +08:00

Add audio effect and implement FireScan bullet behavior

- Added Rip.wav audio effect to the project.
- Created FireScan bullet script with speed and damage properties.
- Implemented basic AI movement for FireScan bullets.
- Introduced Wave class for managing enemy waves with dynamic counts and spawning logic.
This commit is contained in:
2025-08-26 17:28:20 +08:00
parent 66413bd75d
commit 9a10e87cb0
17 changed files with 283 additions and 70 deletions
+7 -2
View File
@@ -1,10 +1,11 @@
[gd_scene load_steps=8 format=3 uid="uid://b0ncrvm8u4pox"]
[gd_scene load_steps=9 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" path="res://scripts/Contents/Characters/Chick.gd" id="2_r6bub"]
[ext_resource type="Texture2D" uid="uid://7pkplcqqxvnp" path="res://resources/characters/chick/chick-a.svg" id="2_syddq"]
[ext_resource type="Texture2D" uid="uid://dj5dvqb8gsedr" path="res://resources/characters/chick/chick-b.svg" id="3_064jv"]
[ext_resource type="AudioStream" uid="uid://b7pxuov1id0ho" path="res://resources/sounds/effect/Pew.mp3" id="3_ik1xf"]
[ext_resource type="AudioStream" uid="uid://bx3n11awokuyd" path="res://resources/sounds/effect/Rip.wav" id="4_oyq2p"]
[ext_resource type="PackedScene" uid="uid://dny25qkcvtaa2" path="res://components/Effects/FirePot.tscn" id="6_kvx3n"]
[sub_resource type="SpriteFrames" id="SpriteFrames_xji3d"]
@@ -34,9 +35,12 @@ script = ExtResource("2_r6bub")
cooldownUnit = 200.0
displayName = "小鸡"
[node name="hurt" parent="sounds" index="3"]
[node name="hurt" parent="sounds" index="2"]
stream = ExtResource("3_ik1xf")
[node name="attack1" type="AudioStreamPlayer2D" parent="sounds" index="4"]
stream = ExtResource("4_oyq2p")
[node name="texture" parent="." index="1"]
position = Vector2(0, -37)
sprite_frames = SubResource("SpriteFrames_xji3d")
@@ -46,6 +50,7 @@ animation = &"walk"
position = Vector2(30, -12)
[node name="firepot" parent="texture/weapons/normal" index="0" instance=ExtResource("6_kvx3n")]
unique_name_in_owner = true
[node name="statebar" parent="." index="2" node_paths=PackedStringArray("entity")]
position = Vector2(0, -82)
+1 -1
View File
@@ -35,7 +35,7 @@ radius = 40.0
script = ExtResource("2_8u5a0")
cooldownUnit = 500.0
[node name="hurt" parent="sounds" index="3"]
[node name="hurt" parent="sounds" index="2"]
stream = ExtResource("3_ojyt7")
[node name="texture" parent="." index="1"]
+10 -7
View File
@@ -38,25 +38,25 @@ radius = 41.0122
script = ExtResource("2_oqdqd")
cooldownUnit = 200.0
[node name="attack" parent="sounds" index="0"]
stream = ExtResource("3_4syso")
[node name="sprint" parent="sounds" index="1"]
[node name="sprint" parent="sounds" index="0"]
stream = ExtResource("4_66s6c")
[node name="miss" parent="sounds" index="2"]
[node name="miss" parent="sounds" index="1"]
stream = ExtResource("5_xnbhq")
[node name="hurt" parent="sounds" index="3"]
[node name="hurt" parent="sounds" index="2"]
stream = ExtResource("6_nmmw2")
[node name="attack0" parent="sounds" index="3"]
stream = ExtResource("3_4syso")
[node name="texture" parent="." index="1"]
position = Vector2(0, -70)
sprite_frames = SubResource("SpriteFrames_4v2ol")
animation = &"walk"
[node name="hitbox" parent="texture/hurtbox" index="0"]
position = Vector2(12, 16)
position = Vector2(0, 30)
shape = SubResource("CircleShape2D_h1v0q")
[node name="normal" type="Node2D" parent="texture/weapons" index="0"]
@@ -65,3 +65,6 @@ position = Vector2(54, -45)
[node name="statebar" parent="." index="2" node_paths=PackedStringArray("entity")]
position = Vector2(0, -151)
entity = NodePath("..")
[node name="movebox" parent="." index="3"]
disabled = true