new channels

This commit is contained in:
pennyrigate 2024-07-11 16:54:16 -04:00
parent 9ea457e21d
commit a6374aa311
3 changed files with 13 additions and 1 deletions

View file

@ -13,6 +13,9 @@ onready var ac_pause_music = $PauseMusic
onready var ac_menu = $MenuSound
onready var ac_land = $LandSound
onready var ac_voice = $Voice
onready var ac_small_explosion = $SmallExplosion
onready var ac_mech_hurt = $MechHurt
onready var ac_mech_shoot = $MechShoot
#Sounds
const a_key = preload("res://audio/sounds/key.ogg")
const a_arrow = preload("res://audio/sounds/arrow_collect.ogg")

View file

@ -53,4 +53,13 @@ volume_db = -15.0
[node name="Voice" type="AudioStreamPlayer" parent="."]
volume_db = -5.0
[node name="SmallExplosion" type="AudioStreamPlayer" parent="."]
volume_db = -24.0
[node name="MechHurt" type="AudioStreamPlayer" parent="."]
volume_db = -10.0
[node name="MechShoot" type="AudioStreamPlayer" parent="."]
volume_db = -20.0
[connection signal="finished" from="ShardSound" to="." method="_on_ShardSound_finished"]

View file

@ -95,7 +95,7 @@ func land(duck: bool) -> void:
func shoot() -> void:
set_energy(energy - bullet_energy)
Audio.play_sound(Audio.a_vulcan,Audio.ac_menu)
Audio.play_sound(Audio.a_vulcan,Audio.ac_mech_shoot)
for pos in bullet_positions.get_children():
var bullet = Bullet.instance()
bullet.global_position = pos.global_position