Add methods for sound ambiant & click object

This commit is contained in:
VAILLANT Jeremy
2021-05-23 15:10:20 +02:00
parent 8dfbc94887
commit cb1d8ed489
3 changed files with 19 additions and 17 deletions
-4
View File
@@ -8,7 +8,6 @@ onready var last_btn = null
func _ready():
_display_hud_menu()
_play_ambiant_sound()
func _display_hud_menu():
var counter = 0
@@ -21,9 +20,6 @@ func _display_hud_menu():
label_id = scene.label_id()
counter = +1
func _play_ambiant_sound():
$AmbiantSound.play()
# Back to main scene
func _on_TextureButton_pressed():
print("[levels#_on_TextureButton_pressed] quit to menu")
+2
View File
@@ -742,6 +742,8 @@ shape = SubResource( 18 )
[node name="Quit" parent="." instance=ExtResource( 45 )]
[node name="ObjectFind" type="AudioStreamPlayer" parent="."]
[node name="AmbiantSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 46 )
volume_db = -15.0