- Enemy droppt Loot bei Tod (Gold + Items basierend auf LootTable) - LootWindow zeigt Beute an mit "Alles aufheben" Button - Gold-Anzeige im HUD unter XP-Leiste - Beispiel LootTables: Goblin (2-8 Gold) und Skeleton (5-15 Gold) - Loot-System in World verdrahtet Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
38 lines
2 KiB
Text
38 lines
2 KiB
Text
[gd_scene format=3 uid="uid://dniyuebl8yhtv"]
|
|
|
|
[ext_resource type="Script" uid="uid://b6n25e5fh82ra" path="res://player.gd" id="1_4flbx"]
|
|
[ext_resource type="PackedScene" uid="uid://01rrtitc6yh1" path="res://assets/kenney_blocky-characters_20/Models/GLB format/character-b.glb" id="2_hqtel"]
|
|
[ext_resource type="Script" uid="uid://bwtwon54po4w3" path="res://camera_pivot.gd" id="2_onrkg"]
|
|
[ext_resource type="PackedScene" uid="uid://bej3excyoxrdh" path="res://hud.tscn" id="4_hqtel"]
|
|
[ext_resource type="PackedScene" uid="uid://character_panel" path="res://character_panel.tscn" id="5_char_panel"]
|
|
[ext_resource type="PackedScene" uid="uid://inventory_panel" path="res://inventory_panel.tscn" id="6_inv_panel"]
|
|
[ext_resource type="PackedScene" uid="uid://loot_window" path="res://loot_window.tscn" id="7_loot_win"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_4flbx"]
|
|
radius = 0.6
|
|
height = 3.0
|
|
|
|
[node name="CharacterBody3D" type="CharacterBody3D" unique_id=937297102]
|
|
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
|
|
script = ExtResource("1_4flbx")
|
|
|
|
[node name="character-b2" parent="." unique_id=926968795 instance=ExtResource("2_hqtel")]
|
|
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0, 0, 0)
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=1359412306]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.35, 0)
|
|
shape = SubResource("CapsuleShape3D_4flbx")
|
|
|
|
[node name="CameraPivot" type="Node3D" parent="." unique_id=638440275]
|
|
script = ExtResource("2_onrkg")
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="CameraPivot" unique_id=1625345908]
|
|
transform = Transform3D(2, 0, 0, 0, 1.8126155, 0.84523654, 0, -0.84523654, 1.8126155, 0, 5, 5)
|
|
|
|
[node name="HUD" parent="." unique_id=1901284390 instance=ExtResource("4_hqtel")]
|
|
|
|
[node name="CharacterPanel" parent="." instance=ExtResource("5_char_panel")]
|
|
|
|
[node name="InventoryPanel" parent="." instance=ExtResource("6_inv_panel")]
|
|
|
|
[node name="LootWindow" parent="." instance=ExtResource("7_loot_win")]
|