- Enemy: Neues castle_guard_01 Modell mit Animationen (idle, walk, run, autoattack, death, turn) - Enemy: Patrol-KI mit Turn-Animationen beim Richtungswechsel, 5s idle nach Spawn - Enemy: Aggro durch Detection Range (15m) und Schadens-Aggro, Patrol→Chase Übergang - Enemy: Respawn nach 5s am Spawnpunkt, XP-Vergabe beim Tod - Kamera: LMB frei drehen (umschauen) auch mit markiertem Ziel - Kamera: RMB Lock-On temporär aufheben zum Weglaufen - Kamera: LMB-Klick auf freie Fläche visiert Ziel ab - Kamera: Drag vs Klick Unterscheidung (< 5px Bewegung = Klick) - Autoattack greift automatisch wieder an wenn Ziel zurück in Range - Player zur Gruppe "player" hinzugefügt für Enemy-Detection - Dokumentation vollständig aktualisiert Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
37 lines
1.6 KiB
Text
37 lines
1.6 KiB
Text
[gd_scene format=3 uid="uid://bp0g1glxo816h"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://dniyuebl8yhtv" path="res://player.tscn" id="1_f3sb7"]
|
|
[ext_resource type="Script" uid="uid://cx56h588mfsk0" path="res://world.gd" id="1_tlwt5"]
|
|
[ext_resource type="PackedScene" uid="uid://cvojaeanxugfj" path="res://enemy.tscn" id="3_enemy"]
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_fj7yv"]
|
|
size = Vector3(200, 0.5, 200)
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_tlwt5"]
|
|
size = Vector3(200, 0.5, 200)
|
|
|
|
[sub_resource type="NavigationMesh" id="NavigationMesh_fj7yv"]
|
|
|
|
[node name="World" type="Node3D" unique_id=2007838514]
|
|
script = ExtResource("1_tlwt5")
|
|
|
|
[node name="Boden" type="StaticBody3D" parent="." unique_id=2101916269]
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Boden" unique_id=1873339390]
|
|
shape = SubResource("BoxShape3D_fj7yv")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Boden" unique_id=1214783061]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2)
|
|
mesh = SubResource("BoxMesh_tlwt5")
|
|
|
|
[node name="Player" parent="." unique_id=937297102 instance=ExtResource("1_f3sb7")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.4345045, 0)
|
|
|
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1394887598]
|
|
transform = Transform3D(-45, 0, 0, 0, -45, 0, 0, 0, -45, 0, 0, 0)
|
|
|
|
[node name="NavigationRegion3D" type="NavigationRegion3D" parent="." unique_id=827244005]
|
|
navigation_mesh = SubResource("NavigationMesh_fj7yv")
|
|
|
|
[node name="enemy" parent="." unique_id=393882142 instance=ExtResource("3_enemy")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.38837337, -35.95893)
|