oh-my-git/scenes/title.gd

22 lines
532 B
GDScript

extends Control
func _ready():
if !OS.has_feature("standalone") and !game.skipped_title:
game.skipped_title = true
get_tree().change_scene("res://scenes/level_select.tscn")
func quit():
get_tree().quit()
func levels():
get_tree().change_scene("res://scenes/level_select.tscn")
func on_survey_pressed():
game.open_survey()
func sandbox():
game.current_chapter = levels.chapters.size() - 1
game.current_level = levels.chapters[game.current_chapter].levels.size() -1
get_tree().change_scene("res://scenes/main.tscn")