- data/combat/weapons.json: drei Klassen mit cycle_scale, Reichweite und Haltungsschaden; gleiche DPR konstruktiv garantiert, weil Schaden und Ausdauer mit demselben cycle_scale skalieren wie die Zeiten - PlayerCombat lädt den Katalog, equip_weapon/cycle_weapon + weapon_changed; Wechsel jederzeit erlaubt und mitten in Schwung oder Rolle sauber nachgezogen statt den Zustand zu brechen - Zeiten, Schaden, Ausdauerkosten und Trefferreichweite kommen jetzt aus der aktiven Waffe - Neue Input-Action weapon_switch (Q / Steuerkreuz hoch) - Testarena: kleines Waffen-Overlay (Klasse, Reichweite, Tempo) - Verifikation: gemessene DPR Dolch 32,7 / Schwert 33,5 / Axt 31,5 (6,5 % Spanne aus der Ganzzahl-Rundung) - Buchführung: 8b nach CHANGEREQUESTS_DONE, ROADMAP nachgezogen Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
127 lines
4.3 KiB
Text
127 lines
4.3 KiB
Text
[gd_scene load_steps=17 format=3]
|
|
|
|
[ext_resource type="PackedScene" path="res://scenes/player.tscn" id="1_player"]
|
|
[ext_resource type="PackedScene" path="res://scenes/ui/debug_overlay.tscn" id="2_debug"]
|
|
[ext_resource type="Script" path="res://scripts/gameplay/combat/encounter_zone.gd" id="3_zone"]
|
|
[ext_resource type="Script" path="res://scripts/gameplay/combat/training_dummy.gd" id="4_dummy"]
|
|
[ext_resource type="Script" path="res://scripts/ui/weapon_hud.gd" id="5_weaponhud"]
|
|
|
|
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_sky"]
|
|
sky_horizon_color = Color(0.55, 0.55, 0.6, 1)
|
|
ground_horizon_color = Color(0.55, 0.55, 0.6, 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_floor"]
|
|
albedo_color = Color(0.4, 0.38, 0.36, 1)
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_floor"]
|
|
size = Vector3(24, 1, 24)
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_floor"]
|
|
material = SubResource("StandardMaterial3D_floor")
|
|
size = Vector3(24, 1, 24)
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_mat"]
|
|
albedo_color = Color(0.55, 0.3, 0.25, 1)
|
|
|
|
[sub_resource type="CylinderMesh" id="CylinderMesh_mat"]
|
|
material = SubResource("StandardMaterial3D_mat")
|
|
top_radius = 7.0
|
|
bottom_radius = 7.0
|
|
height = 0.08
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_dummy"]
|
|
radius = 0.45
|
|
height = 1.9
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_dummy"]
|
|
albedo_color = Color(0.45, 0.45, 0.5, 1)
|
|
|
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_dummy"]
|
|
material = SubResource("StandardMaterial3D_dummy")
|
|
radius = 0.45
|
|
height = 1.9
|
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_zone"]
|
|
radius = 7.5
|
|
height = 4.0
|
|
|
|
[node name="CombatTestground" 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, 10, 0)
|
|
|
|
[node name="Floor" type="StaticBody3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0)
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Floor"]
|
|
shape = SubResource("BoxShape3D_floor")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Floor"]
|
|
mesh = SubResource("BoxMesh_floor")
|
|
|
|
[node name="RingMat" type="MeshInstance3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.04, 0)
|
|
mesh = SubResource("CylinderMesh_mat")
|
|
|
|
[node name="EncounterZone" type="Area3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
script = ExtResource("3_zone")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="EncounterZone"]
|
|
shape = SubResource("CylinderShape3D_zone")
|
|
|
|
[node name="Dummy" type="StaticBody3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -3.5)
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Dummy"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.95, 0)
|
|
shape = SubResource("CapsuleShape3D_dummy")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Dummy"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.95, 0)
|
|
mesh = SubResource("CapsuleMesh_dummy")
|
|
|
|
[node name="HealthLabel" type="Label3D" parent="Dummy"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.3, 0)
|
|
billboard = 1
|
|
text = "Dummy"
|
|
font_size = 48
|
|
outline_size = 12
|
|
|
|
[node name="TrainingDummy" type="Node" parent="Dummy"]
|
|
script = ExtResource("4_dummy")
|
|
|
|
[node name="Player" parent="." instance=ExtResource("1_player")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0)
|
|
|
|
[node name="DebugOverlay" parent="." instance=ExtResource("2_debug")]
|
|
|
|
[node name="WeaponHud" type="CanvasLayer" parent="."]
|
|
script = ExtResource("5_weaponhud")
|
|
|
|
[node name="Label" type="Label" parent="WeaponHud"]
|
|
anchors_preset = 1
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
offset_left = -260.0
|
|
offset_top = 20.0
|
|
offset_right = -20.0
|
|
offset_bottom = 52.0
|
|
grow_horizontal = 0
|
|
theme_override_colors/font_color = Color(1, 0.9, 0.6, 1)
|
|
theme_override_font_sizes/font_size = 20
|
|
text = "Waffe: —"
|
|
horizontal_alignment = 2
|