differentiated explosion volumes and fixed mine explosion sound not playing

This commit is contained in:
pennyrigate 2024-07-11 17:33:24 -04:00
parent 8a3fc9be82
commit 7cbf467c81
4 changed files with 9 additions and 2 deletions

View file

@ -1,7 +1,12 @@
extends Node2D
var quiet = false
func _ready() -> void:
Audio.play_sound(Audio.a_explosion,Audio.ac_die)
if quiet:
Audio.play_sound(Audio.a_explosion,Audio.ac_small_explosion)
else:
Audio.play_sound(Audio.a_explosion,Audio.ac_die)
var sprite: AnimatedSprite = get_child(randi() % get_child_count())
sprite.visible = true
sprite.play()