You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Babushka/prefabs/farm/animals/duck.tscn

328 lines
11 KiB

[gd_scene load_steps=24 format=3 uid="uid://muuxxgvx33fp"]
[ext_resource type="Script" uid="uid://7m1rt7agb6rm" path="res://scripts/CSharp/Common/Temp/MVPDuck.cs" id="1_54k4r"]
[ext_resource type="Texture2D" uid="uid://hvchk6t0xe7j" path="res://art/animals/Ente.png" id="1_cgxhx"]
[ext_resource type="AudioStream" uid="uid://qv0aubjeyi0u" path="res://audio/sfx/Animals/SFX_Duck_Quack_01.wav" id="3_kjie1"]
[ext_resource type="Script" uid="uid://cfnrd5k1k0gxw" path="res://scripts/CSharp/Common/AudioPlayer2D.cs" id="3_rdn2q"]
[ext_resource type="AudioStream" uid="uid://da84l8e44scwh" path="res://audio/sfx/Animals/SFX_Duck_Quack_02.wav" id="4_54k4r"]
[ext_resource type="AudioStream" uid="uid://bkx4vyigy0u0e" path="res://audio/sfx/Animals/SFX_Duck_Quack_03.wav" id="5_uo3dh"]
[ext_resource type="AudioStream" uid="uid://b5o5bu5to04dw" path="res://audio/sfx/Animals/SFX_Duck_Quack_04.wav" id="6_nxoeu"]
[ext_resource type="AudioStream" uid="uid://dy7y1p1fdl3qi" path="res://audio/sfx/Animals/SFX_Duck_Wings_01.wav" id="8_d4ug3"]
[ext_resource type="AudioStream" uid="uid://c0pea16pvgyom" path="res://audio/sfx/Animals/SFX_Duck_Wings_02.wav" id="9_4830j"]
[ext_resource type="AudioStream" uid="uid://bccwhl0pu3b2v" path="res://audio/sfx/Animals/SFX_Duck_Wings_03.wav" id="10_3eek3"]
[ext_resource type="AudioStream" uid="uid://bixloi5fuoubu" path="res://audio/sfx/Animals/SFX_Duck_Wings_04.wav" id="11_cdkiq"]
[ext_resource type="AudioStream" uid="uid://g8xhunjfhwde" path="res://audio/sfx/Animals/SFX_Duck_Wings_05.wav" id="12_dx1yn"]
[ext_resource type="AudioStream" uid="uid://u1ql6s2wep4y" path="res://audio/sfx/Animals/SFX_Duck_Wings_06.wav" id="13_yuxo7"]
[ext_resource type="Animation" uid="uid://b3dwd88uvfk1k" path="res://art/animals/duck_flapFlap.res" id="14_uo3dh"]
[ext_resource type="AudioStream" uid="uid://bsr5m8u2sle5k" path="res://audio/sfx/Animals/SFX_Duck_Wings_07.wav" id="14_xhefb"]
[ext_resource type="PackedScene" uid="uid://cqc72e4hq6bcd" path="res://prefabs/interactions/interaction_area_2d.tscn" id="15_uo3dh"]
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_sot7i"]
streams_count = 4
stream_0/stream = ExtResource("3_kjie1")
stream_1/stream = ExtResource("4_54k4r")
stream_2/stream = ExtResource("5_uo3dh")
stream_3/stream = ExtResource("6_nxoeu")
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_hyel8"]
streams_count = 7
stream_0/stream = ExtResource("8_d4ug3")
stream_1/stream = ExtResource("9_4830j")
stream_2/stream = ExtResource("10_3eek3")
stream_3/stream = ExtResource("11_cdkiq")
stream_4/stream = ExtResource("12_dx1yn")
stream_5/stream = ExtResource("13_yuxo7")
stream_6/stream = ExtResource("14_xhefb")
[sub_resource type="Animation" id="Animation_uo3dh"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("SubViewport/bodyLookingRight/wingR:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [-0.371117]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("SubViewport/bodyLookingRight/wingL:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [-0.0925884]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("SubViewport/bodyLookingRight/head:rotation")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.284615]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("SubViewport/bodyLookingRight/head/beak upper:rotation")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [-0.0427724]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("SubViewport/bodyLookingRight/head/beak lower:rotation")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0364142]
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath("Audio/NakNak:playing")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/6/type = "value"
tracks/6/imported = false
tracks/6/enabled = true
tracks/6/path = NodePath("Audio/WingFlutter:playing")
tracks/6/interp = 1
tracks/6/loop_wrap = true
tracks/6/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="Animation" id="Animation_kjie1"]
resource_name = "new_animation"
[sub_resource type="AnimationLibrary" id="AnimationLibrary_54k4r"]
_data = {
&"RESET": SubResource("Animation_uo3dh"),
&"flapFlap": ExtResource("14_uo3dh"),
&"new_animation": SubResource("Animation_kjie1")
}
[sub_resource type="CircleShape2D" id="CircleShape2D_uo3dh"]
resource_local_to_scene = true
radius = 443.041
[sub_resource type="ViewportTexture" id="ViewportTexture_4830j"]
viewport_path = NodePath("SubViewport")
[node name="Duck" type="Node2D" node_paths=PackedStringArray("_animationPlayer")]
z_index = 1
y_sort_enabled = true
script = ExtResource("1_54k4r")
_transferDelayMs = 1000
_animationPlayer = NodePath("AnimationPlayer")
[node name="Audio" type="Node2D" parent="."]
[node name="NakNak" type="AudioStreamPlayer2D" parent="Audio"]
stream = SubResource("AudioStreamRandomizer_sot7i")
script = ExtResource("3_rdn2q")
[node name="WingFlutter" type="AudioStreamPlayer2D" parent="Audio"]
stream = SubResource("AudioStreamRandomizer_hyel8")
script = ExtResource("3_rdn2q")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_54k4r")
}
[node name="InteractionArea" parent="." node_paths=PackedStringArray("_spriteToOutline") instance=ExtResource("15_uo3dh")]
position = Vector2(18, -250)
_spriteToOutline = NodePath("../Duck rendered")
[node name="CollisionShape3D" parent="InteractionArea/Area2D" index="0"]
shape = SubResource("CircleShape2D_uo3dh")
[node name="Duck rendered" type="Sprite2D" parent="."]
position = Vector2(0, -250)
texture = SubResource("ViewportTexture_4830j")
[node name="SubViewport" type="SubViewport" parent="."]
transparent_bg = true
size = Vector2i(400, 600)
[node name="bodyLookingRight" type="Node2D" parent="SubViewport"]
position = Vector2(200, 550)
rotation = 0.0135349
[node name="head" type="Sprite2D" parent="SubViewport/bodyLookingRight"]
position = Vector2(45.706, -451.714)
rotation = 0.284615
scale = Vector2(1, 0.997)
skew = 0.024546
texture = ExtResource("1_cgxhx")
offset = Vector2(25.2328, -23.0689)
region_enabled = true
region_rect = Rect2(45, 24, 87, 82)
[node name="beak upper" type="Sprite2D" parent="SubViewport/bodyLookingRight/head"]
z_index = 1
position = Vector2(50.669, -7.16257)
rotation = -0.0427724
scale = Vector2(0.62715, 0.62715)
texture = ExtResource("1_cgxhx")
offset = Vector2(57.1263, -7.47815)
region_enabled = true
region_rect = Rect2(292, 37, 152, 98)
[node name="beak lower" type="Sprite2D" parent="SubViewport/bodyLookingRight/head"]
position = Vector2(47.9076, -15.7341)
rotation = 0.0364142
scale = Vector2(0.58615, 0.58615)
texture = ExtResource("1_cgxhx")
offset = Vector2(60.4601, 37.8134)
region_enabled = true
region_rect = Rect2(295, 170, 145, 39)
[node name="torso" type="Sprite2D" parent="SubViewport/bodyLookingRight"]
position = Vector2(4.65357, -172.523)
scale = Vector2(1.07526, 1.01724)
texture = ExtResource("1_cgxhx")
offset = Vector2(2.87376, -131.092)
region_enabled = true
region_rect = Rect2(30, 168, 125, 326)
[node name="wingR" type="Sprite2D" parent="SubViewport/bodyLookingRight"]
position = Vector2(-29.2564, -265.875)
rotation = -0.371117
texture = ExtResource("1_cgxhx")
offset = Vector2(-50, 50)
region_enabled = true
region_rect = Rect2(196, 231, 180, 164)
[node name="wingL" type="Sprite2D" parent="SubViewport/bodyLookingRight"]
position = Vector2(45.8131, -281.97)
rotation = -0.0925884
skew = -0.0345086
texture = ExtResource("1_cgxhx")
offset = Vector2(-59.5924, 55.37)
region_enabled = true
region_rect = Rect2(196, 231, 180, 164)
[node name="underbelly" type="Sprite2D" parent="SubViewport/bodyLookingRight"]
position = Vector2(-12.6602, -88.6718)
rotation = -2.98225
scale = Vector2(0.672245, 0.955267)
skew = 0.0185422
texture = ExtResource("1_cgxhx")
offset = Vector2(26.4135, 70.6083)
region_enabled = true
region_rect = Rect2(196, 231, 180, 164)
[node name="leg left" type="Sprite2D" parent="SubViewport/bodyLookingRight"]
position = Vector2(35.0323, -227.23)
rotation = 2.42655
scale = Vector2(1.05221, 1.04106)
skew = -0.0544101
texture = ExtResource("1_cgxhx")
region_enabled = true
region_rect = Rect2(196, 231, 177, 161)
[node name="left thigh" type="Sprite2D" parent="SubViewport/bodyLookingRight/leg left"]
z_index = 1
y_sort_enabled = true
position = Vector2(73.353, -69.771)
rotation = -2.57238
scale = Vector2(0.651005, 0.688137)
texture = ExtResource("1_cgxhx")
region_enabled = true
region_rect = Rect2(368, 263, 81, 89)
[node name="left shin" type="Sprite2D" parent="SubViewport/bodyLookingRight/leg left/left thigh"]
z_index = 1
y_sort_enabled = true
position = Vector2(-5.71882, 19.9984)
rotation = 2.69159
scale = Vector2(0.88169, 0.852516)
skew = -0.0440769
texture = ExtResource("1_cgxhx")
offset = Vector2(10, -50)
region_enabled = true
region_rect = Rect2(360, 361, 68, 126)
[node name="left foot" type="Sprite2D" parent="SubViewport/bodyLookingRight/leg left/left thigh/left shin"]
z_index = 1
y_sort_enabled = true
position = Vector2(15.1289, -77.6075)
rotation = -2.65268
scale = Vector2(1.12319, 1.12319)
texture = ExtResource("1_cgxhx")
offset = Vector2(40, 40)
region_enabled = true
region_rect = Rect2(246, 393, 111, 111)
[node name="right leg" type="Sprite2D" parent="SubViewport/bodyLookingRight"]
position = Vector2(-25.2564, -163.875)
rotation = -0.463741
scale = Vector2(1.07492, 1.01762)
texture = ExtResource("1_cgxhx")
region_enabled = true
region_rect = Rect2(196, 231, 177, 161)
[node name="right thigh" type="Sprite2D" parent="SubViewport/bodyLookingRight/right leg"]
position = Vector2(-29.7603, 44.2374)
rotation = 0.249342
scale = Vector2(0.625107, 0.655894)
skew = 0.02161
texture = ExtResource("1_cgxhx")
region_enabled = true
region_rect = Rect2(368, 263, 81, 89)
[node name="right shin" type="Sprite2D" parent="SubViewport/bodyLookingRight/right leg/right thigh"]
position = Vector2(-2.78734, 11.5692)
rotation = 0.0689206
scale = Vector2(1.12016, 1.07128)
skew = -0.0877244
texture = ExtResource("1_cgxhx")
offset = Vector2(-14.163, 37.0936)
region_enabled = true
region_rect = Rect2(360, 361, 68, 126)
[node name="right foot" type="Sprite2D" parent="SubViewport/bodyLookingRight/right leg/right thigh/right shin"]
position = Vector2(-20.0986, 67.7507)
rotation = 0.14855
scale = Vector2(1.212, 1.212)
texture = ExtResource("1_cgxhx")
offset = Vector2(40, 40)
region_enabled = true
region_rect = Rect2(246, 393, 111, 111)
[connection signal="Interacted" from="InteractionArea" to="." method="TransferToTargetAfterDelay"]
[connection signal="Interacted" from="InteractionArea" to="Audio/NakNak" method="PlayOneShot"]
[editable path="InteractionArea"]