diff options
Diffstat (limited to 'Scripts/game.gd')
-rw-r--r-- | Scripts/game.gd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Scripts/game.gd b/Scripts/game.gd index 42918c5..72a01e3 100644 --- a/Scripts/game.gd +++ b/Scripts/game.gd @@ -1,6 +1,6 @@ extends Node2D -const NUM_LEVELS = 3 +const NUM_LEVELS = 2 # level control var current_level_id = 0 @@ -54,7 +54,7 @@ func next_level(): current_level_id += 1 if current_level_id >= NUM_LEVELS: - get_tree().change_scene("res://scenes/levels/MainMenu.tscn") + get_tree().change_scene_to_file("res://Nodes/main_menu.tscn") return load_scene_by_index(current_level_id) |