Phase 3: Charakter-Anlage + Viadukt-Set-Piece mit Wren-Moment

- Charakter-Anlage (character_creation.tscn): Namenseingabe mit Default
  Tyrveil, Enter/confirm bestaetigt, cancel zurueck; Controller nutzt den
  Tastatur-Fallback mit bestaetigbarem Default (virtuelle Tastatur bewusst
  ausgelassen, nur Mobile/Web nativ); Name in GameState.player_name,
  erscheint in der Dialog-Box
- Neues Spiel: Hauptmenue -> Charakter-Anlage -> Viadukt -> (Platzhalter-
  Uebergang) Reiterquadrant; Fortsetzen unveraendert
- Viadukt (scenes/viaduct): vier kurze Segmente - schmaler Steg mit
  Sprung-Luecke und Gelaender-Stuecken, Kletter-Engstelle (Mechanik aus
  Phase 1b), Wren-Moment, Endplattform mit Uebergang; cineastischer
  Kamera-Schwenk beim Betreten (player.play_camera_pan, SPEC 2)
- Wren-Moment: nicht abbrechbarer Entscheidungspunkt ueber das bestehende
  Dialog-System (can_abort:false sperrt cancel UND dialogue_abort);
  beide Optionen retten Wren (fixer Ausgang laut STORY.md), Klinge/Herz
  -10/+10, Beziehung +1/+3, Wahl als Story-Flag viaduct_wren_rescue
  (neues gespeichertes story_flags-Muster im GameState)
- Permadeath: KillZone unter dem Steg - AN: Game Over ins Hauptmenue,
  AUS: Respawn am zuletzt erreichten Segment-Checkpoint
- DialogueSystem: story_flag-Options-Tag, is_abort_allowed,
  Spielername aus GameState in der Box
- .idea/ in .gitignore aufgenommen
- Headless verifiziert (23 Checks): Namensfluss, Pan-Sperre, Respawn,
  Abbruch-Sperre im Wren-Moment, beide Pfade inkl. Flags, Endübergang,
  Game Over bei Permadeath AN

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
danny 2026-07-05 12:15:32 +02:00
parent f0cd59c1e3
commit 3cdf5f6ac5
13 changed files with 630 additions and 10 deletions

View file

@ -0,0 +1,71 @@
[gd_scene load_steps=2 format=3]
[ext_resource type="Script" path="res://scripts/ui/character_creation.gd" id="1_creation"]
[node name="CharacterCreation" 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_creation")
[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 = 40
text = "Wer bist du, Gezeichneter?"
horizontal_alignment = 1
[node name="HintLabel" type="Label" parent="CenterContainer/VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 16
theme_override_colors/font_color = Color(0.7, 0.7, 0.7, 1)
text = "Name eintippen (Tastatur) oder den Vorschlag bestätigen (Controller)."
horizontal_alignment = 1
[node name="TitleSpacer" type="Control" parent="CenterContainer/VBoxContainer"]
custom_minimum_size = Vector2(0, 12)
layout_mode = 2
[node name="NameEdit" type="LineEdit" parent="CenterContainer/VBoxContainer"]
custom_minimum_size = Vector2(320, 44)
layout_mode = 2
max_length = 24
alignment = 1
[node name="Buttons" type="HBoxContainer" parent="CenterContainer/VBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 12
alignment = 1
[node name="ConfirmButton" type="Button" parent="CenterContainer/VBoxContainer/Buttons"]
custom_minimum_size = Vector2(180, 44)
layout_mode = 2
text = "Bestätigen"
[node name="BackButton" type="Button" parent="CenterContainer/VBoxContainer/Buttons"]
custom_minimum_size = Vector2(180, 44)
layout_mode = 2
text = "Zurück"

284
scenes/viaduct/viaduct.tscn Normal file
View file

@ -0,0 +1,284 @@
[gd_scene load_steps=31 format=3]
[ext_resource type="Script" path="res://scripts/gameplay/viaduct.gd" id="1_viaduct"]
[ext_resource type="PackedScene" path="res://scenes/player.tscn" id="2_player"]
[ext_resource type="PackedScene" path="res://scenes/ui/debug_overlay.tscn" id="3_debug"]
[ext_resource type="Script" path="res://scripts/gameplay/zone_trigger.gd" id="4_zone"]
[ext_resource type="PackedScene" path="res://scenes/ui/speech_bubble.tscn" id="5_bubble"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_sky"]
sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
ground_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
[sub_resource type="Sky" id="Sky_sky"]
sky_material = SubResource("ProceduralSkyMaterial_sky")
[sub_resource type="Environment" id="Environment_env"]
background_mode = 2
sky = SubResource("Sky_sky")
tonemap_mode = 2
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_stone"]
albedo_color = Color(0.45, 0.44, 0.42, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_platform"]
size = Vector3(8, 1, 8)
[sub_resource type="BoxMesh" id="BoxMesh_platform"]
material = SubResource("StandardMaterial3D_stone")
size = Vector3(8, 1, 8)
[sub_resource type="BoxShape3D" id="BoxShape3D_walkway"]
size = Vector3(2, 1, 10)
[sub_resource type="BoxMesh" id="BoxMesh_walkway"]
material = SubResource("StandardMaterial3D_stone")
size = Vector3(2, 1, 10)
[sub_resource type="BoxShape3D" id="BoxShape3D_connector"]
size = Vector3(2, 1, 3)
[sub_resource type="BoxMesh" id="BoxMesh_connector"]
material = SubResource("StandardMaterial3D_stone")
size = Vector3(2, 1, 3)
[sub_resource type="BoxShape3D" id="BoxShape3D_wide"]
size = Vector3(4, 1, 10)
[sub_resource type="BoxMesh" id="BoxMesh_wide"]
material = SubResource("StandardMaterial3D_stone")
size = Vector3(4, 1, 10)
[sub_resource type="BoxShape3D" id="BoxShape3D_wall"]
size = Vector3(2, 2, 2)
[sub_resource type="BoxMesh" id="BoxMesh_wall"]
material = SubResource("StandardMaterial3D_stone")
size = Vector3(2, 2, 2)
[sub_resource type="BoxShape3D" id="BoxShape3D_rail"]
size = Vector3(0.3, 1, 4)
[sub_resource type="BoxMesh" id="BoxMesh_rail"]
material = SubResource("StandardMaterial3D_stone")
size = Vector3(0.3, 1, 4)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_wren"]
albedo_color = Color(0.45, 0.72, 0.45, 1)
[sub_resource type="CapsuleMesh" id="CapsuleMesh_wren"]
material = SubResource("StandardMaterial3D_wren")
radius = 0.4
height = 1.8
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_wren"]
radius = 0.4
height = 1.8
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_trigger"]
transparency = 1
albedo_color = Color(0.3, 0.8, 1, 0.35)
[sub_resource type="BoxShape3D" id="BoxShape3D_trigger"]
size = Vector3(2, 2, 2)
[sub_resource type="BoxMesh" id="BoxMesh_trigger"]
material = SubResource("StandardMaterial3D_trigger")
size = Vector3(2, 2, 2)
[sub_resource type="BoxShape3D" id="BoxShape3D_killzone"]
size = Vector3(60, 6, 80)
[sub_resource type="BoxShape3D" id="BoxShape3D_checkpoint"]
size = Vector3(3, 2, 2)
[sub_resource type="BoxShape3D" id="BoxShape3D_wren_trigger"]
size = Vector3(4, 3, 3)
[node name="Viaduct" type="Node3D"]
script = ExtResource("1_viaduct")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_env")
[node name="Sun" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.866025, 0.383022, -0.321394, 0, 0.642788, 0.766044, 0.5, -0.663414, 0.55667, 0, 12, 0)
shadow_enabled = true
[node name="StartPlatform" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0)
[node name="CollisionShape3D" type="CollisionShape3D" parent="StartPlatform"]
shape = SubResource("BoxShape3D_platform")
[node name="MeshInstance3D" type="MeshInstance3D" parent="StartPlatform"]
mesh = SubResource("BoxMesh_platform")
[node name="Walk1a" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, -9)
[node name="CollisionShape3D" type="CollisionShape3D" parent="Walk1a"]
shape = SubResource("BoxShape3D_walkway")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Walk1a"]
mesh = SubResource("BoxMesh_walkway")
[node name="Walk1b" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, -20.5)
[node name="CollisionShape3D" type="CollisionShape3D" parent="Walk1b"]
shape = SubResource("BoxShape3D_walkway")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Walk1b"]
mesh = SubResource("BoxMesh_walkway")
[node name="RailWest" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.15, 0.5, -7)
[node name="CollisionShape3D" type="CollisionShape3D" parent="RailWest"]
shape = SubResource("BoxShape3D_rail")
[node name="MeshInstance3D" type="MeshInstance3D" parent="RailWest"]
mesh = SubResource("BoxMesh_rail")
[node name="RailEast" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.15, 0.5, -11)
[node name="CollisionShape3D" type="CollisionShape3D" parent="RailEast"]
shape = SubResource("BoxShape3D_rail")
[node name="MeshInstance3D" type="MeshInstance3D" parent="RailEast"]
mesh = SubResource("BoxMesh_rail")
[node name="ClimbWall" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -26.5)
[node name="CollisionShape3D" type="CollisionShape3D" parent="ClimbWall"]
shape = SubResource("BoxShape3D_wall")
[node name="MeshInstance3D" type="MeshInstance3D" parent="ClimbWall"]
mesh = SubResource("BoxMesh_wall")
[node name="Walk2" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, -32.5)
[node name="CollisionShape3D" type="CollisionShape3D" parent="Walk2"]
shape = SubResource("BoxShape3D_walkway")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Walk2"]
mesh = SubResource("BoxMesh_walkway")
[node name="WidePlatform" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, -41.5)
[node name="CollisionShape3D" type="CollisionShape3D" parent="WidePlatform"]
shape = SubResource("BoxShape3D_wide")
[node name="MeshInstance3D" type="MeshInstance3D" parent="WidePlatform"]
mesh = SubResource("BoxMesh_wide")
[node name="Connector" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, -47.5)
[node name="CollisionShape3D" type="CollisionShape3D" parent="Connector"]
shape = SubResource("BoxShape3D_connector")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Connector"]
mesh = SubResource("BoxMesh_connector")
[node name="EndPlatform" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, -52.5)
[node name="CollisionShape3D" type="CollisionShape3D" parent="EndPlatform"]
shape = SubResource("BoxShape3D_platform")
[node name="MeshInstance3D" type="MeshInstance3D" parent="EndPlatform"]
mesh = SubResource("BoxMesh_platform")
[node name="Wren" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.9, 0, -42)
[node name="CollisionShape3D" type="CollisionShape3D" parent="Wren"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0)
shape = SubResource("CapsuleShape3D_wren")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Wren"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0)
mesh = SubResource("CapsuleMesh_wren")
[node name="NameLabel" type="Label3D" parent="Wren"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.2, 0)
billboard = 1
text = "Wren"
font_size = 64
outline_size = 16
[node name="SpeechBubble" parent="Wren" instance=ExtResource("5_bubble")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.8, 0)
[node name="Checkpoints" type="Node3D" parent="."]
[node name="Checkpoint1" type="Area3D" parent="Checkpoints"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -5)
collision_layer = 0
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="Checkpoints/Checkpoint1"]
shape = SubResource("BoxShape3D_checkpoint")
[node name="Checkpoint2" type="Area3D" parent="Checkpoints"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -24)
collision_layer = 0
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="Checkpoints/Checkpoint2"]
shape = SubResource("BoxShape3D_checkpoint")
[node name="Checkpoint3" type="Area3D" parent="Checkpoints"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -37)
collision_layer = 0
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="Checkpoints/Checkpoint3"]
shape = SubResource("BoxShape3D_checkpoint")
[node name="WrenTrigger" type="Area3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, -40)
collision_layer = 0
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="WrenTrigger"]
shape = SubResource("BoxShape3D_wren_trigger")
[node name="KillZone" type="Area3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -10, -26)
collision_layer = 0
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="KillZone"]
shape = SubResource("BoxShape3D_killzone")
[node name="EndTrigger" type="Area3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -53.5)
collision_layer = 0
collision_mask = 2
script = ExtResource("4_zone")
target_scene_path = "res://scenes/hub/rider_quadrant.tscn"
[node name="CollisionShape3D" type="CollisionShape3D" parent="EndTrigger"]
shape = SubResource("BoxShape3D_trigger")
[node name="MeshInstance3D" type="MeshInstance3D" parent="EndTrigger"]
mesh = SubResource("BoxMesh_trigger")
[node name="Label3D" type="Label3D" parent="EndTrigger"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, 0)
billboard = 1
text = "Zum Reiterquadrant"
font_size = 40
outline_size = 12
[node name="Player" parent="." instance=ExtResource("2_player")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 2)
[node name="DebugOverlay" parent="." instance=ExtResource("3_debug")]