mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-13 19:04:54 +01:00
28 lines
586 B
GDScript
28 lines
586 B
GDScript
extends Control
|
|
|
|
|
|
func _ready():
|
|
#check_correct_lang_item()
|
|
if !OS.has_feature("standalone") and !game.skipped_title:
|
|
game.skipped_title = true
|
|
get_tree().change_scene("res://scenes/level_select.tscn")
|
|
|
|
#make_popup_items()
|
|
|
|
|
|
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")
|