diff options
author | IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com> | 2022-07-17 06:33:18 +0200 |
---|---|---|
committer | IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com> | 2022-07-17 06:33:18 +0200 |
commit | 6cdf5b1fc587bfa7f3ed8b3388c232269946a5da (patch) | |
tree | 24a3c1b8215f0a8ab03afaac7ea0deecc8040882 /godot/scenes/Game.gd | |
parent | 2463d0532a63ae4d7f67dbd56d9d886b214b2ac5 (diff) | |
download | 2022-6cdf5b1fc587bfa7f3ed8b3388c232269946a5da.tar.gz 2022-6cdf5b1fc587bfa7f3ed8b3388c232269946a5da.tar.bz2 2022-6cdf5b1fc587bfa7f3ed8b3388c232269946a5da.zip |
small UI changes
Diffstat (limited to 'godot/scenes/Game.gd')
-rw-r--r-- | godot/scenes/Game.gd | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/godot/scenes/Game.gd b/godot/scenes/Game.gd index 58c9e27..d2dc2ed 100644 --- a/godot/scenes/Game.gd +++ b/godot/scenes/Game.gd @@ -41,6 +41,11 @@ func _on_ResumeButton_pressed(): Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED) +func _on_MainMenuButton_pressed(): + get_tree().paused = false + get_tree().change_scene("res://scenes/levels/MainMenu.tscn") + + func end_level(): # save current strokes and reset strokes_per_level[current_level_id] = current_strokes @@ -80,7 +85,7 @@ func next_level(): current_level_id = current_level_id + 1 if current_level_id >= NUM_LEVELS: - # TODO load main menu + get_tree().change_scene("res://scenes/levels/MainMenu.tscn") return # load next level |