WIP duck behaviour

This commit is contained in:
2025-07-09 20:52:43 +02:00
parent 8d40529349
commit 6b5a8ee126
4 changed files with 282 additions and 104 deletions
+9 -52
View File
@@ -2097,6 +2097,15 @@ collision_mask = 4
position = Vector2(1.75458, 76)
shape = SubResource("RectangleShape2D_2vojv")
[node name="Duck2" parent="YSorted" node_paths=PackedStringArray("_vesna") instance=ExtResource("62_i36hd")]
z_index = 1
y_sort_enabled = true
position = Vector2(4374, 2652)
_vesna = NodePath("../Vesna/CharacterBody2D")
_runningSpeed = 2000.0
_slowSpeed = 1000.0
_minDistanceToVesna = 500.0
[node name="CanvasLayer" parent="." instance=ExtResource("32_2nee2")]
[node name="Inventory" parent="CanvasLayer" index="1"]
@@ -2170,58 +2179,6 @@ max_distance = 2e+07
playback_type = 2
script = ExtResource("40_w3jkj")
[node name="Duck3" parent="." node_paths=PackedStringArray("_vesna") instance=ExtResource("62_i36hd")]
position = Vector2(1875, 2155)
_vesna = NodePath("../YSorted/Vesna/CharacterBody2D")
[node name="Duck4" parent="." node_paths=PackedStringArray("_vesna") instance=ExtResource("62_i36hd")]
position = Vector2(1496, 2816)
_vesna = NodePath("../YSorted/Vesna/CharacterBody2D")
[node name="Duck5" parent="." node_paths=PackedStringArray("_vesna") instance=ExtResource("62_i36hd")]
position = Vector2(4616, 2187)
_vesna = NodePath("../YSorted/Vesna/CharacterBody2D")
[node name="Duck6" parent="." node_paths=PackedStringArray("_vesna") instance=ExtResource("62_i36hd")]
position = Vector2(867, 2144)
_vesna = NodePath("../YSorted/Vesna/CharacterBody2D")
[node name="Duck7" parent="." node_paths=PackedStringArray("_vesna") instance=ExtResource("62_i36hd")]
position = Vector2(488, 2718)
_vesna = NodePath("../YSorted/Vesna/CharacterBody2D")
[node name="Duck10" parent="." node_paths=PackedStringArray("_vesna") instance=ExtResource("62_i36hd")]
position = Vector2(5201, 2708)
_vesna = NodePath("../YSorted/Vesna/CharacterBody2D")
[node name="Duck11" parent="." node_paths=PackedStringArray("_vesna") instance=ExtResource("62_i36hd")]
position = Vector2(1235, 2458)
_vesna = NodePath("../YSorted/Vesna/CharacterBody2D")
[node name="Duck12" parent="." node_paths=PackedStringArray("_vesna") instance=ExtResource("62_i36hd")]
position = Vector2(2146, 2794)
_vesna = NodePath("../YSorted/Vesna/CharacterBody2D")
[node name="Duck13" parent="." node_paths=PackedStringArray("_vesna") instance=ExtResource("62_i36hd")]
position = Vector2(3587, 3119)
_vesna = NodePath("../YSorted/Vesna/CharacterBody2D")
[node name="Duck14" parent="." node_paths=PackedStringArray("_vesna") instance=ExtResource("62_i36hd")]
position = Vector2(4757, 2686)
_vesna = NodePath("../YSorted/Vesna/CharacterBody2D")
[node name="Duck15" parent="." node_paths=PackedStringArray("_vesna") instance=ExtResource("62_i36hd")]
position = Vector2(4908, 3206)
_vesna = NodePath("../YSorted/Vesna/CharacterBody2D")
[node name="Duck" parent="." node_paths=PackedStringArray("_vesna") instance=ExtResource("62_i36hd")]
position = Vector2(2517, 2417)
_vesna = NodePath("../YSorted/Vesna/CharacterBody2D")
[node name="Duck2" parent="." node_paths=PackedStringArray("_vesna") instance=ExtResource("62_i36hd")]
position = Vector2(3540, 2518)
_vesna = NodePath("../YSorted/Vesna/CharacterBody2D")
[node name="PenCollider" type="Area2D" parent="."]
script = ExtResource("63_uxa2m")