1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-05 19:27:15 +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
+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