Add pause menu functionality and update collectable nodes with collision shapes

This commit is contained in:
2025-05-03 15:10:50 +02:00
parent e286908e46
commit 9dabff474d
12 changed files with 249 additions and 5 deletions

View File

@@ -123,3 +123,15 @@ func unlock_level(level_index: int) -> void:
func try_to_go_to_next_level() -> void:
if player_state["current_level"] + 1 < level_scenes.size() and player_state["current_level"] + 1 in player_state["unlocked_levels"]:
player_state["current_level"] += 1
func quit_game() -> void:
get_tree().quit()
func pause_game() -> void:
Engine.time_scale = 0
func resume_game() -> void:
Engine.time_scale = 1