mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-28 19:14:23 +00:00
68 lines
3.1 KiB
Text
68 lines
3.1 KiB
Text
[gd_scene load_steps=13 format=3 uid="uid://bc2bm8lbol18w"]
|
|
|
|
[ext_resource type="Script" path="res://entities/sheep.gd" id="1_4dmll"]
|
|
[ext_resource type="Texture2D" uid="uid://iljp5yn3ehfk" path="res://entities/sheep_left.png" id="2_t13f5"]
|
|
[ext_resource type="PackedScene" uid="uid://bvrxvrjlo5130" path="res://behaviours/move_towards_mouse.tscn" id="2_tfd2i"]
|
|
[ext_resource type="PackedScene" uid="uid://bxbjfev0lhwws" path="res://behaviours/sprite_left_right.tscn" id="2_xbkrm"]
|
|
[ext_resource type="PackedScene" uid="uid://dijcjahkddudv" path="res://behaviours/draggable.tscn" id="3_8ku7r"]
|
|
[ext_resource type="Texture2D" uid="uid://cxtmas4g0v6en" path="res://entities/sheep_right.png" id="4_5qoof"]
|
|
[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"]
|
|
[ext_resource type="PackedScene" uid="uid://dqlhv4j3b62hd" path="res://behaviours/random_walk.tscn" id="6_ekxsq"]
|
|
[ext_resource type="PackedScene" uid="uid://d31h5lcitnlsd" path="res://behaviours/state_holder.tscn" id="10_mm8v8"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_c5tcn"]
|
|
radius = 8.0
|
|
|
|
[node name="Sheep" type="CharacterBody2D"]
|
|
collision_layer = 8
|
|
collision_mask = 14
|
|
script = ExtResource("1_4dmll")
|
|
|
|
[node name="Sprite" parent="." instance=ExtResource("2_xbkrm")]
|
|
scale = Vector2(2, 2)
|
|
texture = ExtResource("2_t13f5")
|
|
left_texture = ExtResource("2_t13f5")
|
|
right_texture = ExtResource("4_5qoof")
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="."]
|
|
scale = Vector2(3, 3)
|
|
shape = SubResource("CircleShape2D_c5tcn")
|
|
|
|
[node name="MoveTowardsMouse" parent="." node_paths=PackedStringArray("state_holder") instance=ExtResource("2_tfd2i")]
|
|
scale = Vector2(30, 30)
|
|
speed = -30.0
|
|
can_detach = true
|
|
state_holder = NodePath("../StateHolder")
|
|
state_name = &"scared"
|
|
|
|
[node name="RandomWalk" parent="." instance=ExtResource("6_ekxsq")]
|
|
speed = 10.0
|
|
wait_time_mean = 4.0
|
|
wait_time_dev = 1.5
|
|
wander_time_mean = 5.0
|
|
wander_time_dev = 1.0
|
|
|
|
[node name="Draggable" parent="." node_paths=PackedStringArray("state_holder") instance=ExtResource("3_8ku7r")]
|
|
scale = Vector2(3, 3)
|
|
state_holder = NodePath("../StateHolder")
|
|
|
|
[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"
|
|
|
|
[node name="StateHolder" parent="." instance=ExtResource("10_mm8v8")]
|
|
|
|
[connection signal="move" from="MoveTowardsMouse" to="." method="_on_move"]
|
|
[connection signal="move" from="RandomWalk" to="." method="_on_move"]
|
|
[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_move"]
|