windgeschworen/scenes/test_ground.tscn
danny f4c67ceead Phase 0: Greybox-Fundament
- Input-Map: alle Actions aus SPEC 9 (Tastatur + Xbox/PS5, physische
  Keycodes, Deadzone 0.2)
- 11 Autoload-Skelette (SPEC 8) mit Doku-Bloecken, ohne Logik
- Greybox-Testszene test_ground.tscn: Boden, Hindernisse, Spieler-Kapsel,
  Third-Person-Kamera (WoW-Zoom via SpringArm3D), WorldEnvironment
- Debug-Overlay: FPS, aktives Eingabegeraet, Position, Kamera-Zoom
- test_ground.tscn als Main Scene gesetzt

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-04 14:56:00 +02:00

164 lines
5.8 KiB
Text

[gd_scene load_steps=19 format=3]
[ext_resource type="Script" path="res://scripts/gameplay/player.gd" id="1_player"]
[ext_resource type="Script" path="res://scripts/ui/debug_overlay.gd" id="2_debug"]
[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_ground"]
albedo_color = Color(0.35, 0.38, 0.4, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_ground"]
size = Vector3(60, 1, 60)
[sub_resource type="BoxMesh" id="BoxMesh_ground"]
material = SubResource("StandardMaterial3D_ground")
size = Vector3(60, 1, 60)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_obstacle"]
albedo_color = Color(0.55, 0.45, 0.35, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_cube_small"]
size = Vector3(2, 2, 2)
[sub_resource type="BoxMesh" id="BoxMesh_cube_small"]
material = SubResource("StandardMaterial3D_obstacle")
size = Vector3(2, 2, 2)
[sub_resource type="BoxShape3D" id="BoxShape3D_cube_big"]
size = Vector3(4, 4, 4)
[sub_resource type="BoxMesh" id="BoxMesh_cube_big"]
material = SubResource("StandardMaterial3D_obstacle")
size = Vector3(4, 4, 4)
[sub_resource type="BoxShape3D" id="BoxShape3D_wall"]
size = Vector3(8, 2, 1)
[sub_resource type="BoxMesh" id="BoxMesh_wall"]
material = SubResource("StandardMaterial3D_obstacle")
size = Vector3(8, 2, 1)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_player"]
albedo_color = Color(0.3, 0.5, 0.85, 1)
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_player"]
radius = 0.4
height = 1.8
[sub_resource type="CapsuleMesh" id="CapsuleMesh_player"]
material = SubResource("StandardMaterial3D_player")
radius = 0.4
height = 1.8
[node name="TestGround" type="Node3D"]
[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="Ground" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0)
[node name="CollisionShape3D" type="CollisionShape3D" parent="Ground"]
shape = SubResource("BoxShape3D_ground")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Ground"]
mesh = SubResource("BoxMesh_ground")
[node name="Obstacles" type="Node3D" parent="."]
[node name="BoxEast" type="StaticBody3D" parent="Obstacles"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 1, 2)
[node name="CollisionShape3D" type="CollisionShape3D" parent="Obstacles/BoxEast"]
shape = SubResource("BoxShape3D_cube_small")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Obstacles/BoxEast"]
mesh = SubResource("BoxMesh_cube_small")
[node name="BoxSouth" type="StaticBody3D" parent="Obstacles"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 1, 5)
[node name="CollisionShape3D" type="CollisionShape3D" parent="Obstacles/BoxSouth"]
shape = SubResource("BoxShape3D_cube_small")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Obstacles/BoxSouth"]
mesh = SubResource("BoxMesh_cube_small")
[node name="BoxNorth" type="StaticBody3D" parent="Obstacles"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7, 1, -5)
[node name="CollisionShape3D" type="CollisionShape3D" parent="Obstacles/BoxNorth"]
shape = SubResource("BoxShape3D_cube_small")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Obstacles/BoxNorth"]
mesh = SubResource("BoxMesh_cube_small")
[node name="BigBox" type="StaticBody3D" parent="Obstacles"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6, 2, -4)
[node name="CollisionShape3D" type="CollisionShape3D" parent="Obstacles/BigBox"]
shape = SubResource("BoxShape3D_cube_big")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Obstacles/BigBox"]
mesh = SubResource("BoxMesh_cube_big")
[node name="Wall" type="StaticBody3D" parent="Obstacles"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -8)
[node name="CollisionShape3D" type="CollisionShape3D" parent="Obstacles/Wall"]
shape = SubResource("BoxShape3D_wall")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Obstacles/Wall"]
mesh = SubResource("BoxMesh_wall")
[node name="Player" type="CharacterBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 6)
collision_layer = 2
collision_mask = 1
script = ExtResource("1_player")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Player"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0)
shape = SubResource("CapsuleShape3D_player")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Player"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0)
mesh = SubResource("CapsuleMesh_player")
[node name="CameraPivot" type="Node3D" parent="Player"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0)
[node name="SpringArm3D" type="SpringArm3D" parent="Player/CameraPivot"]
transform = Transform3D(1, 0, 0, 0, 0.939693, 0.34202, 0, -0.34202, 0.939693, 0, 0, 0)
spring_length = 9.0
margin = 0.25
[node name="Camera3D" type="Camera3D" parent="Player/CameraPivot/SpringArm3D"]
[node name="DebugOverlay" type="CanvasLayer" parent="."]
script = ExtResource("2_debug")
player_path = NodePath("../Player")
[node name="InfoLabel" type="Label" parent="DebugOverlay"]
offset_left = 12.0
offset_top = 8.0
offset_right = 420.0
offset_bottom = 128.0
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 4