1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-22 16:14:22 +00:00
hella-farm/behaviours/eat_target.tscn

24 lines
1.2 KiB
Text
Raw Normal View History

[gd_scene load_steps=5 format=3 uid="uid://b7bdlh5akhi8s"]
2024-04-15 00:45:18 +00:00
[ext_resource type="Script" path="res://behaviours/eat_target.gd" id="1_tlnlt"]
[ext_resource type="PackedScene" uid="uid://dxmodn8mbvw0i" path="res://behaviours/hunt_target.tscn" id="2_c8wdv"]
[ext_resource type="PackedScene" uid="uid://jg7qkbswgqjc" path="res://behaviours/eater.tscn" id="3_ir2yh"]
[ext_resource type="PackedScene" uid="uid://kceb2v2dm0qn" path="res://behaviours/move_towards_target.tscn" id="4_1qc2q"]
[node name="EatTarget" type="Node2D"]
script = ExtResource("1_tlnlt")
[node name="HuntTarget" parent="." instance=ExtResource("2_c8wdv")]
scale = Vector2(16, 16)
2024-04-15 00:45:18 +00:00
give_up_secs = 5.0
[node name="Eater" parent="." instance=ExtResource("3_ir2yh")]
scale = Vector2(2.5, 2.5)
2024-04-15 00:45:18 +00:00
[node name="MoveTowardsTarget" parent="." instance=ExtResource("4_1qc2q")]
[connection signal="target_abandoned" from="HuntTarget" to="." method="_on_target_abandoned"]
[connection signal="target_selected" from="HuntTarget" to="." method="_on_target_selected"]
[connection signal="eaten" from="Eater" to="." method="_on_eater_eaten"]
[connection signal="move" from="MoveTowardsTarget" to="." method="_on_move_towards_target_move"]