1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-28 19:14:23 +00:00
hella-farm/entities/top_hat.tscn

159 lines
4.9 KiB
Text
Raw Normal View History

2024-04-30 03:17:57 +00:00
[gd_scene load_steps=13 format=3 uid="uid://8ejgwtkpaa44"]
[ext_resource type="Script" path="res://entities/top_hat.gd" id="1_0eh11"]
[ext_resource type="Texture2D" uid="uid://deqvgvf66grr4" path="res://entities/top_hat.png" id="1_gbqic"]
2024-04-30 03:17:57 +00:00
[ext_resource type="PackedScene" uid="uid://dfdr3e32lohq" path="res://behaviours/edible.tscn" id="3_6ru0l"]
[ext_resource type="PackedScene" uid="uid://rx24bppccih7" path="res://behaviours/move_physics.tscn" id="3_gy414"]
[ext_resource type="PackedScene" uid="uid://dijcjahkddudv" path="res://behaviours/draggable.tscn" id="4_fcvjo"]
2024-04-21 22:56:35 +00:00
[ext_resource type="AudioStream" uid="uid://cwsg776c11xfc" path="res://entities/fall.ogg" id="6_6tpnh"]
2024-05-02 01:36:23 +00:00
[sub_resource type="CircleShape2D" id="CircleShape2D_fsfem"]
radius = 16.0
2024-04-24 02:16:09 +00:00
[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_ef228"]
_data = {
"RESET": SubResource("Animation_gokbg"),
"drag_loop": SubResource("Animation_5yt72"),
"drag_start": SubResource("Animation_2igbw")
}
2024-05-02 01:36:23 +00:00
[sub_resource type="CircleShape2D" id="CircleShape2D_pcfsk"]
radius = 16.0
[node name="TopHat" type="CharacterBody2D"]
2024-04-29 01:20:27 +00:00
y_sort_enabled = true
collision_layer = 8
collision_mask = 8
2024-04-21 22:56:35 +00:00
motion_mode = 1
script = ExtResource("1_0eh11")
[node name="Sprite" type="Sprite2D" parent="."]
2024-04-29 01:20:27 +00:00
y_sort_enabled = true
scale = Vector2(2, 2)
texture = ExtResource("1_gbqic")
2024-05-02 01:36:23 +00:00
offset = Vector2(0, -8)
[node name="Shape" type="CollisionShape2D" parent="."]
2024-05-02 01:36:23 +00:00
position = Vector2(0, -16)
shape = SubResource("CircleShape2D_fsfem")
debug_color = Color(0, 0.6, 1, 0.294118)
2024-04-24 02:16:09 +00:00
[node name="Animator" type="AnimationPlayer" parent="."]
unique_name_in_owner = true
libraries = {
"": SubResource("AnimationLibrary_ef228")
}
next/drag_loop = &"drag_loop"
next/drag_start = &"drag_loop"
2024-04-30 03:17:57 +00:00
[node name="Edible" parent="." instance=ExtResource("3_6ru0l")]
diet = &"TopHat"
[node name="MovementDrag" parent="." instance=ExtResource("3_gy414")]
2024-05-02 01:36:23 +00:00
position = Vector2(0, -16)
[node name="Draggable" parent="MovementDrag" instance=ExtResource("4_fcvjo")]
[node name="Shape" type="CollisionShape2D" parent="MovementDrag/Draggable"]
2024-05-02 01:36:23 +00:00
shape = SubResource("CircleShape2D_pcfsk")
debug_color = Color(0, 1, 0.701961, 0.294118)
2024-04-21 22:56:35 +00:00
[node name="DragSound" type="AudioStreamPlayer2D" parent="MovementDrag"]
2024-04-29 01:33:43 +00:00
bus = &"DragSounds"
2024-04-21 22:56:35 +00:00
[node name="FallSound" type="AudioStreamPlayer2D" parent="MovementDrag"]
stream = ExtResource("6_6tpnh")
2024-04-29 01:33:43 +00:00
bus = &"FallSounds"
2024-04-21 22:56:35 +00:00
[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"]