CR 8b: Waffen-Framework — Dolch, Schwert, Axt bei gleicher DPR
- 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>
This commit is contained in:
parent
32f75a732b
commit
999c1f7bab
9 changed files with 228 additions and 15 deletions
|
|
@ -1,9 +1,10 @@
|
|||
[gd_scene load_steps=16 format=3]
|
||||
[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)
|
||||
|
|
@ -107,3 +108,20 @@ script = ExtResource("4_dummy")
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue