Added music, best times, more backgrounds and more levels
This commit is contained in:
10
Settings.gd
10
Settings.gd
@@ -3,7 +3,8 @@ extends Node2D
|
||||
func _ready() -> void:
|
||||
$VBoxContainer/HBoxContainer/LeftPanel/Relative.button_pressed = Global.relative_mouse
|
||||
$VBoxContainer/HBoxContainer/LeftPanel/Absolute.button_pressed = !Global.relative_mouse
|
||||
$VBoxContainer/HBoxContainer/RightPanel/Volume.set_value_no_signal(Global.volume)
|
||||
$VBoxContainer/HBoxContainer/RightPanel/Music.set_value_no_signal(Global.music_volume)
|
||||
$VBoxContainer/HBoxContainer/RightPanel/Effects.set_value_no_signal(Global.effects_volume)
|
||||
|
||||
func _on_relative_pressed() -> void:
|
||||
Global.relative_mouse = true
|
||||
@@ -14,6 +15,9 @@ func _on_absolute_pressed() -> void:
|
||||
func _on_exit_pressed() -> void:
|
||||
get_tree().change_scene_to_file("res://Intro.tscn")
|
||||
|
||||
func _on_volume_drag_ended(value_changed: bool) -> void:
|
||||
Global.volume = $VBoxContainer/HBoxContainer/RightPanel/Volume.value
|
||||
func _on_music_volume_drag_ended(value_changed: bool) -> void:
|
||||
Global.music_volume = $VBoxContainer/HBoxContainer/RightPanel/Music.value
|
||||
|
||||
func _on_effects_volume_drag_ended(value_changed: bool) -> void:
|
||||
Global.effects_volume = $VBoxContainer/HBoxContainer/RightPanel/Effects.value
|
||||
$Boink.play()
|
||||
|
||||
Reference in New Issue
Block a user