[gd_scene load_steps=15 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="Texture2D" uid="uid://fdqnc2qrrvn1" path="res://assets/sprites/icon.svg" id="3_tbgi4"] [ext_resource type="Resource" uid="uid://cnhwn6kfcbjl5" path="res://assets/outfits/hats.tres" id="4_85g3d"] [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="Resource" uid="uid://etegcak2sphs" path="res://assets/outfits/shirts.tres" id="5_choun"] [ext_resource type="PackedScene" uid="uid://fut42ruut302" path="res://scenes/dragon_editor/dragon_editor.tscn" id="5_tefeu"] [ext_resource type="Resource" uid="uid://ba5684xylts3f" path="res://assets/outfits/shoes.tres" id="6_ya4ey"] [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="Script" uid="uid://w60u0tg1hlvu" path="res://scenes/dragon_adder.gd" id="11_eb6dy"] [ext_resource type="PackedScene" uid="uid://oqa2ry73vqjf" path="res://scenes/dragon_adder/dragon_adder.tscn" id="12_trceg"] [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 = ExtResource("4_85g3d") shirt_outfits = ExtResource("5_choun") shoes_outfits = ExtResource("6_ya4ey") 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 = -157.0 offset_top = 50.0 offset_right = -57.0 offset_bottom = 150.0 grow_horizontal = 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 = -156.0 offset_top = 168.0 offset_right = -56.0 offset_bottom = 268.0 grow_horizontal = 0 text = "tanca" [node name="List" type="Button" parent="CanvasLayer"] anchors_preset = 1 anchor_left = 1.0 anchor_right = 1.0 offset_left = -156.0 offset_top = 288.0 offset_right = -56.0 offset_bottom = 388.0 grow_horizontal = 0 text = "llista" script = ExtResource("9_choun") dragon_list = ExtResource("10_ya4ey") [node name="Adder" type="Button" parent="CanvasLayer"] anchors_preset = 1 anchor_left = 1.0 anchor_right = 1.0 offset_left = -156.0 offset_top = 407.0 offset_right = -56.0 offset_bottom = 507.0 grow_horizontal = 0 text = "afegeix" script = ExtResource("11_eb6dy") dragon_adder = ExtResource("12_trceg") [node name="Icon" type="Sprite2D" parent="."] position = Vector2(576, 324) scale = Vector2(9, 5.0625) texture = ExtResource("3_tbgi4") [node name="DragonSpot1" type="Node2D" parent="."] position = Vector2(259, 450) [node name="DragonSpot2" type="Node2D" parent="."] position = Vector2(557, 239) [node name="DragonSpot3" type="Node2D" parent="."] position = Vector2(850, 360) [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"] [connection signal="pressed" from="CanvasLayer/Adder" to="CanvasLayer/Adder" method="_on_pressed"]