working settings menu
includes audio sliders, fullscreen, disabling gravity change sound
This commit is contained in:
parent
eefda9e2bd
commit
a73b32610e
9 changed files with 197 additions and 4 deletions
|
@ -58,8 +58,10 @@ func _input(ev: InputEvent) -> void:
|
|||
|
||||
if $AnimationPlayer.is_playing():
|
||||
$AnimationPlayer.stop()
|
||||
$AudioStreamPlayer.play()
|
||||
$AnimationPlayer.play(\"grow_fadeout\")
|
||||
|
||||
if Settings.sound_on_gravity_change:
|
||||
$AudioStreamPlayer.play()
|
||||
"
|
||||
|
||||
[sub_resource type="Animation" id="Animation_6rwl4"]
|
||||
|
@ -161,3 +163,4 @@ libraries = {
|
|||
stream = ExtResource("2_5uwlw")
|
||||
volume_db = -6.0
|
||||
mix_target = 2
|
||||
bus = &"Sounds"
|
||||
|
|
|
@ -31,5 +31,6 @@ shape = SubResource("CylinderShape3D_tgirv")
|
|||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||
stream = SubResource("AudioStreamRandomizer_251sn")
|
||||
bus = &"Sounds"
|
||||
|
||||
[connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue