[gd_scene load_steps=57 format=3 uid="uid://tkfgc7fdyw1a"]

[ext_resource type="PackedScene" uid="uid://cisurm74fqg2i" path="res://sources/minigames/base/words/words_minigame.tscn" id="1_geqym"]
[ext_resource type="Script" uid="uid://crs4p0fblwt00" path="res://sources/minigames/turtles/turtles_minigame.gd" id="2_f5de7"]
[ext_resource type="Texture2D" uid="uid://bt4k3wgpxv8uy" path="res://assets/minigames/turtles/graphic/gauge_icon_turtle_empty.png" id="3_3a2rs"]
[ext_resource type="Texture2D" uid="uid://rnqme2j272qf" path="res://assets/minigames/turtles/graphic/gauge_icon_turtle_full.png" id="4_l6oqe"]
[ext_resource type="PackedScene" uid="uid://chuny571miwxm" path="res://sources/minigames/turtles/island.tscn" id="5_bgryf"]
[ext_resource type="PackedScene" uid="uid://b8vmq4o8f7v5p" path="res://sources/minigames/turtles/water.tscn" id="5_g012u"]
[ext_resource type="Texture2D" uid="uid://cjxvog1y6wkfv" path="res://assets/minigames/crabs/graphic/crab_spritesheet.png" id="7_yqywd"]

[sub_resource type="AtlasTexture" id="AtlasTexture_c4r2k"]
atlas = ExtResource("7_yqywd")
region = Rect2(0, 800, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_2ax6s"]
atlas = ExtResource("7_yqywd")
region = Rect2(800, 800, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_wj62x"]
atlas = ExtResource("7_yqywd")
region = Rect2(1600, 800, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_6t11r"]
atlas = ExtResource("7_yqywd")
region = Rect2(2400, 800, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_3nie6"]
atlas = ExtResource("7_yqywd")
region = Rect2(3200, 800, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_kdwxe"]
atlas = ExtResource("7_yqywd")
region = Rect2(4000, 800, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_mgkmu"]
atlas = ExtResource("7_yqywd")
region = Rect2(4800, 800, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_og115"]
atlas = ExtResource("7_yqywd")
region = Rect2(5600, 800, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_6hu02"]
atlas = ExtResource("7_yqywd")
region = Rect2(0, 0, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_dxdqd"]
atlas = ExtResource("7_yqywd")
region = Rect2(800, 0, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_2m5dj"]
atlas = ExtResource("7_yqywd")
region = Rect2(1600, 0, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_miac0"]
atlas = ExtResource("7_yqywd")
region = Rect2(2400, 0, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_sujw8"]
atlas = ExtResource("7_yqywd")
region = Rect2(3200, 0, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_wjmc5"]
atlas = ExtResource("7_yqywd")
region = Rect2(4000, 0, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_xkrgk"]
atlas = ExtResource("7_yqywd")
region = Rect2(4800, 0, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_h0764"]
atlas = ExtResource("7_yqywd")
region = Rect2(5600, 0, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_yqywd"]
atlas = ExtResource("7_yqywd")
region = Rect2(0, 3200, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_gg017"]
atlas = ExtResource("7_yqywd")
region = Rect2(800, 3200, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_8g6da"]
atlas = ExtResource("7_yqywd")
region = Rect2(1600, 3200, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_edt8y"]
atlas = ExtResource("7_yqywd")
region = Rect2(2400, 3200, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_xk1t7"]
atlas = ExtResource("7_yqywd")
region = Rect2(3200, 3200, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_clyxi"]
atlas = ExtResource("7_yqywd")
region = Rect2(4000, 3200, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_crlfd"]
atlas = ExtResource("7_yqywd")
region = Rect2(4800, 3200, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_5rwjt"]
atlas = ExtResource("7_yqywd")
region = Rect2(5600, 3200, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_xsvu8"]
atlas = ExtResource("7_yqywd")
region = Rect2(0, 1600, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_bonf7"]
atlas = ExtResource("7_yqywd")
region = Rect2(800, 1600, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_ptv43"]
atlas = ExtResource("7_yqywd")
region = Rect2(1600, 1600, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_6lqfo"]
atlas = ExtResource("7_yqywd")
region = Rect2(2400, 1600, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_f2fec"]
atlas = ExtResource("7_yqywd")
region = Rect2(3200, 1600, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_xrh66"]
atlas = ExtResource("7_yqywd")
region = Rect2(4000, 1600, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_aoe4r"]
atlas = ExtResource("7_yqywd")
region = Rect2(4800, 1600, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_10bej"]
atlas = ExtResource("7_yqywd")
region = Rect2(5600, 1600, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_ll145"]
atlas = ExtResource("7_yqywd")
region = Rect2(0, 4000, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_0vadk"]
atlas = ExtResource("7_yqywd")
region = Rect2(800, 4000, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_ejwn2"]
atlas = ExtResource("7_yqywd")
region = Rect2(1600, 4000, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_822wx"]
atlas = ExtResource("7_yqywd")
region = Rect2(2400, 4000, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_v6xav"]
atlas = ExtResource("7_yqywd")
region = Rect2(3200, 4000, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_rrj8h"]
atlas = ExtResource("7_yqywd")
region = Rect2(4000, 4000, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_lm6wa"]
atlas = ExtResource("7_yqywd")
region = Rect2(4800, 4000, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_l5o66"]
atlas = ExtResource("7_yqywd")
region = Rect2(5600, 4000, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_7d3jy"]
atlas = ExtResource("7_yqywd")
region = Rect2(0, 2400, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_0a5g2"]
atlas = ExtResource("7_yqywd")
region = Rect2(800, 2400, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_w3881"]
atlas = ExtResource("7_yqywd")
region = Rect2(1600, 2400, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_q31br"]
atlas = ExtResource("7_yqywd")
region = Rect2(2400, 2400, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_rgrd2"]
atlas = ExtResource("7_yqywd")
region = Rect2(3200, 2400, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_dgt6k"]
atlas = ExtResource("7_yqywd")
region = Rect2(4000, 2400, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_g32nd"]
atlas = ExtResource("7_yqywd")
region = Rect2(4800, 2400, 800, 800)

[sub_resource type="AtlasTexture" id="AtlasTexture_kww4x"]
atlas = ExtResource("7_yqywd")
region = Rect2(5600, 2400, 800, 800)

[sub_resource type="SpriteFrames" id="SpriteFrames_gg017"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_c4r2k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2ax6s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wj62x")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6t11r")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3nie6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kdwxe")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mgkmu")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_og115")
}],
"loop": true,
"name": &"idle",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_6hu02")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dxdqd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2m5dj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_miac0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_sujw8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wjmc5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xkrgk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_h0764")
}],
"loop": false,
"name": &"idle_blink",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_yqywd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gg017")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8g6da")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_edt8y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xk1t7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_clyxi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_crlfd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5rwjt")
}],
"loop": true,
"name": &"idle_claws",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_xsvu8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bonf7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ptv43")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6lqfo")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_f2fec")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xrh66")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_aoe4r")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_10bej")
}],
"loop": true,
"name": &"right",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ll145")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0vadk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ejwn2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_822wx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_v6xav")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rrj8h")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lm6wa")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_l5o66")
}],
"loop": true,
"name": &"victory_claws",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_7d3jy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0a5g2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_w3881")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_q31br")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rgrd2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dgt6k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g32nd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kww4x")
}],
"loop": true,
"name": &"wrong",
"speed": 10.0
}]

[node name="TurtlesMinigame" instance=ExtResource("1_geqym")]
script = ExtResource("2_f5de7")
minigame_name = 6
lesson_nb = 24
difficulty = 4
max_number_of_lives = 5
max_progression = 5

[node name="MinigameUI" parent="." index="1"]
empty_progression_icon = ExtResource("3_3a2rs")
full_progression_icon = ExtResource("4_l6oqe")

[node name="Water" parent="GameRoot" index="0" instance=ExtResource("5_g012u")]
layout_mode = 1

[node name="Island" parent="GameRoot" index="1" instance=ExtResource("5_bgryf")]
position = Vector2(1280, 830)

[node name="Turtles" type="Node" parent="GameRoot" index="2"]
unique_name_in_owner = true

[node name="SpawnPoints" type="Node2D" parent="GameRoot" index="3"]

[node name="SpawnPoint_01" type="Node2D" parent="GameRoot/SpawnPoints" index="0"]
position = Vector2(512, -256)

[node name="SpawnPoint_02" type="Node2D" parent="GameRoot/SpawnPoints" index="1"]
position = Vector2(680, -256)

[node name="SpawnPoint_03" type="Node2D" parent="GameRoot/SpawnPoints" index="2"]
position = Vector2(960, -264)
rotation = 0.47822022

[node name="SpawnPoint_04" type="Node2D" parent="GameRoot/SpawnPoints" index="3"]
position = Vector2(1208, -256)
rotation = -0.6527531

[node name="SpawnPoint_05" type="Node2D" parent="GameRoot/SpawnPoints" index="4"]
position = Vector2(1908, -256)

[node name="SpawnPoint_06" type="Node2D" parent="GameRoot/SpawnPoints" index="5"]
position = Vector2(2116, -256)

[node name="SpawnPoint_07" type="Node2D" parent="GameRoot/SpawnPoints" index="6"]
position = Vector2(2800, 2000)
rotation = 2.3561945

[node name="SpawnPoint_08" type="Node2D" parent="GameRoot/SpawnPoints" index="7"]
position = Vector2(2116, 2048)
rotation = 3.1415927

[node name="SpawnPoint_09" type="Node2D" parent="GameRoot/SpawnPoints" index="8"]
position = Vector2(1908, 2048)
rotation = 3.1415927

[node name="SpawnPoint_15" type="Node2D" parent="GameRoot/SpawnPoints" index="9"]
position = Vector2(1680, 2048)
rotation = 3.7524579

[node name="SpawnPoint_10" type="Node2D" parent="GameRoot/SpawnPoints" index="10"]
position = Vector2(2912, 1640)
rotation = 1.5707964

[node name="SpawnPoint_11" type="Node2D" parent="GameRoot/SpawnPoints" index="11"]
position = Vector2(1152, 2048)
rotation = 3.9671333

[node name="SpawnPoint_12" type="Node2D" parent="GameRoot/SpawnPoints" index="12"]
position = Vector2(928, 2048)
rotation = 2.750639

[node name="SpawnPoint_13" type="Node2D" parent="GameRoot/SpawnPoints" index="13"]
position = Vector2(752, 2048)
rotation = 3.1415927

[node name="SpawnPoint_14" type="Node2D" parent="GameRoot/SpawnPoints" index="14"]
position = Vector2(568, 2048)
rotation = 3.1415927

[node name="SpawnTimer" type="Timer" parent="GameRoot" index="4"]
one_shot = true

[node name="CrabAnimatedSprite2D" type="AnimatedSprite2D" parent="." index="4"]
unique_name_in_owner = true
position = Vector2(1544, 742)
scale = Vector2(0.3, 0.3)
sprite_frames = SubResource("SpriteFrames_gg017")
animation = &"idle_claws"
autoplay = "idle"
centered = false

[connection signal="area_entered" from="GameRoot/Island" to="." method="_on_island_area_entered"]
[connection signal="timeout" from="GameRoot/SpawnTimer" to="." method="_on_spawn_timer_timeout"]
