2025-10-23 23:03:52 +02:00

20 lines
520 B
GDScript

extends Control
@onready var option_popup = $OptionPopup
func _ready():
$TextureRect/start.connect("pressed", Callable(self, "_on_start_pressed"))
$TextureRect/exit.connect("pressed", Callable(self, "_on_exit_pressed"))
$TextureRect/option.connect("pressed", Callable(self, "_on_Opcje_pressed"))
func _on_Opcje_pressed():
option_popup.popup_centered()
func _on_start_pressed():
get_tree().change_scene_to_file("res://scenes/galaxy.tscn")
MusicManager.play_music()
func _on_exit_pressed():
get_tree().quit()