game1: add debug utils to skip to specific levels
This commit is contained in:
parent
4f2068729a
commit
8798cb17b0
@ -16,11 +16,20 @@ onready var levels = [
|
|||||||
'Level5',
|
'Level5',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
export var skipToLevel = ''
|
||||||
|
|
||||||
var current_level = -1
|
var current_level = -1
|
||||||
var spawn_pos = Vector2()
|
var spawn_pos = Vector2()
|
||||||
var exit_points = []
|
var exit_points = []
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
|
if skipToLevel != '':
|
||||||
|
$Opening1.queue_free()
|
||||||
|
start_game()
|
||||||
|
while levels[current_level] != skipToLevel:
|
||||||
|
next_level()
|
||||||
|
return
|
||||||
|
|
||||||
$Opening1.play('default')
|
$Opening1.play('default')
|
||||||
yield($Opening1, 'animation_finished')
|
yield($Opening1, 'animation_finished')
|
||||||
$Opening1.queue_free()
|
$Opening1.queue_free()
|
||||||
|
Loading…
Reference in New Issue
Block a user