Tomasz Boruc 1020d96c00 Dodanie surowców/czas gry
Zródło surowców - true/false
Dalsza implementacja czasu gry
2025-10-25 16:21:26 +02:00

21 lines
545 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():
Manager.game_time = 0.0
get_tree().change_scene_to_file("res://scenes/galaxy.tscn")
MusicManager.play_music()
func _on_exit_pressed():
get_tree().quit()