Phase 1a: GameState-Logik, Save/Load, Hauptmenue, Imogen-Testfall

- GameState: Stats, Klinge-Herz-Achse, Beziehungen, Menschlichkeit,
  Permadeath inkl. Klemmung, Signalen und Save-Serialisierung
- RelationshipSystem als Zugriffs-Fassade ueber GameState
- SaveSystem: JSON-Save/Load nach user:// mit Fehlerbehandlung
- Hauptmenue (neue Main Scene): Start/Fortsetzen/Beenden, fokus-navigierbar
  mit Tastatur und Controller, Fortsetzen nur bei vorhandenem Save
- Imogen-Platzhalter in test_ground: Area3D-Trigger, Prompt, Konsolen-Zeile,
  Beziehungs-Zuwachs (NPC-ID imogen) mit 2-s-Cooldown
- Debug-Overlay: Stats, Klinge-Herz, Beziehung Imogen, Permadeath
- Interim: menu-Action in der Testszene speichert und kehrt ins Menue zurueck
- Input-Map: slide (C/L2) und jump (Leertaste/A-Kreuz) laut neuer SPEC 9
  verdrahtet, Mechanik folgt in Phase 1b
- SPEC-Update (Roadmap, slide/jump) und Phase-1a-Prompt eingecheckt

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
danny 2026-07-04 16:25:59 +02:00
parent 06ab09dfdd
commit df795ef40d
12 changed files with 523 additions and 28 deletions

58
scenes/ui/main_menu.tscn Normal file
View file

@ -0,0 +1,58 @@
[gd_scene load_steps=2 format=3]
[ext_resource type="Script" path="res://scripts/ui/main_menu.gd" id="1_menu"]
[node name="MainMenu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_menu")
[node name="Background" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.07, 0.08, 0.1, 1)
[node name="CenterContainer" type="CenterContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
layout_mode = 2
theme_override_constants/separation = 16
[node name="TitleLabel" type="Label" parent="CenterContainer/VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 56
text = "Windgeschworen"
horizontal_alignment = 1
[node name="TitleSpacer" type="Control" parent="CenterContainer/VBoxContainer"]
custom_minimum_size = Vector2(0, 24)
layout_mode = 2
[node name="StartButton" type="Button" parent="CenterContainer/VBoxContainer"]
custom_minimum_size = Vector2(260, 48)
layout_mode = 2
text = "Neues Spiel"
[node name="ContinueButton" type="Button" parent="CenterContainer/VBoxContainer"]
custom_minimum_size = Vector2(260, 48)
layout_mode = 2
text = "Fortsetzen"
[node name="QuitButton" type="Button" parent="CenterContainer/VBoxContainer"]
custom_minimum_size = Vector2(260, 48)
layout_mode = 2
text = "Beenden"