aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts/game.gd
diff options
context:
space:
mode:
authorLibravatar perivesta <>2023-07-08 21:41:51 +0200
committerLibravatar perivesta <>2023-07-08 21:41:51 +0200
commit0d31b1a2bd4658263d957971a3877ef30383eac2 (patch)
tree2dcc4a9d10d2ca3c90c55865799a46414abf3336 /Scripts/game.gd
parent9d03b489eedeb69b1330e6b627400d853dd7547a (diff)
download2023-0d31b1a2bd4658263d957971a3877ef30383eac2.tar.gz
2023-0d31b1a2bd4658263d957971a3877ef30383eac2.tar.bz2
2023-0d31b1a2bd4658263d957971a3877ef30383eac2.zip
some bug fixes
Diffstat (limited to 'Scripts/game.gd')
-rw-r--r--Scripts/game.gd4
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)