differentiated explosion volumes and fixed mine explosion sound not playing
This commit is contained in:
parent
8a3fc9be82
commit
7cbf467c81
4 changed files with 9 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue