game1: add debug utils to skip to specific levels

This commit is contained in:
Alice Gaudon 2020-08-19 13:01:47 +02:00
parent 4f2068729a
commit 8798cb17b0

View File

@ -16,11 +16,20 @@ onready var levels = [
'Level5',
]
export var skipToLevel = ''
var current_level = -1
var spawn_pos = Vector2()
var exit_points = []
func _ready():
if skipToLevel != '':
$Opening1.queue_free()
start_game()
while levels[current_level] != skipToLevel:
next_level()
return
$Opening1.play('default')
yield($Opening1, 'animation_finished')
$Opening1.queue_free()