1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

Add Low Boing sound effect import configuration

- Imported "Low Boing.wav" sound effect into the project.
- Created import settings for the audio file, specifying parameters such as audio type, sample rate, and dependencies.
This commit is contained in:
2025-08-27 16:39:07 +08:00
parent 9e396eef3d
commit 266947df0d
7 changed files with 30 additions and 24 deletions
+1
View File
@@ -231,3 +231,4 @@ position = Vector2(0, -20)
[node name="movebox" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_34h7q")
disabled = true
+2 -5
View File
@@ -8,7 +8,7 @@
[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"]
[ext_resource type="AudioStream" uid="uid://des7x0l4f3ijc" path="res://resources/sounds/effect/Low Boing.mp3" id="6_nmmw2"]
[ext_resource type="AudioStream" uid="uid://4wuuf1osk0yv" path="res://resources/sounds/effect/Low Boing.wav" id="6_m5px1"]
[sub_resource type="SpriteFrames" id="SpriteFrames_4v2ol"]
animations = [{
@@ -50,7 +50,7 @@ stream = ExtResource("4_k0yme")
stream = ExtResource("5_xnbhq")
[node name="hurt" parent="sounds" index="3"]
stream = ExtResource("6_nmmw2")
stream = ExtResource("6_m5px1")
[node name="attack0" parent="sounds" index="4"]
stream = ExtResource("3_4syso")
@@ -70,6 +70,3 @@ 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
Binary file not shown.
@@ -1,19 +0,0 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://des7x0l4f3ijc"
path="res://.godot/imported/Low Boing.mp3-0d7a95e69d755f2863239a9cb4083223.mp3str"
[deps]
source_file="res://resources/sounds/effect/Low Boing.mp3"
dest_files=["res://.godot/imported/Low Boing.mp3-0d7a95e69d755f2863239a9cb4083223.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file not shown.
@@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://4wuuf1osk0yv"
path="res://.godot/imported/Low Boing.wav-77ba2997ec1fde807e119827deea2e73.sample"
[deps]
source_file="res://resources/sounds/effect/Low Boing.wav"
dest_files=["res://.godot/imported/Low Boing.wav-77ba2997ec1fde807e119827deea2e73.sample"]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=0
+3
View File
@@ -7,6 +7,8 @@ var targetPlayer: EntityBase = null
@onready var texture: Sprite2D = $"%texture"
func _ready():
apply_force(MathTool.randv2_range(20000), MathTool.randv2_range(10))
func _process(_delta):
texture.texture = ItemStore.getTexture(item)
func _physics_process(_delta):
@@ -14,6 +16,7 @@ func _physics_process(_delta):
targetPlayer = findPlayer()
if is_instance_valid(targetPlayer):
apply_central_force((targetPlayer.position - position).normalized() * 1000)
func findPlayer() -> EntityBase:
var result = null
var lastDistance = INF