mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-25 01:24:23 +00:00
23 lines
1.2 KiB
Text
23 lines
1.2 KiB
Text
[gd_scene load_steps=5 format=3 uid="uid://b7bdlh5akhi8s"]
|
|
|
|
[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)
|
|
give_up_secs = 5.0
|
|
|
|
[node name="Eater" parent="." instance=ExtResource("3_ir2yh")]
|
|
scale = Vector2(2.5, 2.5)
|
|
|
|
[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"]
|