Score = combo x point value (configurable, default 1); difficulty score-only at 8000
This commit is contained in:
+1
-25
@@ -4,7 +4,6 @@ extends CanvasLayer
|
||||
## scena applicando i nuovi valori.
|
||||
|
||||
var rows := {} # key -> {slider, spin}
|
||||
var curve_option: OptionButton
|
||||
var zen_cb: CheckButton
|
||||
var gentle_cb: CheckButton
|
||||
|
||||
@@ -52,8 +51,7 @@ func _build() -> void:
|
||||
var entries := [
|
||||
["start_time", "Tempo iniziale (s)", 1.0, 10.0, 0.1],
|
||||
["min_time", "Tempo minimo (s)", 0.3, 3.0, 0.1],
|
||||
["time_ramp", "Rampa tempo (s)", 30.0, 600.0, 10.0],
|
||||
["score_ramp", "Rampa punteggio", 100.0, 10000.0, 100.0],
|
||||
["score_ramp", "Punteggio per velocità max", 100.0, 20000.0, 100.0],
|
||||
["points_per_combo", "Punti per combo", 1.0, 50.0, 1.0],
|
||||
["max_combo", "Combo massimo", 1.0, 20.0, 1.0],
|
||||
["combo_decay_threshold", "Soglia decay combo", 0.0, 30.0, 1.0],
|
||||
@@ -63,24 +61,6 @@ func _build() -> void:
|
||||
for e in entries:
|
||||
rows[e[0]] = _build_row(vb, e[0], e[1], e[2], e[3], e[4])
|
||||
|
||||
# selettore curva punteggio
|
||||
var ccurve := HBoxContainer.new()
|
||||
ccurve.add_theme_constant_override("separation", 6)
|
||||
vb.add_child(ccurve)
|
||||
var clbl := Label.new()
|
||||
clbl.text = "Curva punteggio"
|
||||
clbl.custom_minimum_size.x = 230
|
||||
ccurve.add_child(clbl)
|
||||
curve_option = OptionButton.new()
|
||||
curve_option.custom_minimum_size.x = 360
|
||||
curve_option.add_item("Quadratica (attuale)")
|
||||
curve_option.add_item("A scaglioni (ogni 5 tap)")
|
||||
curve_option.add_item("Radice quadrata")
|
||||
curve_option.add_item("Additiva (base + combo)")
|
||||
curve_option.select(Settings.score_curve)
|
||||
curve_option.item_selected.connect(func(idx: int): Settings.score_curve = idx)
|
||||
ccurve.add_child(curve_option)
|
||||
|
||||
# opzioni accessibilità / neurodivergenza
|
||||
zen_cb = CheckButton.new()
|
||||
zen_cb.text = "Modalità Zen (senza tempo)"
|
||||
@@ -156,8 +136,6 @@ func show_menu() -> void:
|
||||
var val: float = Settings.get(key)
|
||||
rows[key].slider.value = val
|
||||
rows[key].spin.value = val
|
||||
if curve_option:
|
||||
curve_option.select(Settings.score_curve)
|
||||
if zen_cb:
|
||||
zen_cb.button_pressed = Settings.zen_mode
|
||||
if gentle_cb:
|
||||
@@ -183,8 +161,6 @@ func _on_reset() -> void:
|
||||
var val: float = Settings.get(key)
|
||||
rows[key].slider.value = val
|
||||
rows[key].spin.value = val
|
||||
if curve_option:
|
||||
curve_option.select(Settings.score_curve)
|
||||
if zen_cb:
|
||||
zen_cb.button_pressed = Settings.zen_mode
|
||||
if gentle_cb:
|
||||
|
||||
Reference in New Issue
Block a user