mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-29 03:24:23 +00:00
33 lines
1.2 KiB
Text
33 lines
1.2 KiB
Text
[gd_scene load_steps=6 format=3 uid="uid://bc2bm8lbol18w"]
|
|
|
|
[ext_resource type="Script" path="res://entities/sheep.gd" id="1_4dmll"]
|
|
[ext_resource type="PackedScene" uid="uid://bvrxvrjlo5130" path="res://behaviours/move_towards_mouse.tscn" id="2_tfd2i"]
|
|
[ext_resource type="PackedScene" uid="uid://dijcjahkddudv" path="res://behaviours/draggable.tscn" id="3_8ku7r"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_c5tcn"]
|
|
radius = 16.0
|
|
|
|
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_08frh"]
|
|
|
|
[node name="Sheep" type="CharacterBody2D"]
|
|
collision_layer = 8
|
|
collision_mask = 14
|
|
script = ExtResource("1_4dmll")
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_c5tcn")
|
|
|
|
[node name="Sprite" type="Sprite2D" parent="."]
|
|
scale = Vector2(32, 32)
|
|
texture = SubResource("PlaceholderTexture2D_08frh")
|
|
|
|
[node name="MoveTowardsMouse" parent="." instance=ExtResource("2_tfd2i")]
|
|
scale = Vector2(30, 30)
|
|
speed = -20.0
|
|
can_detach = true
|
|
|
|
[node name="Draggable" parent="." instance=ExtResource("3_8ku7r")]
|
|
scale = Vector2(2, 2)
|
|
|
|
[connection signal="move" from="MoveTowardsMouse" to="." method="_on_move"]
|
|
[connection signal="move" from="Draggable" to="." method="_on_drag_move"]
|