CR 16: Permadeath raus — Tod führt auf den letzten Spielstand, ESC-Save
- is_permadeath_enabled komplett ausgebaut (GameState, Save-Feld, Hauptmenü-Toggle, Debug-Overlay-Zeile) - SaveSystem.reload_last_save(): lädt Spielstand + gespeicherte Szene; ohne Spielstand startet der Lauf frisch am Viadukt — verdrahtet an Viadukt-KillZone, Tag-9-QTE (Schleife raus, Weiche bleibt über den Tages-Replay erhalten) und Smàladhs Dreschen-Prüfung - Gauntlet-Stürze behalten Checkpoint-/Ernstlauf-Respawn, Jacks Niederlage ihren Fail-Pfad (Ausgänge bleiben spielrelevant) - Neues ESC-Pausenmenü in player.tscn: Weiterspielen, Speichern mit „Gespeichert."-Feedback, Hauptmenü, Beenden; exklusiv zum Lexicon - DialogueSystem: _wait_for_line übersteht Szenenwechsel mitten in der Zeile (is_instance_valid-Guard) - Buchführung: CR 16 nach CHANGEREQUESTS_DONE, ROADMAP-Status nachgezogen Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
f18e6d3a4d
commit
a38398c3ec
37 changed files with 829 additions and 203 deletions
|
|
@ -16,7 +16,6 @@ const MATURE_GATE_SCENE := preload("res://scenes/ui/mature_gate.tscn")
|
|||
|
||||
@onready var _start_button: Button = $CenterContainer/VBoxContainer/StartButton
|
||||
@onready var _continue_button: Button = $CenterContainer/VBoxContainer/ContinueButton
|
||||
@onready var _permadeath_button: Button = $CenterContainer/VBoxContainer/PermadeathButton
|
||||
@onready var _explicit_button: Button = $CenterContainer/VBoxContainer/ExplicitButton
|
||||
@onready var _quit_button: Button = $CenterContainer/VBoxContainer/QuitButton
|
||||
|
||||
|
|
@ -28,10 +27,8 @@ func _ready() -> void:
|
|||
_continue_button.visible = SaveSystem.has_save()
|
||||
_start_button.pressed.connect(_on_start_pressed)
|
||||
_continue_button.pressed.connect(_on_continue_pressed)
|
||||
_permadeath_button.pressed.connect(_on_permadeath_pressed)
|
||||
_explicit_button.pressed.connect(_on_explicit_pressed)
|
||||
_quit_button.pressed.connect(_on_quit_pressed)
|
||||
_update_permadeath_text()
|
||||
_update_explicit_text()
|
||||
if not MatureContentGate.is_age_confirmed:
|
||||
var gate := MATURE_GATE_SCENE.instantiate()
|
||||
|
|
@ -89,14 +86,6 @@ func _on_continue_pressed() -> void:
|
|||
get_tree().change_scene_to_file(target)
|
||||
|
||||
|
||||
## Schaltet Permadeath um (SPEC Abschnitt 6: Toggle, Default AN). Die
|
||||
## Wahl übersteht GameState.reset() und wird beim Speichern im Spielstand
|
||||
## abgelegt; Fortsetzen stellt den gespeicherten Zustand wieder her.
|
||||
func _on_permadeath_pressed() -> void:
|
||||
GameState.is_permadeath_enabled = not GameState.is_permadeath_enabled
|
||||
_update_permadeath_text()
|
||||
|
||||
|
||||
## Beendet das Spiel.
|
||||
func _on_quit_pressed() -> void:
|
||||
get_tree().quit()
|
||||
|
|
@ -109,11 +98,6 @@ func _on_explicit_pressed() -> void:
|
|||
_update_explicit_text()
|
||||
|
||||
|
||||
## Hält den Toggle-Text synchron zum GameState.
|
||||
func _update_permadeath_text() -> void:
|
||||
_permadeath_button.text = "Permadeath: %s" % ("AN" if GameState.is_permadeath_enabled else "AUS")
|
||||
|
||||
|
||||
## Hält den Explizit-Toggle-Text synchron zum MatureContentGate.
|
||||
func _update_explicit_text() -> void:
|
||||
_explicit_button.text = "Explizite Inhalte: %s" % ("AN" if MatureContentGate.is_explicit_enabled else "AUS")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue