Added music, best times, more backgrounds and more levels

This commit is contained in:
2024-05-07 18:13:53 +01:00
parent 6f6b1f4b80
commit 0017d49923
38 changed files with 769 additions and 166 deletions

View File

@@ -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()