mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-15 19:04:57 +01:00
22 lines
532 B
GDScript
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")
|