init
This commit is contained in:
commit
18efc36800
161 changed files with 5008 additions and 0 deletions
13
scripts/explosion_player.gd
Normal file
13
scripts/explosion_player.gd
Normal file
|
@ -0,0 +1,13 @@
|
|||
extends Node
|
||||
|
||||
@export var explosions: Array[AudioStream]
|
||||
@export var alarms: Array[AudioStream]
|
||||
|
||||
|
||||
func play_explosion():
|
||||
var sound = explosions.pick_random()
|
||||
SoundManager.play_sound(sound)
|
||||
|
||||
func play_alarm():
|
||||
var sound = alarms.pick_random()
|
||||
SoundManager.play_sound(sound)
|
Loading…
Add table
Add a link
Reference in a new issue