2023-10-18 06:09:00 +02:00
|
|
|
extends Control
|
|
|
|
|
|
|
|
|
2023-10-20 19:23:10 +02:00
|
|
|
var game_data = load("res://scripts/data/data.gd").new()
|
|
|
|
|
|
|
|
func _ready():
|
|
|
|
var data = game_data.load_data()
|
|
|
|
if data == null:
|
|
|
|
game_data.save_data({
|
|
|
|
"debug": false,
|
|
|
|
"unlocked_stage": 1
|
|
|
|
})
|
|
|
|
|
2023-10-18 06:09:00 +02:00
|
|
|
func _on_start_game_pressed():
|
|
|
|
get_tree().change_scene_to_file("res://scenes/ui/select_stage.tscn")
|
|
|
|
|
|
|
|
func _on_how_to_play_pressed():
|
|
|
|
get_tree().change_scene_to_file("res://scenes/ui/how_to_play.tscn")
|
|
|
|
|
|
|
|
func _on_about_pressed():
|
|
|
|
get_tree().change_scene_to_file("res://scenes/ui/about.tscn")
|
|
|
|
|
|
|
|
func _on_exit_pressed():
|
|
|
|
get_tree().quit()
|