Auto-forward to level select when run from editor

This commit is contained in:
blinry 2021-01-28 12:08:12 +01:00
parent 7903a8d9f3
commit fd58638753
3 changed files with 5 additions and 2 deletions

View file

@ -10,6 +10,7 @@ var used_cards = false
var current_chapter = 0
var current_level = 0
var skipped_title = false
var _file = "user://savegame.json"
var state = {}

View file

@ -1,7 +1,9 @@
extends Control
func _ready():
pass
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()