[gd_scene load_steps=66 format=3 uid="uid://ctytpqaed0yqx"] [ext_resource type="Script" uid="uid://3kyt3shje5r1" path="res://scenes/main.gd" id="1_sugp2"] [ext_resource type="PackedScene" uid="uid://c7nfcgjxqeg7l" path="res://scenes/window/dragon_popup.tscn" id="2_jyhfs"] [ext_resource type="PackedScene" uid="uid://bj5ptaniasaaj" path="res://scenes/clock/clock.tscn" id="4_a8y0u"] [ext_resource type="PackedScene" uid="uid://miutbdsgccd1" path="res://scenes/dragons/dragon.tscn" id="4_jyhfs"] [ext_resource type="Script" uid="uid://cj4l3a6a8ro0r" path="res://scenes/create_button.gd" id="4_tbgi4"] [ext_resource type="SpriteFrames" uid="uid://ccxyplt2t7t6y" path="res://assets/animations/hats/barretina.tres" id="5_muem4"] [ext_resource type="PackedScene" uid="uid://fut42ruut302" path="res://scenes/dragon_editor/dragon_editor.tscn" id="5_tefeu"] [ext_resource type="Script" uid="uid://rw26nny160xh" path="res://src/dragon_outfit.gd" id="6_dp3eg"] [ext_resource type="Texture2D" uid="uid://c7nmelv0lx3i3" path="res://assets/sprites/decor/DP_acc_escut_Anim.png" id="7_muem4"] [ext_resource type="Texture2D" uid="uid://drnel2cjwf5dr" path="res://assets/sprites/decor/DP_acc_espasa_Anim.png" id="8_dp3eg"] [ext_resource type="Texture2D" uid="uid://dbbcv076jh4ep" path="res://assets/sprites/decor/DP_acc_rosa_Anim.png" id="9_0ld40"] [ext_resource type="Script" uid="uid://oc6mw86npbii" path="res://scenes/list_button.gd" id="9_choun"] [ext_resource type="PackedScene" uid="uid://tubxrqxjic6r" path="res://scenes/dragon_list/dragon_list.tscn" id="10_ya4ey"] [ext_resource type="Texture2D" uid="uid://bc2lykc3gwykh" path="res://assets/sprites/environment/castle/DP_castle_back.png" id="15_muem4"] [ext_resource type="Texture2D" uid="uid://o1e8lge2vuqu" path="res://assets/sprites/environment/castle/DP_castle_mid.png" id="16_dp3eg"] [ext_resource type="Texture2D" uid="uid://b1w6y1qvetsaw" path="res://assets/sprites/environment/castle/DP_castle_front.png" id="17_0ld40"] [ext_resource type="Script" uid="uid://bg58e3dobon4j" path="res://scenes/dragon_sharing.gd" id="17_muem4"] [sub_resource type="Resource" id="Resource_nlx3a"] script = ExtResource("6_dp3eg") allow_null = true outfits = Array[SpriteFrames]([ExtResource("5_muem4")]) metadata/_custom_type_script = "uid://rw26nny160xh" [sub_resource type="Resource" id="Resource_1dq4x"] script = ExtResource("6_dp3eg") allow_null = true outfits = Array[SpriteFrames]([ExtResource("5_muem4")]) metadata/_custom_type_script = "uid://rw26nny160xh" [sub_resource type="AtlasTexture" id="AtlasTexture_n1vju"] atlas = ExtResource("7_muem4") region = Rect2(0, 216, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_m1nfd"] atlas = ExtResource("7_muem4") region = Rect2(108, 216, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_3fnsk"] atlas = ExtResource("7_muem4") region = Rect2(216, 216, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_njuvk"] atlas = ExtResource("7_muem4") region = Rect2(324, 216, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_mq26c"] atlas = ExtResource("7_muem4") region = Rect2(0, 0, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_p6fb4"] atlas = ExtResource("7_muem4") region = Rect2(108, 0, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_fwa0p"] atlas = ExtResource("7_muem4") region = Rect2(216, 0, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_26ptf"] atlas = ExtResource("7_muem4") region = Rect2(324, 0, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_amy8y"] atlas = ExtResource("7_muem4") region = Rect2(432, 0, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_knwp6"] atlas = ExtResource("7_muem4") region = Rect2(540, 0, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_yfy00"] atlas = ExtResource("7_muem4") region = Rect2(0, 108, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_bnccx"] atlas = ExtResource("7_muem4") region = Rect2(108, 108, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_hc8ch"] atlas = ExtResource("7_muem4") region = Rect2(216, 108, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_0nuxw"] atlas = ExtResource("7_muem4") region = Rect2(324, 108, 108, 108) [sub_resource type="SpriteFrames" id="SpriteFrames_gqmmt"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_n1vju") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_m1nfd") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_3fnsk") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_njuvk") }], "loop": true, "name": &"fly", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_mq26c") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_p6fb4") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_fwa0p") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_26ptf") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_amy8y") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_knwp6") }], "loop": true, "name": &"idle", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_yfy00") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_bnccx") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_hc8ch") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_0nuxw") }], "loop": true, "name": &"walk", "speed": 5.0 }] [sub_resource type="AtlasTexture" id="AtlasTexture_qwppa"] atlas = ExtResource("8_dp3eg") region = Rect2(0, 216, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_1uixo"] atlas = ExtResource("8_dp3eg") region = Rect2(108, 216, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_xccp0"] atlas = ExtResource("8_dp3eg") region = Rect2(216, 216, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_nyede"] atlas = ExtResource("8_dp3eg") region = Rect2(324, 216, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_cxse4"] atlas = ExtResource("8_dp3eg") region = Rect2(0, 0, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_edjcl"] atlas = ExtResource("8_dp3eg") region = Rect2(108, 0, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_jhak8"] atlas = ExtResource("8_dp3eg") region = Rect2(216, 0, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_t2351"] atlas = ExtResource("8_dp3eg") region = Rect2(324, 0, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_uw07h"] atlas = ExtResource("8_dp3eg") region = Rect2(432, 0, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_xcrai"] atlas = ExtResource("8_dp3eg") region = Rect2(540, 0, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_tywya"] atlas = ExtResource("8_dp3eg") region = Rect2(0, 108, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_7pu4u"] atlas = ExtResource("8_dp3eg") region = Rect2(108, 108, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_i1w1o"] atlas = ExtResource("8_dp3eg") region = Rect2(216, 108, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_xsi0i"] atlas = ExtResource("8_dp3eg") region = Rect2(324, 108, 108, 108) [sub_resource type="SpriteFrames" id="SpriteFrames_yc10j"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_qwppa") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_1uixo") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_xccp0") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_nyede") }], "loop": true, "name": &"fly", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_cxse4") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_edjcl") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_jhak8") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_t2351") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_uw07h") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_xcrai") }], "loop": true, "name": &"idle", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_tywya") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_7pu4u") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_i1w1o") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_xsi0i") }], "loop": true, "name": &"walk", "speed": 5.0 }] [sub_resource type="AtlasTexture" id="AtlasTexture_ifv4k"] atlas = ExtResource("9_0ld40") region = Rect2(0, 216, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_uera2"] atlas = ExtResource("9_0ld40") region = Rect2(108, 216, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_0q8tn"] atlas = ExtResource("9_0ld40") region = Rect2(216, 216, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_f2bes"] atlas = ExtResource("9_0ld40") region = Rect2(324, 216, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_albls"] atlas = ExtResource("9_0ld40") region = Rect2(0, 0, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_mlrdx"] atlas = ExtResource("9_0ld40") region = Rect2(108, 0, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_dipuj"] atlas = ExtResource("9_0ld40") region = Rect2(216, 0, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_d0xss"] atlas = ExtResource("9_0ld40") region = Rect2(324, 0, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_mpdbr"] atlas = ExtResource("9_0ld40") region = Rect2(432, 0, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_dy3ut"] atlas = ExtResource("9_0ld40") region = Rect2(540, 0, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_gi66g"] atlas = ExtResource("9_0ld40") region = Rect2(0, 108, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_am77p"] atlas = ExtResource("9_0ld40") region = Rect2(108, 108, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_asxml"] atlas = ExtResource("9_0ld40") region = Rect2(216, 108, 108, 108) [sub_resource type="AtlasTexture" id="AtlasTexture_pral7"] atlas = ExtResource("9_0ld40") region = Rect2(324, 108, 108, 108) [sub_resource type="SpriteFrames" id="SpriteFrames_rhebu"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_ifv4k") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_uera2") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_0q8tn") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_f2bes") }], "loop": true, "name": &"fly", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_albls") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_mlrdx") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_dipuj") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_d0xss") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_mpdbr") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_dy3ut") }], "loop": true, "name": &"idle", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_gi66g") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_am77p") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_asxml") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_pral7") }], "loop": true, "name": &"walk", "speed": 5.0 }] [sub_resource type="Resource" id="Resource_if2jb"] script = ExtResource("6_dp3eg") allow_null = true outfits = Array[SpriteFrames]([SubResource("SpriteFrames_gqmmt"), SubResource("SpriteFrames_yc10j"), SubResource("SpriteFrames_rhebu")]) metadata/_custom_type_script = "uid://rw26nny160xh" [node name="Base" type="Node2D" node_paths=PackedStringArray("dragon_spots")] script = ExtResource("1_sugp2") dragon_template = ExtResource("2_jyhfs") dragon_ingame = ExtResource("4_jyhfs") dragon_spots = [NodePath("DragonSpot1"), NodePath("DragonSpot2"), NodePath("DragonSpot3")] clock = ExtResource("4_a8y0u") hat_outfits = SubResource("Resource_nlx3a") shirt_outfits = SubResource("Resource_1dq4x") shoes_outfits = SubResource("Resource_if2jb") min_dragon_instantiation_time = 2.0 max_dragon_instantiation_time = 10.0 [node name="CanvasLayer" type="CanvasLayer" parent="."] [node name="Create" type="Button" parent="CanvasLayer"] anchors_preset = 1 anchor_left = 1.0 anchor_right = 1.0 offset_left = -585.0 offset_top = 11.0 offset_right = -543.0 offset_bottom = 42.0 grow_horizontal = 0 focus_mode = 0 text = "crea" script = ExtResource("4_tbgi4") dragon_editor = ExtResource("5_tefeu") [node name="Close" type="Button" parent="CanvasLayer"] anchors_preset = 1 anchor_left = 1.0 anchor_right = 1.0 offset_left = -525.0 offset_top = 12.0 offset_right = -474.0 offset_bottom = 43.0 grow_horizontal = 0 focus_mode = 0 text = "tanca" [node name="List" type="Button" parent="CanvasLayer"] anchors_preset = 1 anchor_left = 1.0 anchor_right = 1.0 offset_left = -456.0 offset_top = 14.0 offset_right = -411.0 offset_bottom = 45.0 grow_horizontal = 0 focus_mode = 0 text = "llista" script = ExtResource("9_choun") dragon_list = ExtResource("10_ya4ey") [node name="Castle" type="Node2D" parent="."] [node name="DpCastleBack" type="Sprite2D" parent="Castle"] z_index = -1 position = Vector2(395, 159) texture = ExtResource("15_muem4") [node name="DpCastleMid" type="Sprite2D" parent="Castle"] z_index = -1 position = Vector2(395, 159) texture = ExtResource("16_dp3eg") [node name="DpCastleFront" type="Sprite2D" parent="Castle"] z_index = 1 position = Vector2(395, 159) texture = ExtResource("17_0ld40") [node name="DragonSpot1" type="Node2D" parent="."] position = Vector2(53, 249) [node name="DragonSpot2" type="Node2D" parent="."] position = Vector2(142, 118) [node name="DragonSpot3" type="Node2D" parent="."] position = Vector2(207, 252) [node name="HTTPRequest" type="HTTPRequest" parent="."] script = ExtResource("17_muem4") [connection signal="tree_entered" from="." to="." method="_on_tree_entered"] [connection signal="tree_exiting" from="." to="." method="_on_tree_exiting"] [connection signal="button_up" from="CanvasLayer/Create" to="CanvasLayer/Create" method="_on_button_up"] [connection signal="pressed" from="CanvasLayer/Close" to="." method="_on_close_pressed"] [connection signal="pressed" from="CanvasLayer/List" to="CanvasLayer/List" method="_on_pressed"]