1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-25 17:44:24 +00:00
hella-farm/entities/sheep.tscn

50 lines
2 KiB
Text
Raw Normal View History

[gd_scene load_steps=9 format=3 uid="uid://bc2bm8lbol18w"]
2024-04-13 14:38:05 +00:00
2024-04-14 03:13:37 +00:00
[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"]
2024-04-14 05:20:53 +00:00
[ext_resource type="PackedScene" uid="uid://dijcjahkddudv" path="res://behaviours/draggable.tscn" id="3_8ku7r"]
2024-04-14 20:03:59 +00:00
[ext_resource type="AudioStream" uid="uid://buxgivpkh8dyl" path="res://entities/drop.wav" id="4_nxjnl"]
[ext_resource type="AudioStream" uid="uid://bmfscpnugaejk" path="res://entities/sheep_drag.wav" id="4_oalqu"]
[ext_resource type="PackedScene" uid="uid://dfdr3e32lohq" path="res://behaviours/edible.tscn" id="6_3odsh"]
2024-04-13 14:38:05 +00:00
[sub_resource type="CircleShape2D" id="CircleShape2D_c5tcn"]
radius = 16.0
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_08frh"]
2024-04-13 14:38:05 +00:00
2024-04-14 03:13:37 +00:00
[node name="Sheep" type="CharacterBody2D"]
2024-04-14 18:53:45 +00:00
collision_layer = 8
collision_mask = 14
2024-04-14 03:13:37 +00:00
script = ExtResource("1_4dmll")
2024-04-13 14:38:05 +00:00
[node name="Shape" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_c5tcn")
[node name="Sprite" type="Sprite2D" parent="."]
scale = Vector2(32, 32)
texture = SubResource("PlaceholderTexture2D_08frh")
2024-04-13 14:38:05 +00:00
2024-04-14 03:13:37 +00:00
[node name="MoveTowardsMouse" parent="." instance=ExtResource("2_tfd2i")]
scale = Vector2(30, 30)
speed = -20.0
can_detach = true
2024-04-14 05:20:53 +00:00
[node name="Draggable" parent="." instance=ExtResource("3_8ku7r")]
scale = Vector2(2, 2)
2024-04-14 05:20:53 +00:00
2024-04-14 20:03:59 +00:00
[node name="DragSound" type="AudioStreamPlayer2D" parent="Draggable"]
scale = Vector2(0.5, 0.5)
stream = ExtResource("4_oalqu")
[node name="DropSound" type="AudioStreamPlayer2D" parent="Draggable"]
scale = Vector2(0.5, 0.5)
stream = ExtResource("4_nxjnl")
[node name="Edible" parent="." instance=ExtResource("6_3odsh")]
tag = &"Sheep"
2024-04-14 03:13:37 +00:00
[connection signal="move" from="MoveTowardsMouse" to="." method="_on_move"]
2024-04-14 20:03:59 +00:00
[connection signal="dragged" from="Draggable" to="." method="_on_draggable_dragged"]
[connection signal="dropped" from="Draggable" to="." method="_on_draggable_dropped"]
[connection signal="move" from="Draggable" to="." method="_on_drag_move"]