diff options
author | rom <romangraef@gmail.com> | 2021-04-26 13:24:19 +0200 |
---|---|---|
committer | rom <romangraef@gmail.com> | 2021-04-26 13:24:19 +0200 |
commit | b66eb089dbce08f4d38df39f373718194febcb61 (patch) | |
tree | 727d457c82b9fe899edc7bb931672455b469fa4f /components | |
parent | 33609f3d9ac89116e23eb561c027b04c9658e242 (diff) | |
download | ldjam48-b66eb089dbce08f4d38df39f373718194febcb61.tar.gz ldjam48-b66eb089dbce08f4d38df39f373718194febcb61.tar.bz2 ldjam48-b66eb089dbce08f4d38df39f373718194febcb61.zip |
[sparta] fix pause
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): |