Update Level 1.tscn, Level 2.tscn, Level 3.tscn, and 9 more files
This commit is contained in:
parent
f470efbe1f
commit
89cfa2882a
12 changed files with 204 additions and 112 deletions
|
|
@ -17,6 +17,7 @@ func _process(delta):
|
|||
func load_next_level():
|
||||
if current_level+1 < levels.size():
|
||||
get_tree().change_scene_to_file(levels[current_level+1].level_path)
|
||||
current_level += 1
|
||||
else:
|
||||
print("end of game reached!")
|
||||
get_tree().change_scene_to_file(menu_scene_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue