From b66eb089dbce08f4d38df39f373718194febcb61 Mon Sep 17 00:00:00 2001 From: rom Date: Mon, 26 Apr 2021 13:24:19 +0200 Subject: [sparta] fix pause --- components/Settings.gd | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'components') diff --git a/components/Settings.gd b/components/Settings.gd index f6f0b41..a3cdd6b 100644 --- a/components/Settings.gd +++ b/components/Settings.gd @@ -1,6 +1,10 @@ extends Node +enum Difficulty {EASY, HARD} + var sound_level : int = 100 +var difficulty = Difficulty.EASY + ########## # LOADER # @@ -12,10 +16,12 @@ const _SETTINGS_PATH = "user://settings.json" func _save_data(): return { 'sound_level': sound_level, + 'difficulty': difficulty, } func _load_data(json): sound_level = json['sound_level'] + difficulty = json['difficulty'] func _load(): if _file.file_exists(_SETTINGS_PATH): -- cgit