mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-03 19:04:40 +01:00
23 lines
587 B
GDScript
23 lines
587 B
GDScript
extends Control
|
|
|
|
func _ready():
|
|
if !OS.has_feature("standalone") and !game.skipped_title:
|
|
game.skipped_title = true
|
|
get_tree().change_scene_to_file("res://scenes/level_select.tscn")
|
|
|
|
func quit():
|
|
get_tree().quit()
|
|
|
|
#ehelemals levels()
|
|
func open_level_select():
|
|
get_tree().change_scene_to_file("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_to_file("res://scenes/main.tscn")
|