feat: add user interaction with the task zones

This commit is contained in:
Rijad Zuzo
2026-06-20 18:55:09 +02:00
parent 852d10f7ae
commit bdc1f88b6f
4 changed files with 63 additions and 8 deletions
+11 -3
View File
@@ -75,10 +75,17 @@ skeleton = NodePath("../../..")
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.18380833, 0)
shape = SubResource("BoxShape3D_lquwl")
[node name="Player" type="CharacterBody3D" parent="." node_paths=PackedStringArray("camera_rig")]
[node name="Player" type="CharacterBody3D" parent="." node_paths=PackedStringArray("camera_rig", "simulation_manager", "farm_zone", "forest_zone", "food_zone", "guard_zone", "study_zone")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.05, 0)
script = ExtResource("1_h2yge")
camera_rig = NodePath("../CameraRig")
simulation_manager = NodePath("../SimulationManager")
farm_zone = NodePath("../TaskZone/FarmZone")
forest_zone = NodePath("../TaskZone/ForestZone")
food_zone = NodePath("../TaskZone/FoodZone")
guard_zone = NodePath("../TaskZone/GuardZone")
study_zone = NodePath("../TaskZone/StudyZone")
stomach_capacity_for_food = 10
[node name="CollisionShape3D" type="CollisionShape3D" parent="Player"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.85, 0)
@@ -185,9 +192,10 @@ offset_bottom = 140.0
[node name="MarginContainer" type="MarginContainer" parent="UI/VillagePanel"]
layout_mode = 2
theme_override_constants/margin_left = 12
theme_override_constants/margin_top = 12
theme_override_constants/margin_top = 4
theme_override_constants/margin_right = 12
theme_override_constants/margin_bottom = 12
theme_override_constants/margin_bottom = 4
[node name="VillageStatsLabel" type="Label" parent="UI/VillagePanel/MarginContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 10