This commit is contained in:
Nicholas Butzke
2026-08-02 02:20:02 -04:00
parent 61669627db
commit 922983429e
226 changed files with 34032 additions and 18521 deletions
+1 -6
View File
@@ -19,16 +19,11 @@ func _start_homing_effects() -> void:
# Audio
flight_sound = AudioStreamPlayer3D.new()
flight_sound.bus = "SFX"
flight_sound.stream = load("res://assets/sounds/swarm_flight.wav")
AudioManager.configure_player(flight_sound, "swarm_flight")
flight_sound.autoplay = true
if flight_sound.stream is AudioStreamWAV:
flight_sound.stream.loop_mode = AudioStreamWAV.LOOP_FORWARD
flight_sound.stream.loop_end = flight_sound.stream.data.size() / 2 # mono 16-bit frames
flight_sound.unit_size = 6.0
flight_sound.max_db = 0.0
flight_sound.max_distance = 45.0
flight_sound.volume_db = -10.0
flight_sound.add_to_group("acoustic_occluded") # muffles behind walls
add_child(flight_sound)
flight_sound.play()