mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-21 23:54:23 +00:00
156 lines
4.9 KiB
Text
156 lines
4.9 KiB
Text
[gd_scene load_steps=14 format=3 uid="uid://b04xhv32ypi42"]
|
|
|
|
[ext_resource type="Script" path="res://entities/monocle.gd" id="1_ehpfj"]
|
|
[ext_resource type="Texture2D" uid="uid://d3tb6ypb36v8e" path="res://entities/monocle.png" id="1_omrit"]
|
|
[ext_resource type="PackedScene" uid="uid://rx24bppccih7" path="res://behaviours/move_physics.tscn" id="2_jgnsw"]
|
|
[ext_resource type="PackedScene" uid="uid://dfdr3e32lohq" path="res://behaviours/edible.tscn" id="3_7kfmh"]
|
|
[ext_resource type="PackedScene" uid="uid://dijcjahkddudv" path="res://behaviours/draggable.tscn" id="3_e0ni5"]
|
|
[ext_resource type="AudioStream" uid="uid://dgd1ldpffk6ql" path="res://entities/monocle_drag.wav" id="5_bs8m7"]
|
|
[ext_resource type="AudioStream" uid="uid://cwsg776c11xfc" path="res://entities/fall.ogg" id="5_grwug"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_o7chm"]
|
|
radius = 12.0
|
|
|
|
[sub_resource type="Animation" id="Animation_gokbg"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite:scale")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(2, 2)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Sprite:rotation")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [0.0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_5yt72"]
|
|
resource_name = "drag_loop"
|
|
length = 1.2
|
|
step = 0.3
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite:scale")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(2.4, 2.4)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Sprite:rotation")
|
|
tracks/1/interp = 2
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [0.0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_2igbw"]
|
|
resource_name = "drag_start"
|
|
length = 0.2
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite:scale")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.2),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(2, 2), Vector2(2.4, 2.4)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Sprite:rotation")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [0.0]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_wxlwx"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_gokbg"),
|
|
"drag_loop": SubResource("Animation_5yt72"),
|
|
"drag_start": SubResource("Animation_2igbw")
|
|
}
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_juisb"]
|
|
radius = 12.0
|
|
|
|
[node name="Monocle" type="CharacterBody2D"]
|
|
y_sort_enabled = true
|
|
collision_layer = 8
|
|
collision_mask = 8
|
|
motion_mode = 1
|
|
script = ExtResource("1_ehpfj")
|
|
|
|
[node name="Sprite" type="Sprite2D" parent="."]
|
|
y_sort_enabled = true
|
|
scale = Vector2(2, 2)
|
|
texture = ExtResource("1_omrit")
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_o7chm")
|
|
|
|
[node name="Animator" type="AnimationPlayer" parent="."]
|
|
unique_name_in_owner = true
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_wxlwx")
|
|
}
|
|
next/drag_loop = &"drag_loop"
|
|
next/drag_start = &"drag_loop"
|
|
|
|
[node name="Edible" parent="." instance=ExtResource("3_7kfmh")]
|
|
diet = &"Monocle"
|
|
|
|
[node name="MovementDrag" parent="." instance=ExtResource("2_jgnsw")]
|
|
|
|
[node name="Draggable" parent="MovementDrag" instance=ExtResource("3_e0ni5")]
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="MovementDrag/Draggable"]
|
|
shape = SubResource("CircleShape2D_juisb")
|
|
debug_color = Color(1, 1, 1, 0)
|
|
|
|
[node name="DragSound" type="AudioStreamPlayer2D" parent="MovementDrag"]
|
|
stream = ExtResource("5_bs8m7")
|
|
bus = &"DragSounds"
|
|
|
|
[node name="FallSound" type="AudioStreamPlayer2D" parent="MovementDrag"]
|
|
stream = ExtResource("5_grwug")
|
|
bus = &"FallSounds"
|
|
|
|
[connection signal="dragged" from="MovementDrag" to="." method="_on_dragged"]
|
|
[connection signal="dragged" from="MovementDrag" to="MovementDrag/DragSound" method="play" unbinds=1]
|
|
[connection signal="fallen" from="MovementDrag" to="." method="_on_fallen"]
|
|
[connection signal="fallen" from="MovementDrag" to="MovementDrag/FallSound" method="play"]
|
|
[connection signal="move" from="MovementDrag" to="." method="_on_move"]
|
|
[connection signal="dragged" from="MovementDrag/Draggable" to="MovementDrag" method="drag"]
|
|
[connection signal="dropped" from="MovementDrag/Draggable" to="MovementDrag" method="drop"]
|