[gd_scene format=3 uid="uid://djykrpdu58f3v"]

[ext_resource type="Script" uid="uid://doq6myv45i4w6" path="res://sources/minigames/turtles/turtle.gd" id="1_vx1yr"]
[ext_resource type="PackedScene" uid="uid://cn2rw06pltyiu" path="res://sources/utils/fx/right.tscn" id="2_d5x3l"]
[ext_resource type="PackedScene" uid="uid://cge0uyn30tcpv" path="res://sources/utils/fx/highlight.tscn" id="2_rllc5"]
[ext_resource type="PackedScene" uid="uid://dlmbxcgiv8tpr" path="res://sources/utils/fx/wrong.tscn" id="4_yhidj"]
[ext_resource type="SpriteFrames" uid="uid://gm2hqn76oaib" path="res://sources/minigames/turtles/purple_turtle_animations.tres" id="5_xbpgw"]
[ext_resource type="Texture2D" uid="uid://bhahju7y2n5ke" path="res://assets/minigames/turtles/graphic/turtle_back_neutral.png" id="6_4juk7"]
[ext_resource type="LabelSettings" uid="uid://dn32fpff81uu" path="res://resources/themes/minigames_label_settings_turtles.tres" id="6_8k7c6"]
[ext_resource type="PackedScene" uid="uid://cs6g7fhc0bjvh" path="res://sources/utils/fx/right_stars.tscn" id="8_xbpgw"]
[ext_resource type="AudioStream" uid="uid://cmsn7q4fxnghr" path="res://assets/sfx/splash.mp3" id="42_p3fqk"]
[ext_resource type="PackedScene" uid="uid://cjg6pgc7yfp1p" path="res://sources/utils/swipe_detector.tscn" id="49_0qwwy"]

[sub_resource type="CircleShape2D" id="CircleShape2D_xbpgw"]
radius = 25.298222

[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_xsnve"]
radius = 103.54
height = 288.0

[node name="Turtle" type="Node2D" unique_id=711306409]
script = ExtResource("1_vx1yr")

[node name="BackFX" type="Control" parent="." unique_id=2138093019]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

[node name="RightFX" parent="BackFX" unique_id=1787877717 instance=ExtResource("2_d5x3l")]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
size_flags_vertical = 4

[node name="HighlightFX" parent="BackFX" unique_id=462139651 instance=ExtResource("2_rllc5")]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2
scale = Vector2(0.6, 0.6)

[node name="WrongFX" parent="BackFX" unique_id=777978196 instance=ExtResource("4_yhidj")]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
size_flags_vertical = 4

[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="." unique_id=799402224]
stream = ExtResource("42_p3fqk")
bus = &"Effects"

[node name="Body" type="Node2D" parent="." unique_id=1066107350]

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Body" unique_id=2065623572]
unique_name_in_owner = true
position = Vector2(0, -16)
scale = Vector2(0.8, 0.8)
sprite_frames = ExtResource("5_xbpgw")
animation = &"defeat"
autoplay = "swim"

[node name="Sprite2D_Back" type="Sprite2D" parent="Body/AnimatedSprite2D" unique_id=1980717066]
position = Vector2(0, 19.999998)
texture = ExtResource("6_4juk7")

[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="Body" unique_id=1135537719]
position = Vector2(0, -8)
rect = Rect2(-200, -225, 400, 450)

[node name="HeadArea" type="Area2D" parent="Body" unique_id=1069870481]
position = Vector2(0, -16)
collision_mask = 0
monitoring = false

[node name="CollisionShape2D" type="CollisionShape2D" parent="Body/HeadArea" unique_id=1010110015]
position = Vector2(0, -160)
shape = SubResource("CircleShape2D_xbpgw")
debug_color = Color(0.870588, 0.117647, 0, 0.388235)

[node name="BodyArea" type="Area2D" parent="Body" unique_id=1609729252]
position = Vector2(0, -16)
collision_layer = 0
monitorable = false

[node name="CollisionShape2D" type="CollisionShape2D" parent="Body/BodyArea" unique_id=1513587194]
position = Vector2(0, 16)
shape = SubResource("CapsuleShape2D_xsnve")
debug_color = Color(0.870588, 0.117647, 0, 0.388235)

[node name="Label" type="Label" parent="." unique_id=1496868599]
offset_left = -64.0
offset_top = -88.0
offset_right = 72.0
offset_bottom = 72.0
text = "ch"
label_settings = ExtResource("6_8k7c6")
horizontal_alignment = 1
vertical_alignment = 1

[node name="SwipeDetector" parent="." unique_id=1019362235 instance=ExtResource("49_0qwwy")]
offset_left = -152.0
offset_top = -216.0
offset_right = 152.0
offset_bottom = 192.0

[node name="FrontFX" type="Control" parent="." unique_id=1235223240]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

[node name="Right_Stars" parent="FrontFX" unique_id=1474432273 instance=ExtResource("8_xbpgw")]
unique_name_in_owner = true

[node name="DeleteTimer" type="Timer" parent="." unique_id=94467327]
wait_time = 3.0
one_shot = true

[connection signal="animation_changed" from="Body/AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_changed"]
[connection signal="animation_finished" from="Body/AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_finished"]
[connection signal="animation_looped" from="Body/AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_changed"]
[connection signal="screen_entered" from="Body/VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_entered"]
[connection signal="screen_exited" from="Body/VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]
[connection signal="area_entered" from="Body/BodyArea" to="." method="_on_body_area_area_entered"]
[connection signal="pressed" from="SwipeDetector" to="." method="_on_swipe_detector_pressed"]
[connection signal="swipe" from="SwipeDetector" to="." method="_on_swipe_detector_swipe"]
[connection signal="timeout" from="DeleteTimer" to="." method="_on_delete_timer_timeout"]
