2020-12-23 12:01:07 +01:00
|
|
|
extends Control
|
|
|
|
|
|
|
|
func _ready():
|
2021-01-28 12:08:12 +01:00
|
|
|
if !OS.has_feature("standalone") and !game.skipped_title:
|
|
|
|
game.skipped_title = true
|
2023-09-06 16:04:23 +02:00
|
|
|
get_tree().change_scene_to_file("res://scenes/level_select.tscn")
|
2020-12-23 12:01:07 +01:00
|
|
|
|
|
|
|
func quit():
|
|
|
|
get_tree().quit()
|
|
|
|
|
2023-09-06 16:04:23 +02:00
|
|
|
#ehelemals levels()
|
|
|
|
func open_level_select():
|
|
|
|
get_tree().change_scene_to_file("res://scenes/level_select.tscn")
|
2021-01-28 11:55:53 +01:00
|
|
|
|
|
|
|
|
|
|
|
func on_survey_pressed():
|
|
|
|
game.open_survey()
|
2021-02-04 15:19:54 +01:00
|
|
|
|
|
|
|
|
|
|
|
func sandbox():
|
|
|
|
game.current_chapter = levels.chapters.size() - 1
|
|
|
|
game.current_level = levels.chapters[game.current_chapter].levels.size() -1
|
2023-09-06 16:04:23 +02:00
|
|
|
get_tree().change_scene_to_file("res://scenes/main.tscn")
|