Sensory-friendly: soft sine sounds, pentatonic ball tones, gentle errors, Zen mode
This commit is contained in:
+10
-1
@@ -4,7 +4,7 @@ extends Node
|
||||
## al riavvio della scena.
|
||||
|
||||
const PATH := "user://settings.cfg"
|
||||
const VERSION := 2 # incrementa quando cambiano i default, per resettare i file vecchi
|
||||
const VERSION := 3 # incrementa quando cambiano i default, per resettare i file vecchi
|
||||
var version := VERSION
|
||||
|
||||
var start_time := 4.5 # tempo iniziale (s) tra un ordine e l'altro
|
||||
@@ -18,6 +18,9 @@ var combo_decay_rate := 0.15 # combo persi al secondo per unità sopra la s
|
||||
var difficulty_decay_rate := 0.3 # decay aggiuntivo legato alla difficoltà
|
||||
# Curva del punteggio: 0=quadratica, 1=scaglioni, 2=radice, 3=additiva
|
||||
var score_curve := 0
|
||||
# Accessibilità / neurodivergenza
|
||||
var gentle_errors := true # errore: combo -1 invece di azzerare
|
||||
var zen_mode := false # modalità senza tempo (niente countdown né decay)
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
@@ -44,6 +47,8 @@ func load_settings() -> void:
|
||||
combo_decay_rate = cfg.get_value("gameplay", "combo_decay_rate", combo_decay_rate)
|
||||
difficulty_decay_rate = cfg.get_value("gameplay", "difficulty_decay_rate", difficulty_decay_rate)
|
||||
score_curve = cfg.get_value("gameplay", "score_curve", score_curve)
|
||||
gentle_errors = cfg.get_value("accessibility", "gentle_errors", gentle_errors)
|
||||
zen_mode = cfg.get_value("accessibility", "zen_mode", zen_mode)
|
||||
|
||||
|
||||
func save_settings() -> void:
|
||||
@@ -59,6 +64,8 @@ func save_settings() -> void:
|
||||
cfg.set_value("gameplay", "combo_decay_rate", combo_decay_rate)
|
||||
cfg.set_value("gameplay", "difficulty_decay_rate", difficulty_decay_rate)
|
||||
cfg.set_value("gameplay", "score_curve", score_curve)
|
||||
cfg.set_value("accessibility", "gentle_errors", gentle_errors)
|
||||
cfg.set_value("accessibility", "zen_mode", zen_mode)
|
||||
cfg.save(PATH)
|
||||
|
||||
|
||||
@@ -73,3 +80,5 @@ func reset_defaults() -> void:
|
||||
combo_decay_rate = 0.15
|
||||
difficulty_decay_rate = 0.3
|
||||
score_curve = 0
|
||||
gentle_errors = true
|
||||
zen_mode = false
|
||||
|
||||
Reference in New Issue
Block a user