mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-24 16:20:08 +01:00
Auto-forward to level select when run from editor
This commit is contained in:
parent
7903a8d9f3
commit
fd58638753
3 changed files with 5 additions and 2 deletions
|
@ -51,7 +51,7 @@ _global_script_class_icons={
|
||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="git-hydra"
|
config/name="git-hydra"
|
||||||
run/main_scene="res://scenes/level_select.tscn"
|
run/main_scene="res://scenes/title.tscn"
|
||||||
config/use_custom_user_dir=true
|
config/use_custom_user_dir=true
|
||||||
boot_splash/bg_color=Color( 0, 0, 0, 1 )
|
boot_splash/bg_color=Color( 0, 0, 0, 1 )
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ var used_cards = false
|
||||||
|
|
||||||
var current_chapter = 0
|
var current_chapter = 0
|
||||||
var current_level = 0
|
var current_level = 0
|
||||||
|
var skipped_title = false
|
||||||
|
|
||||||
var _file = "user://savegame.json"
|
var _file = "user://savegame.json"
|
||||||
var state = {}
|
var state = {}
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
extends Control
|
extends Control
|
||||||
|
|
||||||
func _ready():
|
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():
|
func quit():
|
||||||
get_tree().quit()
|
get_tree().quit()
|
||||||
|
|
Loading…
Reference in a new issue