364 lines
12 KiB
Text
364 lines
12 KiB
Text
[gd_scene load_steps=44 format=3 uid="uid://b051fdn22dftw"]
|
|
|
|
[ext_resource type="Script" path="res://scenes/screens/fishing_minigame.gd" id="1_7s5h5"]
|
|
[ext_resource type="Script" path="res://scenes/logic/net.gd" id="1_yetkk"]
|
|
[ext_resource type="Texture2D" uid="uid://b3mgxwv3cp1qm" path="res://images/backgrounds/fishing_02/0001.png" id="2_4krj7"]
|
|
[ext_resource type="Texture2D" uid="uid://lqy1x6kqm88q" path="res://images/backgrounds/fishing_01.png" id="2_dgwmc"]
|
|
[ext_resource type="Texture2D" uid="uid://kepym7kmjifc" path="res://images/backgrounds/fishing_02/0002.png" id="3_e8c31"]
|
|
[ext_resource type="Texture2D" uid="uid://dgoe2mysnljkf" path="res://images/backgrounds/fishing_02/0003.png" id="4_02oa4"]
|
|
[ext_resource type="Texture2D" uid="uid://bg3w5mitkvquh" path="res://images/backgrounds/fishing_02/0004.png" id="5_tqtjh"]
|
|
[ext_resource type="Texture2D" uid="uid://c1yoisbs8lgko" path="res://images/backgrounds/fishing_02/0005.png" id="6_ty1bg"]
|
|
[ext_resource type="Texture2D" uid="uid://lxwjghm7etg2" path="res://images/backgrounds/fishing_02/0006.png" id="7_gud5g"]
|
|
[ext_resource type="Texture2D" uid="uid://b124fi3eupqhk" path="res://images/backgrounds/fishing_02/0007.png" id="8_e8v68"]
|
|
[ext_resource type="Texture2D" uid="uid://ch4b24x872268" path="res://images/backgrounds/fishing_02/0008.png" id="9_dubgg"]
|
|
[ext_resource type="Texture2D" uid="uid://dmyv3kehfplqg" path="res://images/backgrounds/fishing_02/0009.png" id="10_j2ciw"]
|
|
[ext_resource type="Texture2D" uid="uid://dbimx1shxh47s" path="res://images/sprites/fishing_net/ground.png" id="12_gow3b"]
|
|
[ext_resource type="Texture2D" uid="uid://bgxon7ni33yvo" path="res://images/sprites/fishing_foreground.png" id="12_jlj73"]
|
|
[ext_resource type="Texture2D" uid="uid://bxs47a05ioxwu" path="res://images/sprites/fishing_net/grabbed_shadow.png" id="14_mfswx"]
|
|
[ext_resource type="Texture2D" uid="uid://cca7inw67j1aj" path="res://images/sprites/fishing_net/shadow_underwater/0001.png" id="15_sanpa"]
|
|
[ext_resource type="Texture2D" uid="uid://c5p4iqee53bdn" path="res://images/sprites/fishing_net/released.png" id="16_020uy"]
|
|
[ext_resource type="Texture2D" uid="uid://bvyx2qdefcgbg" path="res://images/sprites/fishing_net/shadow_underwater/0002.png" id="16_lbjk3"]
|
|
[ext_resource type="Texture2D" uid="uid://c0v4akcfgy6f3" path="res://images/sprites/fishing_net/shadow_underwater/0003.png" id="17_dm662"]
|
|
[ext_resource type="Texture2D" uid="uid://58hecowyh01o" path="res://images/sprites/fishing_net/shadow_underwater/0004.png" id="18_rph7a"]
|
|
[ext_resource type="Texture2D" uid="uid://c7jann5xx0mjj" path="res://images/sprites/fishing_net/shadow_underwater/0005.png" id="19_17qn5"]
|
|
[ext_resource type="Texture2D" uid="uid://wbrk7ketjskv" path="res://images/sprites/fishing_net/shadow_underwater/0006.png" id="20_f1sxv"]
|
|
[ext_resource type="Texture2D" uid="uid://dere026aqonp8" path="res://images/sprites/fishing_net/shadow_underwater/0007.png" id="21_2tvvq"]
|
|
[ext_resource type="Texture2D" uid="uid://cgrrpfsuscyye" path="res://images/sprites/fishing_net/shadow_underwater/0008.png" id="22_veott"]
|
|
[ext_resource type="Texture2D" uid="uid://mh34nrov6tum" path="res://images/sprites/fishing_net/shadow_underwater/0009.png" id="23_qdeun"]
|
|
[ext_resource type="Script" path="res://addons/resonate/sound_manager/sound_bank.gd" id="26_3dk6v"]
|
|
[ext_resource type="Script" path="res://addons/resonate/sound_manager/sound_event_resource.gd" id="27_j0p8c"]
|
|
[ext_resource type="AudioStream" uid="uid://ia71ea5lkhf0" path="res://sounds/net_picked_up.mp3" id="28_gwvbf"]
|
|
[ext_resource type="AudioStream" uid="uid://cpw5iy7xmmdxl" path="res://sounds/net_splash.mp3" id="29_ws3wp"]
|
|
[ext_resource type="AudioStream" uid="uid://baaj7tqj81uun" path="res://sounds/net_returns.mp3" id="30_kih1b"]
|
|
|
|
[sub_resource type="Animation" id="Animation_niynd"]
|
|
resource_name = "RESET"
|
|
length = 0.001
|
|
tracks/0/type = "bezier"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("ReleasedNet/ReleasedNetGhost:offset:y")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"handle_modes": PackedInt32Array(0),
|
|
"points": PackedFloat32Array(-140, -0.25, 0, 0.25, 0),
|
|
"times": PackedFloat32Array(0)
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Net:visible")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("Net/Button:disabled")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/3/type = "value"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath("ReleasedNet:animation")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [&"default"]
|
|
}
|
|
tracks/4/type = "value"
|
|
tracks/4/imported = false
|
|
tracks/4/enabled = true
|
|
tracks/4/path = NodePath("ReleasedNet/ReleasedNetGhost:visible")
|
|
tracks/4/interp = 1
|
|
tracks/4/loop_wrap = true
|
|
tracks/4/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/5/type = "value"
|
|
tracks/5/imported = false
|
|
tracks/5/enabled = true
|
|
tracks/5/path = NodePath("ReleasedNet:visible")
|
|
tracks/5/interp = 1
|
|
tracks/5/loop_wrap = true
|
|
tracks/5/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_bir22"]
|
|
resource_name = "drop_net"
|
|
length = 0.8
|
|
tracks/0/type = "bezier"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("ReleasedNet/ReleasedNetGhost:offset:y")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"handle_modes": PackedInt32Array(0, 0, 0),
|
|
"points": PackedFloat32Array(-140, 0, 0, 0, 0, -140, 0, 0, 0, 0, -20, 0, -100, 0, 0),
|
|
"times": PackedFloat32Array(0, 0.1, 0.8)
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("ReleasedNet/ReleasedNetGhost:visible")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.8),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 1,
|
|
"values": [true, false]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_u2oub"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_niynd"),
|
|
"drop_net": SubResource("Animation_bir22")
|
|
}
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_4e28o"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_4krj7")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_e8c31")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_02oa4")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("5_tqtjh")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("6_ty1bg")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("7_gud5g")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("8_e8v68")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("9_dubgg")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("10_j2ciw")
|
|
}],
|
|
"loop": true,
|
|
"name": &"fishing_moving",
|
|
"speed": 6.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_dgwmc")
|
|
}],
|
|
"loop": false,
|
|
"name": &"fishing_stopped",
|
|
"speed": 6.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7eg46"]
|
|
size = Vector2(879, 28)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_qcfpa"]
|
|
size = Vector2(60, 463)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_si7tm"]
|
|
size = Vector2(63, 465)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_s7cl4"]
|
|
size = Vector2(876, 72)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_nktfp"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("15_sanpa")
|
|
}],
|
|
"loop": false,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("16_lbjk3")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("17_dm662")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("18_rph7a")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("19_17qn5")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("20_f1sxv")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("21_2tvvq")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("22_veott")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("23_qdeun")
|
|
}],
|
|
"loop": false,
|
|
"name": &"grab_underwater",
|
|
"speed": 12.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f8txh"]
|
|
size = Vector2(107, 45)
|
|
|
|
[sub_resource type="Resource" id="Resource_sxq6n"]
|
|
script = ExtResource("27_j0p8c")
|
|
name = "net_picked_up"
|
|
bus = ""
|
|
volume = -6.0
|
|
pitch = 1.0
|
|
streams = Array[AudioStream]([ExtResource("28_gwvbf")])
|
|
|
|
[sub_resource type="Resource" id="Resource_ifamc"]
|
|
script = ExtResource("27_j0p8c")
|
|
name = "net_splash"
|
|
bus = ""
|
|
volume = -6.0
|
|
pitch = 1.0
|
|
streams = Array[AudioStream]([ExtResource("29_ws3wp")])
|
|
|
|
[sub_resource type="Resource" id="Resource_8l1se"]
|
|
script = ExtResource("27_j0p8c")
|
|
name = "net_returns"
|
|
bus = ""
|
|
volume = 0.0
|
|
pitch = 1.0
|
|
streams = Array[AudioStream]([ExtResource("30_kih1b")])
|
|
|
|
[node name="FishingMinigame" type="Node2D"]
|
|
script = ExtResource("1_7s5h5")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_u2oub")
|
|
}
|
|
|
|
[node name="Background" type="AnimatedSprite2D" parent="."]
|
|
position = Vector2(400, 300)
|
|
sprite_frames = SubResource("SpriteFrames_4e28o")
|
|
animation = &"fishing_stopped"
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Background"]
|
|
z_index = 1
|
|
texture = ExtResource("12_jlj73")
|
|
|
|
[node name="Area2D" type="StaticBody2D" parent="Background"]
|
|
collision_layer = 2
|
|
|
|
[node name="BoundaryBottom" type="CollisionShape2D" parent="Background/Area2D"]
|
|
position = Vector2(4.5, 107)
|
|
shape = SubResource("RectangleShape2D_7eg46")
|
|
|
|
[node name="BoundaryRight" type="CollisionShape2D" parent="Background/Area2D"]
|
|
position = Vector2(395, -98.5)
|
|
shape = SubResource("RectangleShape2D_qcfpa")
|
|
|
|
[node name="BoundaryLeft" type="CollisionShape2D" parent="Background/Area2D"]
|
|
position = Vector2(-396.5, -103.5)
|
|
shape = SubResource("RectangleShape2D_si7tm")
|
|
|
|
[node name="BoundaryTop" type="CollisionShape2D" parent="Background/Area2D"]
|
|
position = Vector2(0, -278)
|
|
shape = SubResource("RectangleShape2D_s7cl4")
|
|
|
|
[node name="FishingTargets" type="Node2D" parent="."]
|
|
|
|
[node name="Net" type="Sprite2D" parent="."]
|
|
visible = false
|
|
z_index = 1
|
|
position = Vector2(400, 560)
|
|
texture = ExtResource("12_gow3b")
|
|
script = ExtResource("1_yetkk")
|
|
|
|
[node name="Shadow" type="Sprite2D" parent="Net"]
|
|
z_as_relative = false
|
|
texture = ExtResource("14_mfswx")
|
|
offset = Vector2(0, 120)
|
|
|
|
[node name="Button" type="Button" parent="Net"]
|
|
self_modulate = Color(1, 1, 1, 0)
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = -96.5
|
|
offset_top = -41.0
|
|
offset_right = -96.5
|
|
offset_bottom = -41.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
disabled = true
|
|
|
|
[node name="ResetTimer" type="Timer" parent="Net"]
|
|
wait_time = 3.0
|
|
one_shot = true
|
|
|
|
[node name="ReleasedNet" type="AnimatedSprite2D" parent="."]
|
|
visible = false
|
|
position = Vector2(-162, 244)
|
|
sprite_frames = SubResource("SpriteFrames_nktfp")
|
|
|
|
[node name="Area2D" type="Area2D" parent="ReleasedNet"]
|
|
collision_layer = 0
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="ReleasedNet/Area2D"]
|
|
position = Vector2(-0.5, -15.5)
|
|
shape = SubResource("RectangleShape2D_f8txh")
|
|
|
|
[node name="ReleasedNetGhost" type="Sprite2D" parent="ReleasedNet"]
|
|
z_index = 1
|
|
texture = ExtResource("16_020uy")
|
|
offset = Vector2(0, -140)
|
|
|
|
[node name="DisappearTimer" type="Timer" parent="ReleasedNet"]
|
|
wait_time = 1.5
|
|
one_shot = true
|
|
|
|
[node name="SoundBank" type="Node" parent="."]
|
|
script = ExtResource("26_3dk6v")
|
|
label = "fishing_sfx"
|
|
events = Array[ExtResource("27_j0p8c")]([SubResource("Resource_sxq6n"), SubResource("Resource_ifamc"), SubResource("Resource_8l1se")])
|
|
|
|
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_animation_player_animation_finished"]
|
|
[connection signal="net_dropped" from="Net" to="." method="_on_net_dropped"]
|
|
[connection signal="button_down" from="Net/Button" to="Net" method="_on_button_down"]
|
|
[connection signal="button_up" from="Net/Button" to="Net" method="_on_button_up"]
|
|
[connection signal="timeout" from="Net/ResetTimer" to="Net" method="_on_reset_timer_timeout"]
|
|
[connection signal="body_entered" from="ReleasedNet/Area2D" to="." method="_on_released_net_target_entered"]
|
|
[connection signal="body_exited" from="ReleasedNet/Area2D" to="." method="_on_released_net_target_exited"]
|
|
[connection signal="timeout" from="ReleasedNet/DisappearTimer" to="." method="_on_released_net_disappear_timer_timeout"]
|