diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/Settings.gd | 6 |
1 files changed, 6 insertions, 0 deletions
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): |