diff options
Diffstat (limited to 'scenes/menu.gd')
-rw-r--r-- | scenes/menu.gd | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scenes/menu.gd b/scenes/menu.gd index 3053744..6ed7929 100644 --- a/scenes/menu.gd +++ b/scenes/menu.gd @@ -27,11 +27,18 @@ func _on_Back_on_click(): func _difficulty_text(): if Settings.difficulty == Settings.Difficulty.HARD: $Content/CustomLabel.text = "Hard" + elif Settings.difficulty == Settings.Difficulty.PEACEFUL: + $Content/CustomLabel.text = "Peaceful" else: $Content/CustomLabel.text = "Easy" func _on_HardMode_on_click(): - Settings.difficulty = 1 - Settings.difficulty + if Settings.difficulty == Settings.Difficulty.EASY: + Settings.difficulty = Settings.Difficulty.HARD + elif Settings.difficulty == Settings.Difficulty.HARD: + Settings.difficulty = Settings.Difficulty.PEACEFUL + else: + Settings.difficulty = Settings.Difficulty.EASY _difficulty_text() Settings.save() |