diff --git a/assets/animations/decor/escut.tres b/assets/animations/decor/escut.tres new file mode 100644 index 0000000..fde0f72 --- /dev/null +++ b/assets/animations/decor/escut.tres @@ -0,0 +1,119 @@ +[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://d02qrwmwvxvw2"] + +[ext_resource type="Texture2D" uid="uid://c7nmelv0lx3i3" path="res://assets/sprites/decor/DP_acc_escut_Anim.png" id="1_p6fb4"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_mq26c"] +atlas = ExtResource("1_p6fb4") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_p6fb4"] +atlas = ExtResource("1_p6fb4") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_fwa0p"] +atlas = ExtResource("1_p6fb4") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_n1vju"] +atlas = ExtResource("1_p6fb4") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_m1nfd"] +atlas = ExtResource("1_p6fb4") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_3fnsk"] +atlas = ExtResource("1_p6fb4") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_njuvk"] +atlas = ExtResource("1_p6fb4") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_26ptf"] +atlas = ExtResource("1_p6fb4") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_amy8y"] +atlas = ExtResource("1_p6fb4") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_knwp6"] +atlas = ExtResource("1_p6fb4") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_yfy00"] +atlas = ExtResource("1_p6fb4") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_bnccx"] +atlas = ExtResource("1_p6fb4") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_hc8ch"] +atlas = ExtResource("1_p6fb4") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_0nuxw"] +atlas = ExtResource("1_p6fb4") +region = Rect2(324, 108, 108, 108) + +[resource] +animations = [{ +"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_n1vju") +}], +"loop": true, +"name": &"fly", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_m1nfd") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_3fnsk") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_njuvk") +}, { +"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 +}] diff --git a/assets/animations/decor/espasa.tres b/assets/animations/decor/espasa.tres new file mode 100644 index 0000000..47d2bc4 --- /dev/null +++ b/assets/animations/decor/espasa.tres @@ -0,0 +1,119 @@ +[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://ghqhbf88d1j8"] + +[ext_resource type="Texture2D" uid="uid://drnel2cjwf5dr" path="res://assets/sprites/decor/DP_acc_espasa_Anim.png" id="1_qqvla"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_qqvla"] +atlas = ExtResource("1_qqvla") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_qwppa"] +atlas = ExtResource("1_qqvla") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_1uixo"] +atlas = ExtResource("1_qqvla") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_xccp0"] +atlas = ExtResource("1_qqvla") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_nyede"] +atlas = ExtResource("1_qqvla") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_cxse4"] +atlas = ExtResource("1_qqvla") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_edjcl"] +atlas = ExtResource("1_qqvla") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_jhak8"] +atlas = ExtResource("1_qqvla") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_t2351"] +atlas = ExtResource("1_qqvla") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_uw07h"] +atlas = ExtResource("1_qqvla") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_xcrai"] +atlas = ExtResource("1_qqvla") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_tywya"] +atlas = ExtResource("1_qqvla") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_7pu4u"] +atlas = ExtResource("1_qqvla") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_i1w1o"] +atlas = ExtResource("1_qqvla") +region = Rect2(324, 108, 108, 108) + +[resource] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_qqvla") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_qwppa") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_1uixo") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_xccp0") +}], +"loop": true, +"name": &"fly", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_nyede") +}, { +"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") +}], +"loop": true, +"name": &"idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_xcrai") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_tywya") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_7pu4u") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_i1w1o") +}], +"loop": true, +"name": &"walk", +"speed": 5.0 +}] diff --git a/assets/animations/decor/rosa.tres b/assets/animations/decor/rosa.tres new file mode 100644 index 0000000..95df6e4 --- /dev/null +++ b/assets/animations/decor/rosa.tres @@ -0,0 +1,119 @@ +[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://c5rqqy7b5ihi5"] + +[ext_resource type="Texture2D" uid="uid://dbbcv076jh4ep" path="res://assets/sprites/decor/DP_acc_rosa_Anim.png" id="1_ewn65"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_ewn65"] +atlas = ExtResource("1_ewn65") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ifv4k"] +atlas = ExtResource("1_ewn65") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_uera2"] +atlas = ExtResource("1_ewn65") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_0q8tn"] +atlas = ExtResource("1_ewn65") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_f2bes"] +atlas = ExtResource("1_ewn65") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_albls"] +atlas = ExtResource("1_ewn65") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_mlrdx"] +atlas = ExtResource("1_ewn65") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_dipuj"] +atlas = ExtResource("1_ewn65") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_d0xss"] +atlas = ExtResource("1_ewn65") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_mpdbr"] +atlas = ExtResource("1_ewn65") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_dy3ut"] +atlas = ExtResource("1_ewn65") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_gi66g"] +atlas = ExtResource("1_ewn65") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_am77p"] +atlas = ExtResource("1_ewn65") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_asxml"] +atlas = ExtResource("1_ewn65") +region = Rect2(324, 108, 108, 108) + +[resource] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_ewn65") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ifv4k") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_uera2") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_0q8tn") +}], +"loop": true, +"name": &"fly", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_f2bes") +}, { +"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") +}], +"loop": true, +"name": &"idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_dy3ut") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_gi66g") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_am77p") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_asxml") +}], +"loop": true, +"name": &"walk", +"speed": 5.0 +}] diff --git a/assets/animations/dragon_green.tres b/assets/animations/dragon_green.tres deleted file mode 100644 index 022863c..0000000 --- a/assets/animations/dragon_green.tres +++ /dev/null @@ -1,119 +0,0 @@ -[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://4cm7picl2gvs"] - -[ext_resource type="Texture2D" uid="uid://f4c3ib4p7gcy" path="res://assets/sprites/dragons/DP_drac01_Anim.png" id="1_7wf4o"] - -[sub_resource type="AtlasTexture" id="AtlasTexture_7wf4o"] -atlas = ExtResource("1_7wf4o") -region = Rect2(0, 216, 108, 108) - -[sub_resource type="AtlasTexture" id="AtlasTexture_06adf"] -atlas = ExtResource("1_7wf4o") -region = Rect2(108, 216, 108, 108) - -[sub_resource type="AtlasTexture" id="AtlasTexture_r1nr2"] -atlas = ExtResource("1_7wf4o") -region = Rect2(216, 216, 108, 108) - -[sub_resource type="AtlasTexture" id="AtlasTexture_ob486"] -atlas = ExtResource("1_7wf4o") -region = Rect2(324, 216, 108, 108) - -[sub_resource type="AtlasTexture" id="AtlasTexture_vxc6x"] -atlas = ExtResource("1_7wf4o") -region = Rect2(0, 0, 108, 108) - -[sub_resource type="AtlasTexture" id="AtlasTexture_jbw75"] -atlas = ExtResource("1_7wf4o") -region = Rect2(108, 0, 108, 108) - -[sub_resource type="AtlasTexture" id="AtlasTexture_ei2lw"] -atlas = ExtResource("1_7wf4o") -region = Rect2(216, 0, 108, 108) - -[sub_resource type="AtlasTexture" id="AtlasTexture_q6cr0"] -atlas = ExtResource("1_7wf4o") -region = Rect2(324, 0, 108, 108) - -[sub_resource type="AtlasTexture" id="AtlasTexture_m3lw6"] -atlas = ExtResource("1_7wf4o") -region = Rect2(432, 0, 108, 108) - -[sub_resource type="AtlasTexture" id="AtlasTexture_kdf45"] -atlas = ExtResource("1_7wf4o") -region = Rect2(540, 0, 108, 108) - -[sub_resource type="AtlasTexture" id="AtlasTexture_1w6rw"] -atlas = ExtResource("1_7wf4o") -region = Rect2(0, 108, 108, 108) - -[sub_resource type="AtlasTexture" id="AtlasTexture_80v1m"] -atlas = ExtResource("1_7wf4o") -region = Rect2(108, 108, 108, 108) - -[sub_resource type="AtlasTexture" id="AtlasTexture_nv7os"] -atlas = ExtResource("1_7wf4o") -region = Rect2(216, 108, 108, 108) - -[sub_resource type="AtlasTexture" id="AtlasTexture_ly6pi"] -atlas = ExtResource("1_7wf4o") -region = Rect2(324, 108, 108, 108) - -[resource] -animations = [{ -"frames": [{ -"duration": 1.0, -"texture": SubResource("AtlasTexture_7wf4o") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_06adf") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_r1nr2") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_ob486") -}], -"loop": true, -"name": &"fly", -"speed": 5.0 -}, { -"frames": [{ -"duration": 1.0, -"texture": SubResource("AtlasTexture_vxc6x") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_jbw75") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_ei2lw") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_q6cr0") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_m3lw6") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_kdf45") -}], -"loop": true, -"name": &"idle", -"speed": 5.0 -}, { -"frames": [{ -"duration": 1.0, -"texture": SubResource("AtlasTexture_1w6rw") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_80v1m") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_nv7os") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_ly6pi") -}], -"loop": true, -"name": &"walk", -"speed": 5.0 -}] diff --git a/assets/animations/dragons/blau.tres b/assets/animations/dragons/blau.tres new file mode 100644 index 0000000..a42c108 --- /dev/null +++ b/assets/animations/dragons/blau.tres @@ -0,0 +1,119 @@ +[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://bfviwc5qcl6fj"] + +[ext_resource type="Texture2D" uid="uid://clp02nlyac2g8" path="res://assets/sprites/dragons/DP_drac02_Anim.png" id="1_yijd7"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_fl06t"] +atlas = ExtResource("1_yijd7") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_14fve"] +atlas = ExtResource("1_yijd7") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ce0w3"] +atlas = ExtResource("1_yijd7") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_x5531"] +atlas = ExtResource("1_yijd7") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_gxug3"] +atlas = ExtResource("1_yijd7") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_dfjkg"] +atlas = ExtResource("1_yijd7") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_fq5di"] +atlas = ExtResource("1_yijd7") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_l5odh"] +atlas = ExtResource("1_yijd7") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_qcp1n"] +atlas = ExtResource("1_yijd7") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_0h0gq"] +atlas = ExtResource("1_yijd7") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_m6iqp"] +atlas = ExtResource("1_yijd7") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_hvha6"] +atlas = ExtResource("1_yijd7") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_2mhj3"] +atlas = ExtResource("1_yijd7") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_qwnnt"] +atlas = ExtResource("1_yijd7") +region = Rect2(324, 108, 108, 108) + +[resource] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_fl06t") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_14fve") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ce0w3") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_x5531") +}], +"loop": true, +"name": &"fly", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_gxug3") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_dfjkg") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_fq5di") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_l5odh") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_qcp1n") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_0h0gq") +}], +"loop": true, +"name": &"idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_m6iqp") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_hvha6") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_2mhj3") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_qwnnt") +}], +"loop": true, +"name": &"walk", +"speed": 5.0 +}] diff --git a/assets/animations/dragons/gris.tres b/assets/animations/dragons/gris.tres new file mode 100644 index 0000000..71fa838 --- /dev/null +++ b/assets/animations/dragons/gris.tres @@ -0,0 +1,119 @@ +[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://8ooldj4ypfj2"] + +[ext_resource type="Texture2D" uid="uid://c0ix7r57l1swx" path="res://assets/sprites/dragons/DP_drac06_Anim.png" id="1_2went"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_waewi"] +atlas = ExtResource("1_2went") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_bqp3r"] +atlas = ExtResource("1_2went") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_to3q2"] +atlas = ExtResource("1_2went") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_akaea"] +atlas = ExtResource("1_2went") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_xbxev"] +atlas = ExtResource("1_2went") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_e4f2w"] +atlas = ExtResource("1_2went") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_1h3nn"] +atlas = ExtResource("1_2went") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_680yn"] +atlas = ExtResource("1_2went") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_s56j0"] +atlas = ExtResource("1_2went") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_iaqbq"] +atlas = ExtResource("1_2went") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ny8vc"] +atlas = ExtResource("1_2went") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_s1wsx"] +atlas = ExtResource("1_2went") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_dy35q"] +atlas = ExtResource("1_2went") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_nlpvo"] +atlas = ExtResource("1_2went") +region = Rect2(324, 108, 108, 108) + +[resource] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_waewi") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_bqp3r") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_to3q2") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_akaea") +}], +"loop": true, +"name": &"fly", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_xbxev") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_e4f2w") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_1h3nn") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_680yn") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_s56j0") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_iaqbq") +}], +"loop": true, +"name": &"idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_ny8vc") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_s1wsx") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_dy35q") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_nlpvo") +}], +"loop": true, +"name": &"walk", +"speed": 5.0 +}] diff --git a/assets/animations/dragons/lila.tres b/assets/animations/dragons/lila.tres new file mode 100644 index 0000000..d782506 --- /dev/null +++ b/assets/animations/dragons/lila.tres @@ -0,0 +1,119 @@ +[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://rtlmmehjocac"] + +[ext_resource type="Texture2D" uid="uid://d21m7gvjn7t2w" path="res://assets/sprites/dragons/DP_drac05_Anim.png" id="1_f3ong"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_yrrwj"] +atlas = ExtResource("1_f3ong") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ja57i"] +atlas = ExtResource("1_f3ong") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ejeov"] +atlas = ExtResource("1_f3ong") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ussad"] +atlas = ExtResource("1_f3ong") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_prirb"] +atlas = ExtResource("1_f3ong") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_07rsg"] +atlas = ExtResource("1_f3ong") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_0wmao"] +atlas = ExtResource("1_f3ong") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_abuf0"] +atlas = ExtResource("1_f3ong") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_kdbgm"] +atlas = ExtResource("1_f3ong") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_7mxbr"] +atlas = ExtResource("1_f3ong") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_hrq48"] +atlas = ExtResource("1_f3ong") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_femvo"] +atlas = ExtResource("1_f3ong") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_up28x"] +atlas = ExtResource("1_f3ong") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_lh724"] +atlas = ExtResource("1_f3ong") +region = Rect2(324, 108, 108, 108) + +[resource] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_yrrwj") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ja57i") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ejeov") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ussad") +}], +"loop": true, +"name": &"fly", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_prirb") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_07rsg") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_0wmao") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_abuf0") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_kdbgm") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_7mxbr") +}], +"loop": true, +"name": &"idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_hrq48") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_femvo") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_up28x") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_lh724") +}], +"loop": true, +"name": &"walk", +"speed": 5.0 +}] diff --git a/assets/animations/dragons/rosa.tres b/assets/animations/dragons/rosa.tres new file mode 100644 index 0000000..9e30777 --- /dev/null +++ b/assets/animations/dragons/rosa.tres @@ -0,0 +1,119 @@ +[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://byt01eiqq6set"] + +[ext_resource type="Texture2D" uid="uid://ig3pbqrpnm7u" path="res://assets/sprites/dragons/DP_drac03_Anim.png" id="1_m4sxj"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_f7m8a"] +atlas = ExtResource("1_m4sxj") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_nafcc"] +atlas = ExtResource("1_m4sxj") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_a3w85"] +atlas = ExtResource("1_m4sxj") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_o7xst"] +atlas = ExtResource("1_m4sxj") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_u3vb2"] +atlas = ExtResource("1_m4sxj") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_lgfao"] +atlas = ExtResource("1_m4sxj") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_s8edn"] +atlas = ExtResource("1_m4sxj") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_lq16e"] +atlas = ExtResource("1_m4sxj") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_xcin1"] +atlas = ExtResource("1_m4sxj") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_wv0f5"] +atlas = ExtResource("1_m4sxj") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_b1anw"] +atlas = ExtResource("1_m4sxj") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_qxmjr"] +atlas = ExtResource("1_m4sxj") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_lus7l"] +atlas = ExtResource("1_m4sxj") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_8l3dm"] +atlas = ExtResource("1_m4sxj") +region = Rect2(324, 108, 108, 108) + +[resource] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_f7m8a") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_nafcc") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_a3w85") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_o7xst") +}], +"loop": true, +"name": &"fly", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_u3vb2") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_lgfao") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_s8edn") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_lq16e") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_xcin1") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_wv0f5") +}], +"loop": true, +"name": &"idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_b1anw") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_qxmjr") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_lus7l") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_8l3dm") +}], +"loop": true, +"name": &"walk", +"speed": 5.0 +}] diff --git a/assets/animations/dragons/taronja.tres b/assets/animations/dragons/taronja.tres new file mode 100644 index 0000000..8d8b8ff --- /dev/null +++ b/assets/animations/dragons/taronja.tres @@ -0,0 +1,119 @@ +[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://eewnnh458hux"] + +[ext_resource type="Texture2D" uid="uid://blej4jyd3oup1" path="res://assets/sprites/dragons/DP_drac04_Anim.png" id="1_ng7ie"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_un46y"] +atlas = ExtResource("1_ng7ie") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_6sc05"] +atlas = ExtResource("1_ng7ie") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_bk8fb"] +atlas = ExtResource("1_ng7ie") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_4rtcn"] +atlas = ExtResource("1_ng7ie") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_k80y2"] +atlas = ExtResource("1_ng7ie") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_mp7mu"] +atlas = ExtResource("1_ng7ie") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_7awqb"] +atlas = ExtResource("1_ng7ie") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_qagc0"] +atlas = ExtResource("1_ng7ie") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_2s8wk"] +atlas = ExtResource("1_ng7ie") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_kq5if"] +atlas = ExtResource("1_ng7ie") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_t1wlu"] +atlas = ExtResource("1_ng7ie") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_82l4f"] +atlas = ExtResource("1_ng7ie") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_mi1ns"] +atlas = ExtResource("1_ng7ie") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_jkrmy"] +atlas = ExtResource("1_ng7ie") +region = Rect2(324, 108, 108, 108) + +[resource] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_un46y") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_6sc05") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_bk8fb") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_4rtcn") +}], +"loop": true, +"name": &"fly", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_k80y2") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_mp7mu") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_7awqb") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_qagc0") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_2s8wk") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_kq5if") +}], +"loop": true, +"name": &"idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_t1wlu") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_82l4f") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_mi1ns") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_jkrmy") +}], +"loop": true, +"name": &"walk", +"speed": 5.0 +}] diff --git a/assets/animations/dragons/verd.tres b/assets/animations/dragons/verd.tres new file mode 100644 index 0000000..7242a2f --- /dev/null +++ b/assets/animations/dragons/verd.tres @@ -0,0 +1,119 @@ +[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://duxxw4mfxql3c"] + +[ext_resource type="Texture2D" uid="uid://f4c3ib4p7gcy" path="res://assets/sprites/dragons/DP_drac01_Anim.png" id="1_4rvgc"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_x822l"] +atlas = ExtResource("1_4rvgc") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_l5gib"] +atlas = ExtResource("1_4rvgc") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_8hd5r"] +atlas = ExtResource("1_4rvgc") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_crcff"] +atlas = ExtResource("1_4rvgc") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_f7tkc"] +atlas = ExtResource("1_4rvgc") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_183wa"] +atlas = ExtResource("1_4rvgc") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ww7bl"] +atlas = ExtResource("1_4rvgc") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_auf5o"] +atlas = ExtResource("1_4rvgc") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_gmmhw"] +atlas = ExtResource("1_4rvgc") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_j4sk3"] +atlas = ExtResource("1_4rvgc") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_pe34j"] +atlas = ExtResource("1_4rvgc") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_6gvnx"] +atlas = ExtResource("1_4rvgc") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_7g40m"] +atlas = ExtResource("1_4rvgc") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_6hge5"] +atlas = ExtResource("1_4rvgc") +region = Rect2(324, 108, 108, 108) + +[resource] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_x822l") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_l5gib") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_8hd5r") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_crcff") +}], +"loop": true, +"name": &"fly", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_f7tkc") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_183wa") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ww7bl") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_auf5o") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_gmmhw") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_j4sk3") +}], +"loop": true, +"name": &"idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_pe34j") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_6gvnx") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_7g40m") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_6hge5") +}], +"loop": true, +"name": &"walk", +"speed": 5.0 +}] diff --git a/assets/animations/hats/barretina.tres b/assets/animations/hats/barretina.tres new file mode 100644 index 0000000..a5c06dd --- /dev/null +++ b/assets/animations/hats/barretina.tres @@ -0,0 +1,119 @@ +[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://ccxyplt2t7t6y"] + +[ext_resource type="Texture2D" uid="uid://blkh88mh1rnm" path="res://assets/sprites/hats/DP_barret_barretina_Anim.png" id="1_nds5y"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_gde4a"] +atlas = ExtResource("1_nds5y") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_e3yq5"] +atlas = ExtResource("1_nds5y") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_olugv"] +atlas = ExtResource("1_nds5y") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_vayoa"] +atlas = ExtResource("1_nds5y") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_7lo45"] +atlas = ExtResource("1_nds5y") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_8tpmy"] +atlas = ExtResource("1_nds5y") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_e403u"] +atlas = ExtResource("1_nds5y") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_e366r"] +atlas = ExtResource("1_nds5y") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ylcln"] +atlas = ExtResource("1_nds5y") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_2xe73"] +atlas = ExtResource("1_nds5y") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_dakrn"] +atlas = ExtResource("1_nds5y") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_q80c7"] +atlas = ExtResource("1_nds5y") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_bhxca"] +atlas = ExtResource("1_nds5y") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_m466e"] +atlas = ExtResource("1_nds5y") +region = Rect2(324, 108, 108, 108) + +[resource] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_gde4a") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_e3yq5") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_olugv") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_vayoa") +}], +"loop": true, +"name": &"fly", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_7lo45") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_8tpmy") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_e403u") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_e366r") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ylcln") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_2xe73") +}], +"loop": true, +"name": &"idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_dakrn") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_q80c7") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_bhxca") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_m466e") +}], +"loop": true, +"name": &"walk", +"speed": 5.0 +}] diff --git a/assets/animations/hats/casc.tres b/assets/animations/hats/casc.tres new file mode 100644 index 0000000..d43a448 --- /dev/null +++ b/assets/animations/hats/casc.tres @@ -0,0 +1,119 @@ +[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://ci2is31ratmsd"] + +[ext_resource type="Texture2D" uid="uid://uchf8kc02nq2" path="res://assets/sprites/hats/DP_barret_casc_Anim.png" id="1_v5wkj"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_v5wkj"] +atlas = ExtResource("1_v5wkj") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_rnyfi"] +atlas = ExtResource("1_v5wkj") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_an2bm"] +atlas = ExtResource("1_v5wkj") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_83lh8"] +atlas = ExtResource("1_v5wkj") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_04ex5"] +atlas = ExtResource("1_v5wkj") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_6sbcy"] +atlas = ExtResource("1_v5wkj") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_1olxv"] +atlas = ExtResource("1_v5wkj") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_3bvwv"] +atlas = ExtResource("1_v5wkj") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_nhgsj"] +atlas = ExtResource("1_v5wkj") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ixq2b"] +atlas = ExtResource("1_v5wkj") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_pak8g"] +atlas = ExtResource("1_v5wkj") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_wqor3"] +atlas = ExtResource("1_v5wkj") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_rjvh1"] +atlas = ExtResource("1_v5wkj") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_sqqba"] +atlas = ExtResource("1_v5wkj") +region = Rect2(324, 108, 108, 108) + +[resource] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_v5wkj") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_rnyfi") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_an2bm") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_83lh8") +}], +"loop": true, +"name": &"fly", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_04ex5") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_6sbcy") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_1olxv") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_3bvwv") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_nhgsj") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ixq2b") +}], +"loop": true, +"name": &"idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_pak8g") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_wqor3") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_rjvh1") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_sqqba") +}], +"loop": true, +"name": &"walk", +"speed": 5.0 +}] diff --git a/assets/animations/hats/copa.tres b/assets/animations/hats/copa.tres new file mode 100644 index 0000000..094de9d --- /dev/null +++ b/assets/animations/hats/copa.tres @@ -0,0 +1,119 @@ +[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://b80fhqafet4su"] + +[ext_resource type="Texture2D" uid="uid://cikq8k32v8ann" path="res://assets/sprites/hats/DP_barret_copa_Anim.png" id="1_lexmk"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_lexmk"] +atlas = ExtResource("1_lexmk") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_50j2j"] +atlas = ExtResource("1_lexmk") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_1gtgj"] +atlas = ExtResource("1_lexmk") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_j1iax"] +atlas = ExtResource("1_lexmk") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_dkc5t"] +atlas = ExtResource("1_lexmk") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_12efb"] +atlas = ExtResource("1_lexmk") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_fqhbc"] +atlas = ExtResource("1_lexmk") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_c4e6a"] +atlas = ExtResource("1_lexmk") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_81d3g"] +atlas = ExtResource("1_lexmk") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_3edwv"] +atlas = ExtResource("1_lexmk") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_3dbo2"] +atlas = ExtResource("1_lexmk") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_0fupp"] +atlas = ExtResource("1_lexmk") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_o4nce"] +atlas = ExtResource("1_lexmk") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_phb2t"] +atlas = ExtResource("1_lexmk") +region = Rect2(324, 108, 108, 108) + +[resource] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_lexmk") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_50j2j") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_1gtgj") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_j1iax") +}], +"loop": true, +"name": &"fly", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_dkc5t") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_12efb") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_fqhbc") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_c4e6a") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_81d3g") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_3edwv") +}], +"loop": true, +"name": &"idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_3dbo2") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_0fupp") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_o4nce") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_phb2t") +}], +"loop": true, +"name": &"walk", +"speed": 5.0 +}] diff --git a/assets/animations/hats/corona.tres b/assets/animations/hats/corona.tres new file mode 100644 index 0000000..5021784 --- /dev/null +++ b/assets/animations/hats/corona.tres @@ -0,0 +1,119 @@ +[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://8yggiamdjxiq"] + +[ext_resource type="Texture2D" uid="uid://chdfhv2fysfnc" path="res://assets/sprites/hats/DP_barret_corona_Anim.png" id="1_b2w28"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_b2w28"] +atlas = ExtResource("1_b2w28") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_px20u"] +atlas = ExtResource("1_b2w28") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_x46yd"] +atlas = ExtResource("1_b2w28") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_cu4dy"] +atlas = ExtResource("1_b2w28") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_wkf2m"] +atlas = ExtResource("1_b2w28") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_bnv28"] +atlas = ExtResource("1_b2w28") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_8pgb1"] +atlas = ExtResource("1_b2w28") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_eiwrn"] +atlas = ExtResource("1_b2w28") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_fgqbr"] +atlas = ExtResource("1_b2w28") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_tx00u"] +atlas = ExtResource("1_b2w28") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_plwgp"] +atlas = ExtResource("1_b2w28") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_dckeg"] +atlas = ExtResource("1_b2w28") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_5c1ja"] +atlas = ExtResource("1_b2w28") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_k3p5f"] +atlas = ExtResource("1_b2w28") +region = Rect2(324, 108, 108, 108) + +[resource] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_b2w28") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_px20u") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_x46yd") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_cu4dy") +}], +"loop": true, +"name": &"fly", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_wkf2m") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_bnv28") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_8pgb1") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_eiwrn") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_fgqbr") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_tx00u") +}], +"loop": true, +"name": &"idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_plwgp") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_dckeg") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_5c1ja") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_k3p5f") +}], +"loop": true, +"name": &"walk", +"speed": 5.0 +}] diff --git a/assets/animations/hats/palla.tres b/assets/animations/hats/palla.tres new file mode 100644 index 0000000..0ba4968 --- /dev/null +++ b/assets/animations/hats/palla.tres @@ -0,0 +1,119 @@ +[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://c0wthowsa1sbt"] + +[ext_resource type="Texture2D" uid="uid://cwmkb6rqfiopn" path="res://assets/sprites/hats/DP_barret_palla_Anim.png" id="1_tcv3u"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_tcv3u"] +atlas = ExtResource("1_tcv3u") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_da6ue"] +atlas = ExtResource("1_tcv3u") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_kw4rt"] +atlas = ExtResource("1_tcv3u") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_jv4da"] +atlas = ExtResource("1_tcv3u") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_isbj3"] +atlas = ExtResource("1_tcv3u") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_55m84"] +atlas = ExtResource("1_tcv3u") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_gjqlb"] +atlas = ExtResource("1_tcv3u") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_3ko3f"] +atlas = ExtResource("1_tcv3u") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_hv1r2"] +atlas = ExtResource("1_tcv3u") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_68eqo"] +atlas = ExtResource("1_tcv3u") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_abafu"] +atlas = ExtResource("1_tcv3u") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_aqiqq"] +atlas = ExtResource("1_tcv3u") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_rvse7"] +atlas = ExtResource("1_tcv3u") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_t4vtj"] +atlas = ExtResource("1_tcv3u") +region = Rect2(324, 108, 108, 108) + +[resource] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_tcv3u") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_da6ue") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_kw4rt") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_jv4da") +}], +"loop": true, +"name": &"fly", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_isbj3") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_55m84") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_gjqlb") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_3ko3f") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_hv1r2") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_68eqo") +}], +"loop": true, +"name": &"idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_abafu") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_aqiqq") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_rvse7") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_t4vtj") +}], +"loop": true, +"name": &"walk", +"speed": 5.0 +}] diff --git a/assets/animations/hats/princesa.tres b/assets/animations/hats/princesa.tres new file mode 100644 index 0000000..7a7b74f --- /dev/null +++ b/assets/animations/hats/princesa.tres @@ -0,0 +1,119 @@ +[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://uy33g2ifbwnu"] + +[ext_resource type="Texture2D" uid="uid://1a5x8tv4ts0f" path="res://assets/sprites/hats/DP_barret_princesa_Anim.png" id="1_1bd2i"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_1bd2i"] +atlas = ExtResource("1_1bd2i") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_yfsyi"] +atlas = ExtResource("1_1bd2i") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_aakrx"] +atlas = ExtResource("1_1bd2i") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_b3ldy"] +atlas = ExtResource("1_1bd2i") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_7xgra"] +atlas = ExtResource("1_1bd2i") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_do08g"] +atlas = ExtResource("1_1bd2i") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_nyj5o"] +atlas = ExtResource("1_1bd2i") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_uunbt"] +atlas = ExtResource("1_1bd2i") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_n2w2x"] +atlas = ExtResource("1_1bd2i") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_tg4yk"] +atlas = ExtResource("1_1bd2i") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_7ysxe"] +atlas = ExtResource("1_1bd2i") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_4n3lf"] +atlas = ExtResource("1_1bd2i") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_8g0c4"] +atlas = ExtResource("1_1bd2i") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_mv71d"] +atlas = ExtResource("1_1bd2i") +region = Rect2(324, 108, 108, 108) + +[resource] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_1bd2i") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_yfsyi") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_aakrx") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_b3ldy") +}], +"loop": true, +"name": &"fly", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_7xgra") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_do08g") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_nyj5o") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_uunbt") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_n2w2x") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_tg4yk") +}], +"loop": true, +"name": &"idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_7ysxe") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_4n3lf") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_8g0c4") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_mv71d") +}], +"loop": true, +"name": &"walk", +"speed": 5.0 +}] diff --git a/assets/animations/shirts/armadura.tres b/assets/animations/shirts/armadura.tres new file mode 100644 index 0000000..a721247 --- /dev/null +++ b/assets/animations/shirts/armadura.tres @@ -0,0 +1,119 @@ +[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://d3oqg43q07hgx"] + +[ext_resource type="Texture2D" uid="uid://do2jnyp7khi61" path="res://assets/sprites/shirts/DP_tors_armadura_Anim.png" id="1_qj3ua"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_qj3ua"] +atlas = ExtResource("1_qj3ua") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_40ca8"] +atlas = ExtResource("1_qj3ua") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_b5s42"] +atlas = ExtResource("1_qj3ua") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_j1m1d"] +atlas = ExtResource("1_qj3ua") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_3ctjs"] +atlas = ExtResource("1_qj3ua") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_s5nje"] +atlas = ExtResource("1_qj3ua") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_8brq5"] +atlas = ExtResource("1_qj3ua") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_2tcdn"] +atlas = ExtResource("1_qj3ua") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_dlxxp"] +atlas = ExtResource("1_qj3ua") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_526hu"] +atlas = ExtResource("1_qj3ua") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_5b44k"] +atlas = ExtResource("1_qj3ua") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_q6nmq"] +atlas = ExtResource("1_qj3ua") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_cbwm1"] +atlas = ExtResource("1_qj3ua") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_dvtad"] +atlas = ExtResource("1_qj3ua") +region = Rect2(324, 108, 108, 108) + +[resource] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_qj3ua") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_40ca8") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_b5s42") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_j1m1d") +}], +"loop": true, +"name": &"fly", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_3ctjs") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_s5nje") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_8brq5") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_2tcdn") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_dlxxp") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_526hu") +}], +"loop": true, +"name": &"idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_5b44k") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_q6nmq") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_cbwm1") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_dvtad") +}], +"loop": true, +"name": &"walk", +"speed": 5.0 +}] diff --git a/assets/animations/shirts/faixa.tres b/assets/animations/shirts/faixa.tres new file mode 100644 index 0000000..1c339a9 --- /dev/null +++ b/assets/animations/shirts/faixa.tres @@ -0,0 +1,119 @@ +[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://10jannrmftdx"] + +[ext_resource type="Texture2D" uid="uid://ckf8ac7yfrpe8" path="res://assets/sprites/shirts/DP_tors_faixa_Anim.png" id="1_21a7t"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_21a7t"] +atlas = ExtResource("1_21a7t") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_38422"] +atlas = ExtResource("1_21a7t") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_2mhq4"] +atlas = ExtResource("1_21a7t") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_td7uk"] +atlas = ExtResource("1_21a7t") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_tm7qa"] +atlas = ExtResource("1_21a7t") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_kut48"] +atlas = ExtResource("1_21a7t") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_8fcqq"] +atlas = ExtResource("1_21a7t") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ksbs5"] +atlas = ExtResource("1_21a7t") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_4hopx"] +atlas = ExtResource("1_21a7t") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_f06ic"] +atlas = ExtResource("1_21a7t") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_7xalm"] +atlas = ExtResource("1_21a7t") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_cj6h0"] +atlas = ExtResource("1_21a7t") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_nnm3j"] +atlas = ExtResource("1_21a7t") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_fr1fj"] +atlas = ExtResource("1_21a7t") +region = Rect2(324, 108, 108, 108) + +[resource] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_21a7t") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_38422") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_2mhq4") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_td7uk") +}], +"loop": true, +"name": &"fly", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_tm7qa") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_kut48") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_8fcqq") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ksbs5") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_4hopx") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_f06ic") +}], +"loop": true, +"name": &"idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_7xalm") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_cj6h0") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_nnm3j") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_fr1fj") +}], +"loop": true, +"name": &"walk", +"speed": 5.0 +}] diff --git a/assets/animations/shirts/traje.tres b/assets/animations/shirts/traje.tres new file mode 100644 index 0000000..db13243 --- /dev/null +++ b/assets/animations/shirts/traje.tres @@ -0,0 +1,119 @@ +[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://dsxhfu2ekw7j"] + +[ext_resource type="Texture2D" uid="uid://cdum44fqvsa71" path="res://assets/sprites/shirts/DP_tors_traje_Anim.png" id="1_6b0p8"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_uyq6w"] +atlas = ExtResource("1_6b0p8") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_6b0p8"] +atlas = ExtResource("1_6b0p8") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_epv7g"] +atlas = ExtResource("1_6b0p8") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_areka"] +atlas = ExtResource("1_6b0p8") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_n44x0"] +atlas = ExtResource("1_6b0p8") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_kt4p1"] +atlas = ExtResource("1_6b0p8") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_xicmt"] +atlas = ExtResource("1_6b0p8") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_aa5wf"] +atlas = ExtResource("1_6b0p8") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_3q4vm"] +atlas = ExtResource("1_6b0p8") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_u36ea"] +atlas = ExtResource("1_6b0p8") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ng271"] +atlas = ExtResource("1_6b0p8") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_araj8"] +atlas = ExtResource("1_6b0p8") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_qgh4n"] +atlas = ExtResource("1_6b0p8") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_t7luh"] +atlas = ExtResource("1_6b0p8") +region = Rect2(324, 108, 108, 108) + +[resource] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_uyq6w") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_6b0p8") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_epv7g") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_areka") +}], +"loop": true, +"name": &"fly", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_n44x0") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_kt4p1") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_xicmt") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_aa5wf") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_3q4vm") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_u36ea") +}], +"loop": true, +"name": &"idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_ng271") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_araj8") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_qgh4n") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_t7luh") +}], +"loop": true, +"name": &"walk", +"speed": 5.0 +}] diff --git a/assets/animations/shirts/tutu.tres b/assets/animations/shirts/tutu.tres new file mode 100644 index 0000000..a3678d4 --- /dev/null +++ b/assets/animations/shirts/tutu.tres @@ -0,0 +1,119 @@ +[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://d4jne76ck2l1w"] + +[ext_resource type="Texture2D" uid="uid://cs2mds1fjgoi0" path="res://assets/sprites/shirts/DP_tors_tutu_Anim.png" id="1_g26hv"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_g26hv"] +atlas = ExtResource("1_g26hv") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_1s6pj"] +atlas = ExtResource("1_g26hv") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_nvh52"] +atlas = ExtResource("1_g26hv") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_i40w0"] +atlas = ExtResource("1_g26hv") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_mdjac"] +atlas = ExtResource("1_g26hv") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_3n6r8"] +atlas = ExtResource("1_g26hv") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_lvejb"] +atlas = ExtResource("1_g26hv") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_adymh"] +atlas = ExtResource("1_g26hv") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_rdwbh"] +atlas = ExtResource("1_g26hv") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_kg1pc"] +atlas = ExtResource("1_g26hv") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_y6n83"] +atlas = ExtResource("1_g26hv") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_kty36"] +atlas = ExtResource("1_g26hv") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_butvq"] +atlas = ExtResource("1_g26hv") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_v4jan"] +atlas = ExtResource("1_g26hv") +region = Rect2(324, 108, 108, 108) + +[resource] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_g26hv") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_1s6pj") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_nvh52") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_i40w0") +}], +"loop": true, +"name": &"fly", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_mdjac") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_3n6r8") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_lvejb") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_adymh") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_rdwbh") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_kg1pc") +}], +"loop": true, +"name": &"idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_y6n83") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_kty36") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_butvq") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_v4jan") +}], +"loop": true, +"name": &"walk", +"speed": 5.0 +}] diff --git a/assets/outfits/decor.tres b/assets/outfits/decor.tres new file mode 100644 index 0000000..33b2c54 --- /dev/null +++ b/assets/outfits/decor.tres @@ -0,0 +1,12 @@ +[gd_resource type="Resource" script_class="DragonOutfit" load_steps=5 format=3 uid="uid://dkm7d10c1lp2n"] + +[ext_resource type="SpriteFrames" uid="uid://d02qrwmwvxvw2" path="res://assets/animations/decor/escut.tres" id="1_7gbys"] +[ext_resource type="SpriteFrames" uid="uid://ghqhbf88d1j8" path="res://assets/animations/decor/espasa.tres" id="2_igpcj"] +[ext_resource type="SpriteFrames" uid="uid://c5rqqy7b5ihi5" path="res://assets/animations/decor/rosa.tres" id="3_wdoma"] +[ext_resource type="Script" uid="uid://rw26nny160xh" path="res://src/dragon_outfit.gd" id="4_l42ho"] + +[resource] +script = ExtResource("4_l42ho") +allow_null = true +outfits = Array[SpriteFrames]([ExtResource("1_7gbys"), ExtResource("2_igpcj"), ExtResource("3_wdoma")]) +metadata/_custom_type_script = "uid://rw26nny160xh" diff --git a/assets/outfits/dragons.tres b/assets/outfits/dragons.tres index 272f0ec..08f4be5 100644 --- a/assets/outfits/dragons.tres +++ b/assets/outfits/dragons.tres @@ -1,11 +1,15 @@ -[gd_resource type="Resource" script_class="DragonOutfit" load_steps=5 format=3 uid="uid://bcs60f2k7h0jc"] +[gd_resource type="Resource" script_class="DragonOutfit" load_steps=8 format=3 uid="uid://c03ejnvavmcj5"] -[ext_resource type="Texture2D" uid="uid://dl87ffgh2hl68" path="res://assets/sprites/dragons/DragonPet_drac01.png" id="1_3e6qx"] -[ext_resource type="Texture2D" uid="uid://davsy68qknywo" path="res://assets/sprites/dragons/DragonPet_drac02.png" id="2_lvc22"] -[ext_resource type="Texture2D" uid="uid://c4l1h6ecobnsu" path="res://assets/sprites/dragons/DragonPet_drac03.png" id="3_8ji77"] +[ext_resource type="SpriteFrames" uid="uid://duxxw4mfxql3c" path="res://assets/animations/dragons/verd.tres" id="1_sxi2r"] +[ext_resource type="SpriteFrames" uid="uid://bfviwc5qcl6fj" path="res://assets/animations/dragons/blau.tres" id="2_7l1b6"] +[ext_resource type="SpriteFrames" uid="uid://byt01eiqq6set" path="res://assets/animations/dragons/rosa.tres" id="3_2i6dq"] +[ext_resource type="SpriteFrames" uid="uid://eewnnh458hux" path="res://assets/animations/dragons/taronja.tres" id="4_erkm0"] [ext_resource type="Script" uid="uid://rw26nny160xh" path="res://src/dragon_outfit.gd" id="4_sxi2r"] +[ext_resource type="SpriteFrames" uid="uid://rtlmmehjocac" path="res://assets/animations/dragons/lila.tres" id="5_waqaf"] +[ext_resource type="SpriteFrames" uid="uid://8ooldj4ypfj2" path="res://assets/animations/dragons/gris.tres" id="6_236cy"] [resource] script = ExtResource("4_sxi2r") -outfits = Array[Texture2D]([ExtResource("1_3e6qx"), ExtResource("2_lvc22"), ExtResource("3_8ji77")]) +allow_null = false +outfits = Array[SpriteFrames]([ExtResource("1_sxi2r"), ExtResource("2_7l1b6"), ExtResource("3_2i6dq"), ExtResource("4_erkm0"), ExtResource("5_waqaf"), ExtResource("6_236cy")]) metadata/_custom_type_script = "uid://rw26nny160xh" diff --git a/assets/outfits/hats.tres b/assets/outfits/hats.tres index dd7f690..cf6dd5c 100644 --- a/assets/outfits/hats.tres +++ b/assets/outfits/hats.tres @@ -1,15 +1,15 @@ -[gd_resource type="Resource" script_class="DragonOutfit" load_steps=8 format=3 uid="uid://cnhwn6kfcbjl5"] +[gd_resource type="Resource" script_class="DragonOutfit" load_steps=8 format=3 uid="uid://x063x858re3f"] [ext_resource type="Script" uid="uid://rw26nny160xh" path="res://src/dragon_outfit.gd" id="1_e7uo0"] -[ext_resource type="Texture2D" uid="uid://12fv5nymaljj" path="res://assets/sprites/hats/DragonPet_barret_barretina.png" id="1_jhy4n"] -[ext_resource type="Texture2D" uid="uid://bmw61grwcpoik" path="res://assets/sprites/hats/DragonPet_barret_casc.png" id="2_cmu3h"] -[ext_resource type="Texture2D" uid="uid://dy46ipxh5g5up" path="res://assets/sprites/hats/DragonPet_barret_copa.png" id="3_330df"] -[ext_resource type="Texture2D" uid="uid://ct4ilf6g8fe44" path="res://assets/sprites/hats/DragonPet_barret_corona.png" id="4_7rdvc"] -[ext_resource type="Texture2D" uid="uid://d2jh1mprvmnpk" path="res://assets/sprites/hats/DragonPet_barret_palla.png" id="5_1scq7"] -[ext_resource type="Texture2D" uid="uid://b8pf6op2f51p7" path="res://assets/sprites/hats/DragonPet_barret_princesa.png" id="6_2f5tc"] +[ext_resource type="SpriteFrames" uid="uid://ccxyplt2t7t6y" path="res://assets/animations/hats/barretina.tres" id="1_jhy4n"] +[ext_resource type="SpriteFrames" uid="uid://ci2is31ratmsd" path="res://assets/animations/hats/casc.tres" id="2_cmu3h"] +[ext_resource type="SpriteFrames" uid="uid://b80fhqafet4su" path="res://assets/animations/hats/copa.tres" id="3_330df"] +[ext_resource type="SpriteFrames" uid="uid://8yggiamdjxiq" path="res://assets/animations/hats/corona.tres" id="4_7rdvc"] +[ext_resource type="SpriteFrames" uid="uid://c0wthowsa1sbt" path="res://assets/animations/hats/palla.tres" id="5_1scq7"] +[ext_resource type="SpriteFrames" uid="uid://uy33g2ifbwnu" path="res://assets/animations/hats/princesa.tres" id="6_2f5tc"] [resource] script = ExtResource("1_e7uo0") allow_null = true -outfits = Array[Texture2D]([ExtResource("1_jhy4n"), ExtResource("2_cmu3h"), ExtResource("3_330df"), ExtResource("4_7rdvc"), ExtResource("5_1scq7"), ExtResource("6_2f5tc")]) +outfits = Array[SpriteFrames]([ExtResource("1_jhy4n"), ExtResource("2_cmu3h"), ExtResource("3_330df"), ExtResource("4_7rdvc"), ExtResource("5_1scq7"), ExtResource("6_2f5tc")]) metadata/_custom_type_script = "uid://rw26nny160xh" diff --git a/assets/outfits/shirts.tres b/assets/outfits/shirts.tres index f8bee6d..93ee53c 100644 --- a/assets/outfits/shirts.tres +++ b/assets/outfits/shirts.tres @@ -1,13 +1,13 @@ -[gd_resource type="Resource" script_class="DragonOutfit" load_steps=6 format=3 uid="uid://etegcak2sphs"] +[gd_resource type="Resource" script_class="DragonOutfit" load_steps=6 format=3 uid="uid://bsydervvb1jpe"] -[ext_resource type="Texture2D" uid="uid://cs0ke244c33t2" path="res://assets/sprites/shirts/DragonPet_roba_armadura.png" id="1_8ueji"] +[ext_resource type="SpriteFrames" uid="uid://d3oqg43q07hgx" path="res://assets/animations/shirts/armadura.tres" id="1_8ueji"] [ext_resource type="Script" uid="uid://rw26nny160xh" path="res://src/dragon_outfit.gd" id="1_yaxr2"] -[ext_resource type="Texture2D" uid="uid://d13xg46q5a7as" path="res://assets/sprites/shirts/DragonPet_roba_faixa.png" id="2_rue66"] -[ext_resource type="Texture2D" uid="uid://b3xnii6r00hol" path="res://assets/sprites/shirts/DragonPet_roba_traje.png" id="3_rq2qf"] -[ext_resource type="Texture2D" uid="uid://bhfmyrxor0fli" path="res://assets/sprites/shirts/DragonPet_roba_tutu.png" id="4_tgfck"] +[ext_resource type="SpriteFrames" uid="uid://10jannrmftdx" path="res://assets/animations/shirts/faixa.tres" id="2_rue66"] +[ext_resource type="SpriteFrames" uid="uid://dsxhfu2ekw7j" path="res://assets/animations/shirts/traje.tres" id="3_rq2qf"] +[ext_resource type="SpriteFrames" uid="uid://d4jne76ck2l1w" path="res://assets/animations/shirts/tutu.tres" id="4_tgfck"] [resource] script = ExtResource("1_yaxr2") allow_null = true -outfits = Array[Texture2D]([ExtResource("1_8ueji"), ExtResource("2_rue66"), ExtResource("3_rq2qf"), ExtResource("4_tgfck")]) +outfits = Array[SpriteFrames]([ExtResource("1_8ueji"), ExtResource("2_rue66"), ExtResource("3_rq2qf"), ExtResource("4_tgfck")]) metadata/_custom_type_script = "uid://rw26nny160xh" diff --git a/assets/outfits/shoes.tres b/assets/outfits/shoes.tres deleted file mode 100644 index 64b63c1..0000000 --- a/assets/outfits/shoes.tres +++ /dev/null @@ -1,12 +0,0 @@ -[gd_resource type="Resource" script_class="DragonOutfit" load_steps=5 format=3 uid="uid://ba5684xylts3f"] - -[ext_resource type="Texture2D" uid="uid://onajhbpjtnil" path="res://assets/sprites/decor/DragonPet_acc_escut.png" id="1_5pwyu"] -[ext_resource type="Script" uid="uid://rw26nny160xh" path="res://src/dragon_outfit.gd" id="1_lu1y3"] -[ext_resource type="Texture2D" uid="uid://bkiuuvv4kp1oi" path="res://assets/sprites/decor/DragonPet_acc_espasa.png" id="2_d5wid"] -[ext_resource type="Texture2D" uid="uid://c1b8gp5uf2ehk" path="res://assets/sprites/decor/DragonPet_acc_rosa.png" id="3_yasvr"] - -[resource] -script = ExtResource("1_lu1y3") -allow_null = true -outfits = Array[Texture2D]([ExtResource("1_5pwyu"), ExtResource("2_d5wid"), ExtResource("3_yasvr")]) -metadata/_custom_type_script = "uid://rw26nny160xh" diff --git a/assets/sprites/decor/DP_acc_escut_Anim.png b/assets/sprites/decor/DP_acc_escut_Anim.png new file mode 100644 index 0000000..afccfbd Binary files /dev/null and b/assets/sprites/decor/DP_acc_escut_Anim.png differ diff --git a/assets/sprites/decor/DragonPet_acc_rosa.png.import b/assets/sprites/decor/DP_acc_escut_Anim.png.import similarity index 65% rename from assets/sprites/decor/DragonPet_acc_rosa.png.import rename to assets/sprites/decor/DP_acc_escut_Anim.png.import index 961d0f3..96f8f91 100644 --- a/assets/sprites/decor/DragonPet_acc_rosa.png.import +++ b/assets/sprites/decor/DP_acc_escut_Anim.png.import @@ -2,16 +2,16 @@ importer="texture" type="CompressedTexture2D" -uid="uid://c1b8gp5uf2ehk" -path="res://.godot/imported/DragonPet_acc_rosa.png-1bc66f61f27cc23193c5a9c4de9d2ff3.ctex" +uid="uid://c7nmelv0lx3i3" +path="res://.godot/imported/DP_acc_escut_Anim.png-e04f80dd63086aa1d7f2576c4dd89781.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/sprites/decor/DragonPet_acc_rosa.png" -dest_files=["res://.godot/imported/DragonPet_acc_rosa.png-1bc66f61f27cc23193c5a9c4de9d2ff3.ctex"] +source_file="res://assets/sprites/decor/DP_acc_escut_Anim.png" +dest_files=["res://.godot/imported/DP_acc_escut_Anim.png-e04f80dd63086aa1d7f2576c4dd89781.ctex"] [params] diff --git a/assets/sprites/decor/DP_acc_espasa_Anim.png b/assets/sprites/decor/DP_acc_espasa_Anim.png new file mode 100644 index 0000000..ab3900b Binary files /dev/null and b/assets/sprites/decor/DP_acc_espasa_Anim.png differ diff --git a/assets/sprites/decor/DP_acc_espasa_Anim.png.import b/assets/sprites/decor/DP_acc_espasa_Anim.png.import new file mode 100644 index 0000000..a618113 --- /dev/null +++ b/assets/sprites/decor/DP_acc_espasa_Anim.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://drnel2cjwf5dr" +path="res://.godot/imported/DP_acc_espasa_Anim.png-6908e0a55c6be33f5fbeb0168db595ba.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/decor/DP_acc_espasa_Anim.png" +dest_files=["res://.godot/imported/DP_acc_espasa_Anim.png-6908e0a55c6be33f5fbeb0168db595ba.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/sprites/decor/DP_acc_rosa_Anim.png b/assets/sprites/decor/DP_acc_rosa_Anim.png new file mode 100644 index 0000000..47409ea Binary files /dev/null and b/assets/sprites/decor/DP_acc_rosa_Anim.png differ diff --git a/assets/sprites/dragons/DragonPet_drac02.png.import b/assets/sprites/decor/DP_acc_rosa_Anim.png.import similarity index 65% rename from assets/sprites/dragons/DragonPet_drac02.png.import rename to assets/sprites/decor/DP_acc_rosa_Anim.png.import index 6f2229e..1da2b10 100644 --- a/assets/sprites/dragons/DragonPet_drac02.png.import +++ b/assets/sprites/decor/DP_acc_rosa_Anim.png.import @@ -2,16 +2,16 @@ importer="texture" type="CompressedTexture2D" -uid="uid://davsy68qknywo" -path="res://.godot/imported/DragonPet_drac02.png-529be99ec19decf574a0f3715e12aee4.ctex" +uid="uid://dbbcv076jh4ep" +path="res://.godot/imported/DP_acc_rosa_Anim.png-ef89d4c3c42cde719824969f41838b3c.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/sprites/dragons/DragonPet_drac02.png" -dest_files=["res://.godot/imported/DragonPet_drac02.png-529be99ec19decf574a0f3715e12aee4.ctex"] +source_file="res://assets/sprites/decor/DP_acc_rosa_Anim.png" +dest_files=["res://.godot/imported/DP_acc_rosa_Anim.png-ef89d4c3c42cde719824969f41838b3c.ctex"] [params] diff --git a/assets/sprites/decor/DragonPet_acc_escut.png b/assets/sprites/decor/DragonPet_acc_escut.png deleted file mode 100644 index efc20ca..0000000 Binary files a/assets/sprites/decor/DragonPet_acc_escut.png and /dev/null differ diff --git a/assets/sprites/decor/DragonPet_acc_espasa.png b/assets/sprites/decor/DragonPet_acc_espasa.png deleted file mode 100644 index 40b462f..0000000 Binary files a/assets/sprites/decor/DragonPet_acc_espasa.png and /dev/null differ diff --git a/assets/sprites/decor/DragonPet_acc_rosa.png b/assets/sprites/decor/DragonPet_acc_rosa.png deleted file mode 100644 index 0173a2d..0000000 Binary files a/assets/sprites/decor/DragonPet_acc_rosa.png and /dev/null differ diff --git a/assets/sprites/dragons/DP_drac04_Anim.png b/assets/sprites/dragons/DP_drac04_Anim.png new file mode 100644 index 0000000..6a7887b Binary files /dev/null and b/assets/sprites/dragons/DP_drac04_Anim.png differ diff --git a/assets/sprites/dragons/DragonPet_drac01.png.import b/assets/sprites/dragons/DP_drac04_Anim.png.import similarity index 65% rename from assets/sprites/dragons/DragonPet_drac01.png.import rename to assets/sprites/dragons/DP_drac04_Anim.png.import index 8f0ffc7..fde5a37 100644 --- a/assets/sprites/dragons/DragonPet_drac01.png.import +++ b/assets/sprites/dragons/DP_drac04_Anim.png.import @@ -2,16 +2,16 @@ importer="texture" type="CompressedTexture2D" -uid="uid://dl87ffgh2hl68" -path="res://.godot/imported/DragonPet_drac01.png-225ecd48e88f7c99a74b06cb880c2607.ctex" +uid="uid://blej4jyd3oup1" +path="res://.godot/imported/DP_drac04_Anim.png-de055384305dd558c2c7e3596141d96e.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/sprites/dragons/DragonPet_drac01.png" -dest_files=["res://.godot/imported/DragonPet_drac01.png-225ecd48e88f7c99a74b06cb880c2607.ctex"] +source_file="res://assets/sprites/dragons/DP_drac04_Anim.png" +dest_files=["res://.godot/imported/DP_drac04_Anim.png-de055384305dd558c2c7e3596141d96e.ctex"] [params] diff --git a/assets/sprites/dragons/DP_drac05_Anim.png b/assets/sprites/dragons/DP_drac05_Anim.png new file mode 100644 index 0000000..87e9c30 Binary files /dev/null and b/assets/sprites/dragons/DP_drac05_Anim.png differ diff --git a/assets/sprites/dragons/DragonPet_drac03.png.import b/assets/sprites/dragons/DP_drac05_Anim.png.import similarity index 65% rename from assets/sprites/dragons/DragonPet_drac03.png.import rename to assets/sprites/dragons/DP_drac05_Anim.png.import index fe2339c..bd9e01f 100644 --- a/assets/sprites/dragons/DragonPet_drac03.png.import +++ b/assets/sprites/dragons/DP_drac05_Anim.png.import @@ -2,16 +2,16 @@ importer="texture" type="CompressedTexture2D" -uid="uid://c4l1h6ecobnsu" -path="res://.godot/imported/DragonPet_drac03.png-4c0df3b4fcbc1020139df5f2df1408f0.ctex" +uid="uid://d21m7gvjn7t2w" +path="res://.godot/imported/DP_drac05_Anim.png-b6d51be0ef5b910bc705667114108142.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/sprites/dragons/DragonPet_drac03.png" -dest_files=["res://.godot/imported/DragonPet_drac03.png-4c0df3b4fcbc1020139df5f2df1408f0.ctex"] +source_file="res://assets/sprites/dragons/DP_drac05_Anim.png" +dest_files=["res://.godot/imported/DP_drac05_Anim.png-b6d51be0ef5b910bc705667114108142.ctex"] [params] diff --git a/assets/sprites/dragons/DP_drac06_Anim.png b/assets/sprites/dragons/DP_drac06_Anim.png new file mode 100644 index 0000000..b50d740 Binary files /dev/null and b/assets/sprites/dragons/DP_drac06_Anim.png differ diff --git a/assets/sprites/dragons/DP_drac06_Anim.png.import b/assets/sprites/dragons/DP_drac06_Anim.png.import new file mode 100644 index 0000000..441837a --- /dev/null +++ b/assets/sprites/dragons/DP_drac06_Anim.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c0ix7r57l1swx" +path="res://.godot/imported/DP_drac06_Anim.png-43a5cb7feec3d3315477e7e9e121b3b7.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/dragons/DP_drac06_Anim.png" +dest_files=["res://.godot/imported/DP_drac06_Anim.png-43a5cb7feec3d3315477e7e9e121b3b7.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/sprites/dragons/DragonPet_drac01.png b/assets/sprites/dragons/DragonPet_drac01.png deleted file mode 100644 index 30a09f6..0000000 Binary files a/assets/sprites/dragons/DragonPet_drac01.png and /dev/null differ diff --git a/assets/sprites/dragons/DragonPet_drac02.png b/assets/sprites/dragons/DragonPet_drac02.png deleted file mode 100644 index c87d089..0000000 Binary files a/assets/sprites/dragons/DragonPet_drac02.png and /dev/null differ diff --git a/assets/sprites/dragons/DragonPet_drac03.png b/assets/sprites/dragons/DragonPet_drac03.png deleted file mode 100644 index aa4b1da..0000000 Binary files a/assets/sprites/dragons/DragonPet_drac03.png and /dev/null differ diff --git a/assets/sprites/hats/DP_barret_barretina_Anim.png b/assets/sprites/hats/DP_barret_barretina_Anim.png new file mode 100644 index 0000000..56753d7 Binary files /dev/null and b/assets/sprites/hats/DP_barret_barretina_Anim.png differ diff --git a/assets/sprites/hats/DP_barret_barretina_Anim.png.import b/assets/sprites/hats/DP_barret_barretina_Anim.png.import new file mode 100644 index 0000000..ad59250 --- /dev/null +++ b/assets/sprites/hats/DP_barret_barretina_Anim.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://blkh88mh1rnm" +path="res://.godot/imported/DP_barret_barretina_Anim.png-ebd66457744b024a3e2179851454b448.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/hats/DP_barret_barretina_Anim.png" +dest_files=["res://.godot/imported/DP_barret_barretina_Anim.png-ebd66457744b024a3e2179851454b448.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/sprites/hats/DP_barret_casc_Anim.png b/assets/sprites/hats/DP_barret_casc_Anim.png new file mode 100644 index 0000000..c353391 Binary files /dev/null and b/assets/sprites/hats/DP_barret_casc_Anim.png differ diff --git a/assets/sprites/hats/DP_barret_casc_Anim.png.import b/assets/sprites/hats/DP_barret_casc_Anim.png.import new file mode 100644 index 0000000..901a014 --- /dev/null +++ b/assets/sprites/hats/DP_barret_casc_Anim.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://uchf8kc02nq2" +path="res://.godot/imported/DP_barret_casc_Anim.png-75c8cc6f159ce64f5f5aa4e5b7ca89a4.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/hats/DP_barret_casc_Anim.png" +dest_files=["res://.godot/imported/DP_barret_casc_Anim.png-75c8cc6f159ce64f5f5aa4e5b7ca89a4.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/sprites/hats/DP_barret_copa_Anim.png b/assets/sprites/hats/DP_barret_copa_Anim.png new file mode 100644 index 0000000..318ba0e Binary files /dev/null and b/assets/sprites/hats/DP_barret_copa_Anim.png differ diff --git a/assets/sprites/hats/DP_barret_copa_Anim.png.import b/assets/sprites/hats/DP_barret_copa_Anim.png.import new file mode 100644 index 0000000..cac1969 --- /dev/null +++ b/assets/sprites/hats/DP_barret_copa_Anim.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cikq8k32v8ann" +path="res://.godot/imported/DP_barret_copa_Anim.png-e7216cf9f41d234cf020952ae418efc1.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/hats/DP_barret_copa_Anim.png" +dest_files=["res://.godot/imported/DP_barret_copa_Anim.png-e7216cf9f41d234cf020952ae418efc1.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/sprites/hats/DP_barret_corona_Anim.png b/assets/sprites/hats/DP_barret_corona_Anim.png new file mode 100644 index 0000000..a92fb08 Binary files /dev/null and b/assets/sprites/hats/DP_barret_corona_Anim.png differ diff --git a/assets/sprites/decor/DragonPet_acc_espasa.png.import b/assets/sprites/hats/DP_barret_corona_Anim.png.import similarity index 65% rename from assets/sprites/decor/DragonPet_acc_espasa.png.import rename to assets/sprites/hats/DP_barret_corona_Anim.png.import index fa80534..c75c931 100644 --- a/assets/sprites/decor/DragonPet_acc_espasa.png.import +++ b/assets/sprites/hats/DP_barret_corona_Anim.png.import @@ -2,16 +2,16 @@ importer="texture" type="CompressedTexture2D" -uid="uid://bkiuuvv4kp1oi" -path="res://.godot/imported/DragonPet_acc_espasa.png-0d25074a5e22603702f6057ab57bdfb4.ctex" +uid="uid://chdfhv2fysfnc" +path="res://.godot/imported/DP_barret_corona_Anim.png-65b440a539a09f8d83278ded69d36e6b.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/sprites/decor/DragonPet_acc_espasa.png" -dest_files=["res://.godot/imported/DragonPet_acc_espasa.png-0d25074a5e22603702f6057ab57bdfb4.ctex"] +source_file="res://assets/sprites/hats/DP_barret_corona_Anim.png" +dest_files=["res://.godot/imported/DP_barret_corona_Anim.png-65b440a539a09f8d83278ded69d36e6b.ctex"] [params] diff --git a/assets/sprites/hats/DP_barret_palla_Anim.png b/assets/sprites/hats/DP_barret_palla_Anim.png new file mode 100644 index 0000000..72a411a Binary files /dev/null and b/assets/sprites/hats/DP_barret_palla_Anim.png differ diff --git a/assets/sprites/hats/DP_barret_palla_Anim.png.import b/assets/sprites/hats/DP_barret_palla_Anim.png.import new file mode 100644 index 0000000..ecbffc3 --- /dev/null +++ b/assets/sprites/hats/DP_barret_palla_Anim.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cwmkb6rqfiopn" +path="res://.godot/imported/DP_barret_palla_Anim.png-9c2b1863e232198bc2176f22cf834817.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/hats/DP_barret_palla_Anim.png" +dest_files=["res://.godot/imported/DP_barret_palla_Anim.png-9c2b1863e232198bc2176f22cf834817.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/sprites/hats/DP_barret_princesa_Anim.png b/assets/sprites/hats/DP_barret_princesa_Anim.png new file mode 100644 index 0000000..daf41a9 Binary files /dev/null and b/assets/sprites/hats/DP_barret_princesa_Anim.png differ diff --git a/assets/sprites/hats/DragonPet_barret_corona.png.import b/assets/sprites/hats/DP_barret_princesa_Anim.png.import similarity index 65% rename from assets/sprites/hats/DragonPet_barret_corona.png.import rename to assets/sprites/hats/DP_barret_princesa_Anim.png.import index 5944770..11a5a21 100644 --- a/assets/sprites/hats/DragonPet_barret_corona.png.import +++ b/assets/sprites/hats/DP_barret_princesa_Anim.png.import @@ -2,16 +2,16 @@ importer="texture" type="CompressedTexture2D" -uid="uid://ct4ilf6g8fe44" -path="res://.godot/imported/DragonPet_barret_corona.png-443cfb9afeb5411eb2422ba84b8d2355.ctex" +uid="uid://1a5x8tv4ts0f" +path="res://.godot/imported/DP_barret_princesa_Anim.png-905c56a0c0130d0bfc2331d3d988dea1.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/sprites/hats/DragonPet_barret_corona.png" -dest_files=["res://.godot/imported/DragonPet_barret_corona.png-443cfb9afeb5411eb2422ba84b8d2355.ctex"] +source_file="res://assets/sprites/hats/DP_barret_princesa_Anim.png" +dest_files=["res://.godot/imported/DP_barret_princesa_Anim.png-905c56a0c0130d0bfc2331d3d988dea1.ctex"] [params] diff --git a/assets/sprites/hats/DragonPet_barret_barretina.png b/assets/sprites/hats/DragonPet_barret_barretina.png deleted file mode 100644 index 9a68f8c..0000000 Binary files a/assets/sprites/hats/DragonPet_barret_barretina.png and /dev/null differ diff --git a/assets/sprites/hats/DragonPet_barret_barretina.png.import b/assets/sprites/hats/DragonPet_barret_barretina.png.import deleted file mode 100644 index 37e5489..0000000 --- a/assets/sprites/hats/DragonPet_barret_barretina.png.import +++ /dev/null @@ -1,34 +0,0 @@ -[remap] - -importer="texture" -type="CompressedTexture2D" -uid="uid://12fv5nymaljj" -path="res://.godot/imported/DragonPet_barret_barretina.png-c34714d149520b48d66d5ee32f5868c1.ctex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://assets/sprites/hats/DragonPet_barret_barretina.png" -dest_files=["res://.godot/imported/DragonPet_barret_barretina.png-c34714d149520b48d66d5ee32f5868c1.ctex"] - -[params] - -compress/mode=0 -compress/high_quality=false -compress/lossy_quality=0.7 -compress/hdr_compression=1 -compress/normal_map=0 -compress/channel_pack=0 -mipmaps/generate=false -mipmaps/limit=-1 -roughness/mode=0 -roughness/src_normal="" -process/fix_alpha_border=true -process/premult_alpha=false -process/normal_map_invert_y=false -process/hdr_as_srgb=false -process/hdr_clamp_exposure=false -process/size_limit=0 -detect_3d/compress_to=1 diff --git a/assets/sprites/hats/DragonPet_barret_casc.png b/assets/sprites/hats/DragonPet_barret_casc.png deleted file mode 100644 index 2003023..0000000 Binary files a/assets/sprites/hats/DragonPet_barret_casc.png and /dev/null differ diff --git a/assets/sprites/hats/DragonPet_barret_casc.png.import b/assets/sprites/hats/DragonPet_barret_casc.png.import deleted file mode 100644 index 3b0d74f..0000000 --- a/assets/sprites/hats/DragonPet_barret_casc.png.import +++ /dev/null @@ -1,34 +0,0 @@ -[remap] - -importer="texture" -type="CompressedTexture2D" -uid="uid://bmw61grwcpoik" -path="res://.godot/imported/DragonPet_barret_casc.png-9389702c0c7f572e4c425dbfd8679dab.ctex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://assets/sprites/hats/DragonPet_barret_casc.png" -dest_files=["res://.godot/imported/DragonPet_barret_casc.png-9389702c0c7f572e4c425dbfd8679dab.ctex"] - -[params] - -compress/mode=0 -compress/high_quality=false -compress/lossy_quality=0.7 -compress/hdr_compression=1 -compress/normal_map=0 -compress/channel_pack=0 -mipmaps/generate=false -mipmaps/limit=-1 -roughness/mode=0 -roughness/src_normal="" -process/fix_alpha_border=true -process/premult_alpha=false -process/normal_map_invert_y=false -process/hdr_as_srgb=false -process/hdr_clamp_exposure=false -process/size_limit=0 -detect_3d/compress_to=1 diff --git a/assets/sprites/hats/DragonPet_barret_copa.png b/assets/sprites/hats/DragonPet_barret_copa.png deleted file mode 100644 index b9651f1..0000000 Binary files a/assets/sprites/hats/DragonPet_barret_copa.png and /dev/null differ diff --git a/assets/sprites/hats/DragonPet_barret_copa.png.import b/assets/sprites/hats/DragonPet_barret_copa.png.import deleted file mode 100644 index 456f209..0000000 --- a/assets/sprites/hats/DragonPet_barret_copa.png.import +++ /dev/null @@ -1,34 +0,0 @@ -[remap] - -importer="texture" -type="CompressedTexture2D" -uid="uid://dy46ipxh5g5up" -path="res://.godot/imported/DragonPet_barret_copa.png-b8b5d7726989033eea7ee43edb9fd8c0.ctex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://assets/sprites/hats/DragonPet_barret_copa.png" -dest_files=["res://.godot/imported/DragonPet_barret_copa.png-b8b5d7726989033eea7ee43edb9fd8c0.ctex"] - -[params] - -compress/mode=0 -compress/high_quality=false -compress/lossy_quality=0.7 -compress/hdr_compression=1 -compress/normal_map=0 -compress/channel_pack=0 -mipmaps/generate=false -mipmaps/limit=-1 -roughness/mode=0 -roughness/src_normal="" -process/fix_alpha_border=true -process/premult_alpha=false -process/normal_map_invert_y=false -process/hdr_as_srgb=false -process/hdr_clamp_exposure=false -process/size_limit=0 -detect_3d/compress_to=1 diff --git a/assets/sprites/hats/DragonPet_barret_corona.png b/assets/sprites/hats/DragonPet_barret_corona.png deleted file mode 100644 index c467915..0000000 Binary files a/assets/sprites/hats/DragonPet_barret_corona.png and /dev/null differ diff --git a/assets/sprites/hats/DragonPet_barret_palla.png b/assets/sprites/hats/DragonPet_barret_palla.png deleted file mode 100644 index 715b054..0000000 Binary files a/assets/sprites/hats/DragonPet_barret_palla.png and /dev/null differ diff --git a/assets/sprites/hats/DragonPet_barret_palla.png.import b/assets/sprites/hats/DragonPet_barret_palla.png.import deleted file mode 100644 index 1e02d64..0000000 --- a/assets/sprites/hats/DragonPet_barret_palla.png.import +++ /dev/null @@ -1,34 +0,0 @@ -[remap] - -importer="texture" -type="CompressedTexture2D" -uid="uid://d2jh1mprvmnpk" -path="res://.godot/imported/DragonPet_barret_palla.png-c88f74292e140e6b18b2a0fad97f8ce0.ctex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://assets/sprites/hats/DragonPet_barret_palla.png" -dest_files=["res://.godot/imported/DragonPet_barret_palla.png-c88f74292e140e6b18b2a0fad97f8ce0.ctex"] - -[params] - -compress/mode=0 -compress/high_quality=false -compress/lossy_quality=0.7 -compress/hdr_compression=1 -compress/normal_map=0 -compress/channel_pack=0 -mipmaps/generate=false -mipmaps/limit=-1 -roughness/mode=0 -roughness/src_normal="" -process/fix_alpha_border=true -process/premult_alpha=false -process/normal_map_invert_y=false -process/hdr_as_srgb=false -process/hdr_clamp_exposure=false -process/size_limit=0 -detect_3d/compress_to=1 diff --git a/assets/sprites/hats/DragonPet_barret_princesa.png b/assets/sprites/hats/DragonPet_barret_princesa.png deleted file mode 100644 index 14003e6..0000000 Binary files a/assets/sprites/hats/DragonPet_barret_princesa.png and /dev/null differ diff --git a/assets/sprites/hats/DragonPet_barret_princesa.png.import b/assets/sprites/hats/DragonPet_barret_princesa.png.import deleted file mode 100644 index fb8192d..0000000 --- a/assets/sprites/hats/DragonPet_barret_princesa.png.import +++ /dev/null @@ -1,34 +0,0 @@ -[remap] - -importer="texture" -type="CompressedTexture2D" -uid="uid://b8pf6op2f51p7" -path="res://.godot/imported/DragonPet_barret_princesa.png-a7405ff9ae8adb55cd6bbaef37b01ee3.ctex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://assets/sprites/hats/DragonPet_barret_princesa.png" -dest_files=["res://.godot/imported/DragonPet_barret_princesa.png-a7405ff9ae8adb55cd6bbaef37b01ee3.ctex"] - -[params] - -compress/mode=0 -compress/high_quality=false -compress/lossy_quality=0.7 -compress/hdr_compression=1 -compress/normal_map=0 -compress/channel_pack=0 -mipmaps/generate=false -mipmaps/limit=-1 -roughness/mode=0 -roughness/src_normal="" -process/fix_alpha_border=true -process/premult_alpha=false -process/normal_map_invert_y=false -process/hdr_as_srgb=false -process/hdr_clamp_exposure=false -process/size_limit=0 -detect_3d/compress_to=1 diff --git a/assets/sprites/shirts/DP_tors_armadura_Anim.png b/assets/sprites/shirts/DP_tors_armadura_Anim.png new file mode 100644 index 0000000..c00be97 Binary files /dev/null and b/assets/sprites/shirts/DP_tors_armadura_Anim.png differ diff --git a/assets/sprites/shirts/DP_tors_armadura_Anim.png.import b/assets/sprites/shirts/DP_tors_armadura_Anim.png.import new file mode 100644 index 0000000..d733723 --- /dev/null +++ b/assets/sprites/shirts/DP_tors_armadura_Anim.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://do2jnyp7khi61" +path="res://.godot/imported/DP_tors_armadura_Anim.png-9a17dd9d38640685f1d12c4601e875d8.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/shirts/DP_tors_armadura_Anim.png" +dest_files=["res://.godot/imported/DP_tors_armadura_Anim.png-9a17dd9d38640685f1d12c4601e875d8.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/sprites/shirts/DP_tors_faixa_Anim.png b/assets/sprites/shirts/DP_tors_faixa_Anim.png new file mode 100644 index 0000000..d3a83c8 Binary files /dev/null and b/assets/sprites/shirts/DP_tors_faixa_Anim.png differ diff --git a/assets/sprites/decor/DragonPet_acc_escut.png.import b/assets/sprites/shirts/DP_tors_faixa_Anim.png.import similarity index 65% rename from assets/sprites/decor/DragonPet_acc_escut.png.import rename to assets/sprites/shirts/DP_tors_faixa_Anim.png.import index 1ee039b..6cbc356 100644 --- a/assets/sprites/decor/DragonPet_acc_escut.png.import +++ b/assets/sprites/shirts/DP_tors_faixa_Anim.png.import @@ -2,16 +2,16 @@ importer="texture" type="CompressedTexture2D" -uid="uid://onajhbpjtnil" -path="res://.godot/imported/DragonPet_acc_escut.png-ab5c138b3d2900950a73fcd404b97a42.ctex" +uid="uid://ckf8ac7yfrpe8" +path="res://.godot/imported/DP_tors_faixa_Anim.png-72a5543865786d1e64f2b2fb632ed6c1.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/sprites/decor/DragonPet_acc_escut.png" -dest_files=["res://.godot/imported/DragonPet_acc_escut.png-ab5c138b3d2900950a73fcd404b97a42.ctex"] +source_file="res://assets/sprites/shirts/DP_tors_faixa_Anim.png" +dest_files=["res://.godot/imported/DP_tors_faixa_Anim.png-72a5543865786d1e64f2b2fb632ed6c1.ctex"] [params] diff --git a/assets/sprites/shirts/DP_tors_traje_Anim.png b/assets/sprites/shirts/DP_tors_traje_Anim.png new file mode 100644 index 0000000..2616828 Binary files /dev/null and b/assets/sprites/shirts/DP_tors_traje_Anim.png differ diff --git a/assets/sprites/shirts/DP_tors_traje_Anim.png.import b/assets/sprites/shirts/DP_tors_traje_Anim.png.import new file mode 100644 index 0000000..0421db5 --- /dev/null +++ b/assets/sprites/shirts/DP_tors_traje_Anim.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cdum44fqvsa71" +path="res://.godot/imported/DP_tors_traje_Anim.png-861b04460538a8604009d3a1cfdb8764.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/shirts/DP_tors_traje_Anim.png" +dest_files=["res://.godot/imported/DP_tors_traje_Anim.png-861b04460538a8604009d3a1cfdb8764.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/sprites/shirts/DP_tors_tutu_Anim.png b/assets/sprites/shirts/DP_tors_tutu_Anim.png new file mode 100644 index 0000000..c6e8d43 Binary files /dev/null and b/assets/sprites/shirts/DP_tors_tutu_Anim.png differ diff --git a/assets/sprites/shirts/DP_tors_tutu_Anim.png.import b/assets/sprites/shirts/DP_tors_tutu_Anim.png.import new file mode 100644 index 0000000..18f9078 --- /dev/null +++ b/assets/sprites/shirts/DP_tors_tutu_Anim.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cs2mds1fjgoi0" +path="res://.godot/imported/DP_tors_tutu_Anim.png-117851e7f124991f76de11ed033873f2.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/shirts/DP_tors_tutu_Anim.png" +dest_files=["res://.godot/imported/DP_tors_tutu_Anim.png-117851e7f124991f76de11ed033873f2.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/sprites/shirts/DragonPet_roba_armadura.png b/assets/sprites/shirts/DragonPet_roba_armadura.png deleted file mode 100644 index a3b5be6..0000000 Binary files a/assets/sprites/shirts/DragonPet_roba_armadura.png and /dev/null differ diff --git a/assets/sprites/shirts/DragonPet_roba_armadura.png.import b/assets/sprites/shirts/DragonPet_roba_armadura.png.import deleted file mode 100644 index 5f555ea..0000000 --- a/assets/sprites/shirts/DragonPet_roba_armadura.png.import +++ /dev/null @@ -1,34 +0,0 @@ -[remap] - -importer="texture" -type="CompressedTexture2D" -uid="uid://cs0ke244c33t2" -path="res://.godot/imported/DragonPet_roba_armadura.png-3cad0d14b8ca1ac4914a907d8acf7ec5.ctex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://assets/sprites/shirts/DragonPet_roba_armadura.png" -dest_files=["res://.godot/imported/DragonPet_roba_armadura.png-3cad0d14b8ca1ac4914a907d8acf7ec5.ctex"] - -[params] - -compress/mode=0 -compress/high_quality=false -compress/lossy_quality=0.7 -compress/hdr_compression=1 -compress/normal_map=0 -compress/channel_pack=0 -mipmaps/generate=false -mipmaps/limit=-1 -roughness/mode=0 -roughness/src_normal="" -process/fix_alpha_border=true -process/premult_alpha=false -process/normal_map_invert_y=false -process/hdr_as_srgb=false -process/hdr_clamp_exposure=false -process/size_limit=0 -detect_3d/compress_to=1 diff --git a/assets/sprites/shirts/DragonPet_roba_faixa.png b/assets/sprites/shirts/DragonPet_roba_faixa.png deleted file mode 100644 index ac8e59f..0000000 Binary files a/assets/sprites/shirts/DragonPet_roba_faixa.png and /dev/null differ diff --git a/assets/sprites/shirts/DragonPet_roba_faixa.png.import b/assets/sprites/shirts/DragonPet_roba_faixa.png.import deleted file mode 100644 index ffc41e3..0000000 --- a/assets/sprites/shirts/DragonPet_roba_faixa.png.import +++ /dev/null @@ -1,34 +0,0 @@ -[remap] - -importer="texture" -type="CompressedTexture2D" -uid="uid://d13xg46q5a7as" -path="res://.godot/imported/DragonPet_roba_faixa.png-f4a3eade65583caa1723ed9730e5fa27.ctex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://assets/sprites/shirts/DragonPet_roba_faixa.png" -dest_files=["res://.godot/imported/DragonPet_roba_faixa.png-f4a3eade65583caa1723ed9730e5fa27.ctex"] - -[params] - -compress/mode=0 -compress/high_quality=false -compress/lossy_quality=0.7 -compress/hdr_compression=1 -compress/normal_map=0 -compress/channel_pack=0 -mipmaps/generate=false -mipmaps/limit=-1 -roughness/mode=0 -roughness/src_normal="" -process/fix_alpha_border=true -process/premult_alpha=false -process/normal_map_invert_y=false -process/hdr_as_srgb=false -process/hdr_clamp_exposure=false -process/size_limit=0 -detect_3d/compress_to=1 diff --git a/assets/sprites/shirts/DragonPet_roba_traje.png b/assets/sprites/shirts/DragonPet_roba_traje.png deleted file mode 100644 index 0e54ef5..0000000 Binary files a/assets/sprites/shirts/DragonPet_roba_traje.png and /dev/null differ diff --git a/assets/sprites/shirts/DragonPet_roba_traje.png.import b/assets/sprites/shirts/DragonPet_roba_traje.png.import deleted file mode 100644 index 9e92bf8..0000000 --- a/assets/sprites/shirts/DragonPet_roba_traje.png.import +++ /dev/null @@ -1,34 +0,0 @@ -[remap] - -importer="texture" -type="CompressedTexture2D" -uid="uid://b3xnii6r00hol" -path="res://.godot/imported/DragonPet_roba_traje.png-7284413a39a408ef2e8aaceab10af027.ctex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://assets/sprites/shirts/DragonPet_roba_traje.png" -dest_files=["res://.godot/imported/DragonPet_roba_traje.png-7284413a39a408ef2e8aaceab10af027.ctex"] - -[params] - -compress/mode=0 -compress/high_quality=false -compress/lossy_quality=0.7 -compress/hdr_compression=1 -compress/normal_map=0 -compress/channel_pack=0 -mipmaps/generate=false -mipmaps/limit=-1 -roughness/mode=0 -roughness/src_normal="" -process/fix_alpha_border=true -process/premult_alpha=false -process/normal_map_invert_y=false -process/hdr_as_srgb=false -process/hdr_clamp_exposure=false -process/size_limit=0 -detect_3d/compress_to=1 diff --git a/assets/sprites/shirts/DragonPet_roba_tutu.png b/assets/sprites/shirts/DragonPet_roba_tutu.png deleted file mode 100644 index 17e0401..0000000 Binary files a/assets/sprites/shirts/DragonPet_roba_tutu.png and /dev/null differ diff --git a/assets/sprites/shirts/DragonPet_roba_tutu.png.import b/assets/sprites/shirts/DragonPet_roba_tutu.png.import deleted file mode 100644 index d462060..0000000 --- a/assets/sprites/shirts/DragonPet_roba_tutu.png.import +++ /dev/null @@ -1,34 +0,0 @@ -[remap] - -importer="texture" -type="CompressedTexture2D" -uid="uid://bhfmyrxor0fli" -path="res://.godot/imported/DragonPet_roba_tutu.png-96d7fba9f8e4327bed40a9599fea1b10.ctex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://assets/sprites/shirts/DragonPet_roba_tutu.png" -dest_files=["res://.godot/imported/DragonPet_roba_tutu.png-96d7fba9f8e4327bed40a9599fea1b10.ctex"] - -[params] - -compress/mode=0 -compress/high_quality=false -compress/lossy_quality=0.7 -compress/hdr_compression=1 -compress/normal_map=0 -compress/channel_pack=0 -mipmaps/generate=false -mipmaps/limit=-1 -roughness/mode=0 -roughness/src_normal="" -process/fix_alpha_border=true -process/premult_alpha=false -process/normal_map_invert_y=false -process/hdr_as_srgb=false -process/hdr_clamp_exposure=false -process/size_limit=0 -detect_3d/compress_to=1 diff --git a/assets/sprites/ui/DP_UI_Button_Text.png b/assets/sprites/ui/DP_UI_Button_Text.png new file mode 100644 index 0000000..20b6a15 Binary files /dev/null and b/assets/sprites/ui/DP_UI_Button_Text.png differ diff --git a/assets/sprites/ui/DP_UI_Button_Text.png.import b/assets/sprites/ui/DP_UI_Button_Text.png.import new file mode 100644 index 0000000..ccd559e --- /dev/null +++ b/assets/sprites/ui/DP_UI_Button_Text.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bgpbbkmwt8ysq" +path="res://.godot/imported/DP_UI_Button_Text.png-4118c6dc859f64058ae0c56885ae74dd.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/DP_UI_Button_Text.png" +dest_files=["res://.godot/imported/DP_UI_Button_Text.png-4118c6dc859f64058ae0c56885ae74dd.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/sprites/ui/DP_UI_Buttons01.png b/assets/sprites/ui/DP_UI_Buttons01.png new file mode 100644 index 0000000..da09fc0 Binary files /dev/null and b/assets/sprites/ui/DP_UI_Buttons01.png differ diff --git a/assets/sprites/ui/DP_UI_Buttons01.png.import b/assets/sprites/ui/DP_UI_Buttons01.png.import new file mode 100644 index 0000000..b733935 --- /dev/null +++ b/assets/sprites/ui/DP_UI_Buttons01.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bu5xa7tgfk3h3" +path="res://.godot/imported/DP_UI_Buttons01.png-8bf9c42efb1059969b45f58674de2bbe.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/DP_UI_Buttons01.png" +dest_files=["res://.godot/imported/DP_UI_Buttons01.png-8bf9c42efb1059969b45f58674de2bbe.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/sprites/ui/DP_UI_CharCreation_BG.png b/assets/sprites/ui/DP_UI_CharCreation_BG.png new file mode 100644 index 0000000..88b6ae7 Binary files /dev/null and b/assets/sprites/ui/DP_UI_CharCreation_BG.png differ diff --git a/assets/sprites/ui/DP_UI_CharCreation_BG.png.import b/assets/sprites/ui/DP_UI_CharCreation_BG.png.import new file mode 100644 index 0000000..25ce502 --- /dev/null +++ b/assets/sprites/ui/DP_UI_CharCreation_BG.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dceoy4417v83e" +path="res://.godot/imported/DP_UI_CharCreation_BG.png-c6cfef46e2b28b9038f8191a2bdb27ea.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/DP_UI_CharCreation_BG.png" +dest_files=["res://.godot/imported/DP_UI_CharCreation_BG.png-c6cfef46e2b28b9038f8191a2bdb27ea.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/sprites/ui/DP_UI_CharList_BG.png b/assets/sprites/ui/DP_UI_CharList_BG.png new file mode 100644 index 0000000..8a720f0 Binary files /dev/null and b/assets/sprites/ui/DP_UI_CharList_BG.png differ diff --git a/assets/sprites/ui/DP_UI_CharList_BG.png.import b/assets/sprites/ui/DP_UI_CharList_BG.png.import new file mode 100644 index 0000000..9f403f4 --- /dev/null +++ b/assets/sprites/ui/DP_UI_CharList_BG.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cup2lrb8lou72" +path="res://.godot/imported/DP_UI_CharList_BG.png-7a606cdb3b4f2c6e5d0354cbfeed0452.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/DP_UI_CharList_BG.png" +dest_files=["res://.godot/imported/DP_UI_CharList_BG.png-7a606cdb3b4f2c6e5d0354cbfeed0452.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/sprites/ui/DP_UI_CharList_Frame.png b/assets/sprites/ui/DP_UI_CharList_Frame.png new file mode 100644 index 0000000..dd1a65b Binary files /dev/null and b/assets/sprites/ui/DP_UI_CharList_Frame.png differ diff --git a/assets/sprites/ui/DP_UI_CharList_Frame.png.import b/assets/sprites/ui/DP_UI_CharList_Frame.png.import new file mode 100644 index 0000000..7963aa9 --- /dev/null +++ b/assets/sprites/ui/DP_UI_CharList_Frame.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://d27vpp71fe4de" +path="res://.godot/imported/DP_UI_CharList_Frame.png-ffcbd3ee2fcadd5064a114714775ec63.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/DP_UI_CharList_Frame.png" +dest_files=["res://.godot/imported/DP_UI_CharList_Frame.png-ffcbd3ee2fcadd5064a114714775ec63.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/sprites/ui/DP_UI_CharList_FrameBG.png b/assets/sprites/ui/DP_UI_CharList_FrameBG.png new file mode 100644 index 0000000..6c01d5e Binary files /dev/null and b/assets/sprites/ui/DP_UI_CharList_FrameBG.png differ diff --git a/assets/sprites/ui/DP_UI_CharList_FrameBG.png.import b/assets/sprites/ui/DP_UI_CharList_FrameBG.png.import new file mode 100644 index 0000000..58cdc2a --- /dev/null +++ b/assets/sprites/ui/DP_UI_CharList_FrameBG.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cka65mkfbdetw" +path="res://.godot/imported/DP_UI_CharList_FrameBG.png-6ae511a1e0e22414f8fe0e97958766ce.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/DP_UI_CharList_FrameBG.png" +dest_files=["res://.godot/imported/DP_UI_CharList_FrameBG.png-6ae511a1e0e22414f8fe0e97958766ce.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/sprites/ui/DP_UI_CharList_Top.png b/assets/sprites/ui/DP_UI_CharList_Top.png new file mode 100644 index 0000000..e7608fc Binary files /dev/null and b/assets/sprites/ui/DP_UI_CharList_Top.png differ diff --git a/assets/sprites/ui/DP_UI_CharList_Top.png.import b/assets/sprites/ui/DP_UI_CharList_Top.png.import new file mode 100644 index 0000000..c7e467b --- /dev/null +++ b/assets/sprites/ui/DP_UI_CharList_Top.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bo2ehwr5q48d0" +path="res://.godot/imported/DP_UI_CharList_Top.png-2a8cb0a34c5e9ba97fee13317cfc6d3e.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/DP_UI_CharList_Top.png" +dest_files=["res://.godot/imported/DP_UI_CharList_Top.png-2a8cb0a34c5e9ba97fee13317cfc6d3e.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/sprites/ui/DP_UI_Label_Big.png b/assets/sprites/ui/DP_UI_Label_Big.png new file mode 100644 index 0000000..6143d37 Binary files /dev/null and b/assets/sprites/ui/DP_UI_Label_Big.png differ diff --git a/assets/sprites/ui/DP_UI_Label_Big.png.import b/assets/sprites/ui/DP_UI_Label_Big.png.import new file mode 100644 index 0000000..70f6ce8 --- /dev/null +++ b/assets/sprites/ui/DP_UI_Label_Big.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bdrm1nxydvf5t" +path="res://.godot/imported/DP_UI_Label_Big.png-5521a5777a6785c199d8a42613a97572.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/DP_UI_Label_Big.png" +dest_files=["res://.godot/imported/DP_UI_Label_Big.png-5521a5777a6785c199d8a42613a97572.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/sprites/ui/DP_UI_SlideBar.png b/assets/sprites/ui/DP_UI_SlideBar.png new file mode 100644 index 0000000..87426b8 Binary files /dev/null and b/assets/sprites/ui/DP_UI_SlideBar.png differ diff --git a/assets/sprites/ui/DP_UI_SlideBar.png.import b/assets/sprites/ui/DP_UI_SlideBar.png.import new file mode 100644 index 0000000..a9b4fbe --- /dev/null +++ b/assets/sprites/ui/DP_UI_SlideBar.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ct6d22ha6krsj" +path="res://.godot/imported/DP_UI_SlideBar.png-a232c43e1791b5958e9eac0879667996.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/DP_UI_SlideBar.png" +dest_files=["res://.godot/imported/DP_UI_SlideBar.png-a232c43e1791b5958e9eac0879667996.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/sprites/ui/DP_UI_Slider.png b/assets/sprites/ui/DP_UI_Slider.png new file mode 100644 index 0000000..2a78327 Binary files /dev/null and b/assets/sprites/ui/DP_UI_Slider.png differ diff --git a/assets/sprites/ui/DP_UI_Slider.png.import b/assets/sprites/ui/DP_UI_Slider.png.import new file mode 100644 index 0000000..55febe7 --- /dev/null +++ b/assets/sprites/ui/DP_UI_Slider.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bv56c620gg6m6" +path="res://.godot/imported/DP_UI_Slider.png-78de0dfd1f3ddafc89bae947eefcbf3f.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/ui/DP_UI_Slider.png" +dest_files=["res://.godot/imported/DP_UI_Slider.png-78de0dfd1f3ddafc89bae947eefcbf3f.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/styles/style_box_empty.tres b/assets/styles/style_box_empty.tres new file mode 100644 index 0000000..e9c0eb2 --- /dev/null +++ b/assets/styles/style_box_empty.tres @@ -0,0 +1,3 @@ +[gd_resource type="StyleBoxEmpty" format=3 uid="uid://bhe580k04w6ve"] + +[resource] diff --git a/scenes/dragon_adder.gd b/scenes/dragon_adder.gd deleted file mode 100644 index 1116a4f..0000000 --- a/scenes/dragon_adder.gd +++ /dev/null @@ -1,22 +0,0 @@ -extends Button - - -@export var dragon_adder: PackedScene -@onready var base: GameManager = $"../.." - - -func _on_pressed() -> void: - var adder: DragonAdder = dragon_adder.instantiate() - adder.dragon_added.connect(_add_dragon) - - var window_position: Vector2i = DisplayServer.window_get_position() - var window_size: Vector2i = DisplayServer.window_get_size() - - adder.position = window_position - adder.size / 2 - - adder.show() - add_child(adder) - - -func _add_dragon(dragon_name: String, hat: Texture2D, shirt: Texture2D, shoes: Texture2D): - base.add_dragon(hat, shirt, shoes, dragon_name) diff --git a/scenes/dragon_adder.gd.uid b/scenes/dragon_adder.gd.uid deleted file mode 100644 index a510bd2..0000000 --- a/scenes/dragon_adder.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://w60u0tg1hlvu diff --git a/scenes/dragon_adder/dragon_adder.gd b/scenes/dragon_adder/dragon_adder.gd deleted file mode 100644 index 5decaf1..0000000 --- a/scenes/dragon_adder/dragon_adder.gd +++ /dev/null @@ -1,35 +0,0 @@ -extends Window -class_name DragonAdder - - -@export var hat_outfits: DragonOutfit -@export var shirt_outfits: DragonOutfit -@export var shoes_outfits: DragonOutfit - -var code_generator: CodeGenerator - -@onready var line_edit: LineEdit = $CanvasLayer/LineEdit - -signal dragon_added(dragon_name: String, hat: Texture2D, shirt: Texture2D, shoes: Texture2D) - - -func _ready() -> void: - code_generator = CodeGenerator.new(hat_outfits, shirt_outfits, shoes_outfits) - - -func _on_button_pressed() -> void: - var dragon: Dictionary = code_generator.descrypt(line_edit.text) - if dragon['name'] == null: - return - - var name: String = dragon['name'] - var hat: Texture2D = dragon['hat'] - var shirt: Texture2D = dragon['shirt'] - var shoes: Texture2D = dragon['shoes'] - - dragon_added.emit(name, hat, shirt, shoes) - - queue_free() - -func _on_close_requested() -> void: - queue_free() diff --git a/scenes/dragon_adder/dragon_adder.gd.uid b/scenes/dragon_adder/dragon_adder.gd.uid deleted file mode 100644 index 839e749..0000000 --- a/scenes/dragon_adder/dragon_adder.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://b1fnwy6wnufw1 diff --git a/scenes/dragon_adder/dragon_adder.tscn b/scenes/dragon_adder/dragon_adder.tscn deleted file mode 100644 index a2ab07c..0000000 --- a/scenes/dragon_adder/dragon_adder.tscn +++ /dev/null @@ -1,62 +0,0 @@ -[gd_scene load_steps=6 format=3 uid="uid://oqa2ry73vqjf"] - -[ext_resource type="Script" uid="uid://b1fnwy6wnufw1" path="res://scenes/dragon_adder/dragon_adder.gd" id="1_x83p2"] -[ext_resource type="Resource" uid="uid://cnhwn6kfcbjl5" path="res://assets/outfits/hats.tres" id="2_33u3u"] -[ext_resource type="Script" uid="uid://mhudiyt5gnt1" path="res://scenes/dragon_editor/line_edit.gd" id="2_77mmq"] -[ext_resource type="Resource" uid="uid://etegcak2sphs" path="res://assets/outfits/shirts.tres" id="3_xb0i6"] -[ext_resource type="Resource" uid="uid://ba5684xylts3f" path="res://assets/outfits/shoes.tres" id="4_nf61g"] - -[node name="DragonAdder" type="Window"] -position = Vector2i(0, 36) -size = Vector2i(500, 300) -always_on_top = true -script = ExtResource("1_x83p2") -hat_outfits = ExtResource("2_33u3u") -shirt_outfits = ExtResource("3_xb0i6") -shoes_outfits = ExtResource("4_nf61g") - -[node name="CanvasLayer" type="CanvasLayer" parent="."] - -[node name="Button" type="Button" parent="CanvasLayer"] -anchors_preset = 7 -anchor_left = 0.5 -anchor_top = 1.0 -anchor_right = 0.5 -anchor_bottom = 1.0 -offset_left = -32.0 -offset_top = -31.0 -offset_right = 32.0 -grow_horizontal = 2 -grow_vertical = 0 -focus_mode = 0 -text = "afegeix" - -[node name="LineEdit" type="LineEdit" parent="CanvasLayer"] -anchors_preset = 8 -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -offset_left = -214.0 -offset_top = -29.0 -offset_right = 214.0 -offset_bottom = 29.0 -grow_horizontal = 2 -grow_vertical = 2 -placeholder_text = "CODI" -alignment = 1 -max_length = 22 -script = ExtResource("2_77mmq") - -[node name="Label" type="Label" parent="CanvasLayer"] -anchors_preset = 5 -anchor_left = 0.5 -anchor_right = 0.5 -offset_left = -59.5 -offset_right = 59.5 -offset_bottom = 23.0 -grow_horizontal = 2 -text = "afegeix un drac" - -[connection signal="close_requested" from="." to="." method="_on_close_requested"] -[connection signal="pressed" from="CanvasLayer/Button" to="." method="_on_button_pressed"] diff --git a/scenes/dragon_editor/dragon_editor.gd b/scenes/dragon_editor/dragon_editor.gd index f2c5018..2cb25f8 100644 --- a/scenes/dragon_editor/dragon_editor.gd +++ b/scenes/dragon_editor/dragon_editor.gd @@ -1,54 +1,102 @@ extends Window class_name DragonEditor - -@onready var hat: TextureRect = $CanvasLayer/Dragon/Hat -@onready var shirt: TextureRect = $CanvasLayer/Dragon/Shirt -@onready var shoes: TextureRect = $CanvasLayer/Dragon/Shoes -@onready var dragon: TextureRect = $CanvasLayer/Dragon +@onready var hat: AnimatedSprite2D = $CanvasLayer/Dragon/Hat +@onready var shirt: AnimatedSprite2D = $CanvasLayer/Dragon/Shirt +@onready var decor: AnimatedSprite2D = $CanvasLayer/Dragon/Decor +@onready var dragon: AnimatedSprite2D = $CanvasLayer/Dragon @export var hat_outfits: DragonOutfit @export var shirt_outfits: DragonOutfit -@export var shoes_outfits: DragonOutfit +@export var decor_outfits: DragonOutfit @export var dragon_colors: DragonOutfit -@onready var dragon_name: LineEdit = $CanvasLayer/LineEdit +var _save_load: SaveLoad = SaveLoad.new() -signal on_create_dragon(hat: Texture2D, shirt: Texture2D, shoes: Texture2D, dragon_name: String) +@onready var dragon_name: LineEdit = $CanvasLayer/NameLabel/LineEdit +@onready var dragger: DraggableWindow = $CanvasLayer/Dragger +signal on_create_dragon(properties: DragonProperties) func _ready() -> void: - hat.texture = null - shirt.texture = null - shoes.texture = null + _save_load.load() + + hat.visible = false + shirt.visible = false + decor.visible = false + dragon.play('idle') + + hat_outfits.reset() + shirt_outfits.reset() + decor_outfits.reset() + dragon_colors.reset() + + dragger.on_drag.connect(_on_drag) -func _on_close_requested() -> void: - queue_free() +func _on_drag(offset: Vector2i): + position += offset func _on_next_color_pressed() -> void: - dragon.texture = dragon_colors.pick_next() + _pick_next_animation(dragon, dragon_colors) func _on_previous_color_pressed() -> void: - dragon.texture = dragon_colors.pick_previous() + _pick_previous_animation(dragon, dragon_colors) func _on_change_hat_pressed() -> void: - hat.texture = hat_outfits.pick_next() + _pick_next_animation(hat, hat_outfits) func _on_change_shirt_pressed() -> void: - shirt.texture = shirt_outfits.pick_next() + _pick_next_animation(shirt, shirt_outfits) func _on_change_shoes_pressed() -> void: - shoes.texture = shoes_outfits.pick_next() + _pick_next_animation(decor, decor_outfits) + + +func _pick_next_animation(sprite: AnimatedSprite2D, outfits: DragonOutfit): + var animation: SpriteFrames = outfits.pick_next() + if animation == null: + sprite.visible = false + return + sprite.visible = true + sprite.set_sprite_frames(animation) + _restart_animations() + + +func _restart_animations(): + hat.set_frame(0) + hat.play('idle') + shirt.set_frame(0) + shirt.play('idle') + decor.set_frame(0) + decor.play('idle') + dragon.set_frame(0) + dragon.play('idle') + + +func _pick_previous_animation(sprite: AnimatedSprite2D, outfits: DragonOutfit): + var animation: SpriteFrames = outfits.pick_previous() + if animation == null: + sprite.visible = false + return + sprite.visible = true + sprite.set_sprite_frames(animation) + _restart_animations() func _on_create_pressed() -> void: if dragon_name.text.is_empty(): return - on_create_dragon.emit(hat.texture, shirt.texture, shoes.texture, dragon_name.text) + + var properties = DragonProperties.new(dragon_name.text, _save_load.get_tower_name(), dragon_colors.get_current_index(), hat_outfits.get_current_index(), shirt_outfits.get_current_index(), decor_outfits.get_current_index()) + on_create_dragon.emit(properties) + queue_free() + + +func _on_close_pressed() -> void: queue_free() diff --git a/scenes/dragon_editor/dragon_editor.tscn b/scenes/dragon_editor/dragon_editor.tscn index 11a7698..600ae81 100644 --- a/scenes/dragon_editor/dragon_editor.tscn +++ b/scenes/dragon_editor/dragon_editor.tscn @@ -1,172 +1,177 @@ -[gd_scene load_steps=11 format=3 uid="uid://fut42ruut302"] +[gd_scene load_steps=23 format=3 uid="uid://fut42ruut302"] [ext_resource type="Script" uid="uid://bfuos2kgfgber" path="res://scenes/dragon_editor/dragon_editor.gd" id="1_8vkll"] -[ext_resource type="Resource" uid="uid://cnhwn6kfcbjl5" path="res://assets/outfits/hats.tres" id="2_vvtct"] -[ext_resource type="Resource" uid="uid://etegcak2sphs" path="res://assets/outfits/shirts.tres" id="3_xhgxf"] -[ext_resource type="Resource" uid="uid://ba5684xylts3f" path="res://assets/outfits/shoes.tres" id="4_1ivi1"] -[ext_resource type="Resource" uid="uid://bcs60f2k7h0jc" path="res://assets/outfits/dragons.tres" id="5_1ivi1"] -[ext_resource type="Texture2D" uid="uid://dl87ffgh2hl68" path="res://assets/sprites/dragons/DragonPet_drac01.png" id="5_xhgxf"] -[ext_resource type="Texture2D" uid="uid://12fv5nymaljj" path="res://assets/sprites/hats/DragonPet_barret_barretina.png" id="6_1ivi1"] -[ext_resource type="Texture2D" uid="uid://cs0ke244c33t2" path="res://assets/sprites/shirts/DragonPet_roba_armadura.png" id="7_giwys"] -[ext_resource type="Texture2D" uid="uid://onajhbpjtnil" path="res://assets/sprites/decor/DragonPet_acc_escut.png" id="8_udwtk"] +[ext_resource type="SpriteFrames" uid="uid://ccxyplt2t7t6y" path="res://assets/animations/hats/barretina.tres" id="2_aystc"] +[ext_resource type="Resource" uid="uid://x063x858re3f" path="res://assets/outfits/hats.tres" id="2_vvtct"] +[ext_resource type="Resource" uid="uid://bsydervvb1jpe" path="res://assets/outfits/shirts.tres" id="3_xhgxf"] +[ext_resource type="Resource" uid="uid://dkm7d10c1lp2n" path="res://assets/outfits/decor.tres" id="4_1ivi1"] +[ext_resource type="Resource" uid="uid://c03ejnvavmcj5" path="res://assets/outfits/dragons.tres" id="5_1ivi1"] +[ext_resource type="SpriteFrames" uid="uid://c5rqqy7b5ihi5" path="res://assets/animations/decor/rosa.tres" id="6_c4sli"] +[ext_resource type="Texture2D" uid="uid://dceoy4417v83e" path="res://assets/sprites/ui/DP_UI_CharCreation_BG.png" id="6_udwtk"] +[ext_resource type="Script" uid="uid://dxl7onk7x6h8b" path="res://src/draggable.gd" id="7_1vw8k"] +[ext_resource type="Texture2D" uid="uid://bu5xa7tgfk3h3" path="res://assets/sprites/ui/DP_UI_Buttons01.png" id="7_qppok"] +[ext_resource type="Texture2D" uid="uid://bgpbbkmwt8ysq" path="res://assets/sprites/ui/DP_UI_Button_Text.png" id="8_ofxsr"] [ext_resource type="Script" uid="uid://mhudiyt5gnt1" path="res://scenes/dragon_editor/line_edit.gd" id="9_xhgxf"] +[ext_resource type="Texture2D" uid="uid://bdrm1nxydvf5t" path="res://assets/sprites/ui/DP_UI_Label_Big.png" id="12_qppok"] +[ext_resource type="SpriteFrames" uid="uid://duxxw4mfxql3c" path="res://assets/animations/dragons/verd.tres" id="14_aystc"] +[ext_resource type="StyleBox" uid="uid://bhe580k04w6ve" path="res://assets/styles/style_box_empty.tres" id="14_bh8dj"] +[ext_resource type="SpriteFrames" uid="uid://dsxhfu2ekw7j" path="res://assets/animations/shirts/traje.tres" id="15_x0448"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_ofxsr"] +atlas = ExtResource("7_qppok") +region = Rect2(0, 40, 38, 40) + +[sub_resource type="AtlasTexture" id="AtlasTexture_bh8dj"] +atlas = ExtResource("7_qppok") +region = Rect2(0, 80, 38, 40) + +[sub_resource type="AtlasTexture" id="AtlasTexture_1vw8k"] +atlas = ExtResource("7_qppok") +region = Rect2(0, 0, 38, 40) + +[sub_resource type="AtlasTexture" id="AtlasTexture_rrp4v"] +atlas = ExtResource("7_qppok") +region = Rect2(0, 120, 38, 40) + +[sub_resource type="AtlasTexture" id="AtlasTexture_mc14k"] +atlas = ExtResource("8_ofxsr") +region = Rect2(0, 0, 62, 24) + +[sub_resource type="AtlasTexture" id="AtlasTexture_kohpo"] +atlas = ExtResource("7_qppok") +region = Rect2(0, 160, 38, 40) [node name="DragonEditor" type="Window"] +transparent_bg = true title = "Dragon Editor" position = Vector2i(0, 36) -size = Vector2i(300, 500) +size = Vector2i(230, 332) +unresizable = true +borderless = true always_on_top = true -min_size = Vector2i(300, 500) -max_size = Vector2i(1000, 1000) +transparent = true script = ExtResource("1_8vkll") hat_outfits = ExtResource("2_vvtct") shirt_outfits = ExtResource("3_xhgxf") -shoes_outfits = ExtResource("4_1ivi1") +decor_outfits = ExtResource("4_1ivi1") dragon_colors = ExtResource("5_1ivi1") [node name="CanvasLayer" type="CanvasLayer" parent="."] +[node name="BG" type="TextureRect" parent="CanvasLayer"] +offset_right = 40.0 +offset_bottom = 40.0 +texture = ExtResource("6_udwtk") + +[node name="Dragon" type="AnimatedSprite2D" parent="CanvasLayer"] +position = Vector2(112, 154) +sprite_frames = ExtResource("14_aystc") +animation = &"idle" + +[node name="Hat" type="AnimatedSprite2D" parent="CanvasLayer/Dragon"] +sprite_frames = ExtResource("2_aystc") +animation = &"idle" + +[node name="Shirt" type="AnimatedSprite2D" parent="CanvasLayer/Dragon"] +sprite_frames = ExtResource("15_x0448") +animation = &"idle" + +[node name="Decor" type="AnimatedSprite2D" parent="CanvasLayer/Dragon"] +sprite_frames = ExtResource("6_c4sli") +animation = &"idle" + +[node name="Dragger" type="Control" parent="CanvasLayer"] +layout_mode = 3 +anchors_preset = 0 +offset_left = 18.0 +offset_top = 32.0 +offset_right = 198.0 +offset_bottom = 320.0 +script = ExtResource("7_1vw8k") + [node name="change_hat" type="Button" parent="CanvasLayer"] -anchors_preset = 8 -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -offset_left = -130.0 -offset_top = -206.0 -offset_right = -62.0 -offset_bottom = -175.0 -grow_horizontal = 2 -grow_vertical = 2 +offset_left = 48.0 +offset_top = 38.0 +offset_right = 94.0 +offset_bottom = 86.0 focus_mode = 0 -text = "barret" +icon = SubResource("AtlasTexture_ofxsr") +flat = true [node name="change_shirt" type="Button" parent="CanvasLayer"] -anchors_preset = 8 -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -offset_left = -47.0 -offset_top = -242.0 -offset_right = 42.0 -offset_bottom = -211.0 -grow_horizontal = 2 -grow_vertical = 2 +offset_left = 84.0 +offset_top = 50.0 +offset_right = 130.0 +offset_bottom = 98.0 focus_mode = 0 -text = "samarreta" +icon = SubResource("AtlasTexture_bh8dj") +flat = true [node name="change_shoes" type="Button" parent="CanvasLayer"] -anchors_preset = 8 -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -offset_left = 54.0 -offset_top = -206.0 -offset_right = 114.0 -offset_bottom = -175.0 -grow_horizontal = 2 -grow_vertical = 2 +offset_left = 120.0 +offset_top = 38.0 +offset_right = 166.0 +offset_bottom = 86.0 focus_mode = 0 -text = "sabata" +icon = SubResource("AtlasTexture_1vw8k") +flat = true [node name="dragon_previous" type="Button" parent="CanvasLayer"] -offset_left = 40.0 -offset_top = 232.0 -offset_right = 58.0 -offset_bottom = 263.0 +offset_left = 76.0 +offset_top = 136.0 +offset_right = 122.0 +offset_bottom = 184.0 +scale = Vector2(-1, 1) focus_mode = 0 -text = "<" +icon = SubResource("AtlasTexture_rrp4v") +flat = true [node name="dragon_next" type="Button" parent="CanvasLayer"] -offset_left = 235.0 -offset_top = 232.0 -offset_right = 253.0 -offset_bottom = 263.0 +offset_left = 134.0 +offset_top = 136.0 +offset_right = 180.0 +offset_bottom = 184.0 focus_mode = 0 -text = ">" +icon = SubResource("AtlasTexture_rrp4v") +flat = true [node name="create" type="Button" parent="CanvasLayer"] -anchors_preset = 3 -anchor_left = 1.0 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -42.0 -offset_top = -31.0 -grow_horizontal = 0 -grow_vertical = 0 +offset_left = 112.0 +offset_top = 274.0 +offset_right = 182.0 +offset_bottom = 306.0 focus_mode = 0 -text = "crea" +icon = SubResource("AtlasTexture_mc14k") +flat = true -[node name="Dragon" type="TextureRect" parent="CanvasLayer"] -anchors_preset = 8 -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -offset_left = -38.0 -offset_top = -57.0 -offset_right = 38.0 -offset_bottom = 31.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("5_xhgxf") +[node name="close" type="Button" parent="CanvasLayer"] +offset_left = 178.0 +offset_top = 6.0 +offset_right = 224.0 +offset_bottom = 54.0 +focus_mode = 0 +icon = SubResource("AtlasTexture_kohpo") +flat = true -[node name="Hat" type="TextureRect" parent="CanvasLayer/Dragon"] -layout_mode = 1 -anchors_preset = 8 -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -offset_left = -38.0 -offset_top = -44.0 -offset_right = 38.0 -offset_bottom = 44.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("6_1ivi1") +[node name="NameLabel" type="TextureRect" parent="CanvasLayer"] +offset_left = 34.0 +offset_top = 228.0 +offset_right = 182.0 +offset_bottom = 276.0 +texture = ExtResource("12_qppok") -[node name="Shirt" type="TextureRect" parent="CanvasLayer/Dragon"] -layout_mode = 1 -anchors_preset = 8 -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -offset_left = -38.0 -offset_top = -44.0 -offset_right = 38.0 -offset_bottom = 44.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_giwys") - -[node name="Shoes" type="TextureRect" parent="CanvasLayer/Dragon"] -layout_mode = 1 -anchors_preset = 8 -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -offset_left = -38.0 -offset_top = -44.0 -offset_right = 38.0 -offset_bottom = 44.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_udwtk") - -[node name="LineEdit" type="LineEdit" parent="CanvasLayer"] -offset_left = 59.0 -offset_top = 372.0 -offset_right = 250.0 -offset_bottom = 403.0 +[node name="LineEdit" type="LineEdit" parent="CanvasLayer/NameLabel"] +layout_mode = 0 +offset_left = 10.0 +offset_top = 8.0 +offset_right = 138.0 +offset_bottom = 42.0 +theme_override_styles/focus = ExtResource("14_bh8dj") placeholder_text = "NOM" alignment = 1 max_length = 8 +flat = true +caret_blink = true script = ExtResource("9_xhgxf") [connection signal="close_requested" from="." to="." method="_on_close_requested"] @@ -176,3 +181,4 @@ script = ExtResource("9_xhgxf") [connection signal="pressed" from="CanvasLayer/dragon_previous" to="." method="_on_previous_color_pressed"] [connection signal="pressed" from="CanvasLayer/dragon_next" to="." method="_on_next_color_pressed"] [connection signal="pressed" from="CanvasLayer/create" to="." method="_on_create_pressed"] +[connection signal="pressed" from="CanvasLayer/close" to="." method="_on_close_pressed"] diff --git a/scenes/dragon_list/dragon_list.tscn b/scenes/dragon_list/dragon_list.tscn index 0102f4d..cdfd8a5 100644 --- a/scenes/dragon_list/dragon_list.tscn +++ b/scenes/dragon_list/dragon_list.tscn @@ -1,10 +1,7 @@ -[gd_scene load_steps=6 format=3 uid="uid://tubxrqxjic6r"] +[gd_scene load_steps=3 format=3 uid="uid://tubxrqxjic6r"] [ext_resource type="PackedScene" uid="uid://bs45hvb2mpw4k" path="res://scenes/dragon_list/dragon_properties.tscn" id="1_4vct3"] [ext_resource type="Script" uid="uid://dm8d0ikf1n8qa" path="res://scenes/dragon_list/dragon_list_view.gd" id="1_q7g8i"] -[ext_resource type="Resource" uid="uid://cnhwn6kfcbjl5" path="res://assets/outfits/hats.tres" id="3_xxwat"] -[ext_resource type="Resource" uid="uid://etegcak2sphs" path="res://assets/outfits/shirts.tres" id="4_7mhmu"] -[ext_resource type="Resource" uid="uid://ba5684xylts3f" path="res://assets/outfits/shoes.tres" id="5_h4iwm"] [node name="DragonList" type="Window" node_paths=PackedStringArray("dragon_list_view")] size = Vector2i(450, 700) @@ -12,9 +9,6 @@ always_on_top = true script = ExtResource("1_q7g8i") dragon_list_entry = ExtResource("1_4vct3") dragon_list_view = NodePath("CanvasLayer/ScrollContainer/VBoxContainer") -hat_outfits = ExtResource("3_xxwat") -shirt_outfits = ExtResource("4_7mhmu") -shoes_outfits = ExtResource("5_h4iwm") [node name="CanvasLayer" type="CanvasLayer" parent="."] diff --git a/scenes/dragon_list/dragon_list_entry.gd b/scenes/dragon_list/dragon_list_entry.gd index 06670cb..9f49e7c 100644 --- a/scenes/dragon_list/dragon_list_entry.gd +++ b/scenes/dragon_list/dragon_list_entry.gd @@ -3,15 +3,13 @@ class_name DragonListEntry @export var texture_rect: TextureRect @export var name_label: Label -@export var code_label: Label - -var code_generator: CodeGenerator +@export var origin_label: Label @export var hat_outfits: DragonOutfit @export var shirt_outfits: DragonOutfit @export var shoes_outfits: DragonOutfit -func set_properties(name: String, hat: Texture2D, shirt: Texture2D, shoes: Texture2D) -> void: - name_label.text = name - code_label.text = CodeGenerator.new(hat_outfits, shirt_outfits, shoes_outfits).encrypt(hat, shirt, shoes, name) +func set_properties(properties: DragonProperties) -> void: + name_label.text = properties.name + origin_label.text = properties.origin diff --git a/scenes/dragon_list/dragon_list_view.gd b/scenes/dragon_list/dragon_list_view.gd index 0dbbd29..5a873c0 100644 --- a/scenes/dragon_list/dragon_list_view.gd +++ b/scenes/dragon_list/dragon_list_view.gd @@ -4,25 +4,18 @@ class_name DragonList @export var dragon_list_entry: PackedScene @export var dragon_list_view: VBoxContainer -@export var hat_outfits: DragonOutfit -@export var shirt_outfits: DragonOutfit -@export var shoes_outfits: DragonOutfit - var _library: DragonLibrary func set_library(library: DragonLibrary): _library = library for d in _library.dragons: - var hat: Texture2D = hat_outfits.get_texture(d['hat']) - var shirt: Texture2D = shirt_outfits.get_texture(d['shirt']) - var shoes: Texture2D = shoes_outfits.get_texture(d['shoes']) - append_dragon(d['name'], hat, shirt, shoes) -# + append_dragon(d) -func append_dragon(name: String, hat: Texture2D, shirt: Texture2D, shoes: Texture2D): + +func append_dragon(properties: DragonProperties): var dragon: DragonListEntry = dragon_list_entry.instantiate() - dragon.set_properties(name, hat, shirt, shoes) + dragon.set_properties(properties) dragon_list_view.add_child(dragon) diff --git a/scenes/dragon_list/dragon_properties.tscn b/scenes/dragon_list/dragon_properties.tscn index e386ae4..abf93c3 100644 --- a/scenes/dragon_list/dragon_properties.tscn +++ b/scenes/dragon_list/dragon_properties.tscn @@ -1,23 +1,391 @@ -[gd_scene load_steps=7 format=3 uid="uid://bs45hvb2mpw4k"] +[gd_scene load_steps=57 format=3 uid="uid://bs45hvb2mpw4k"] [ext_resource type="Texture2D" uid="uid://fdqnc2qrrvn1" path="res://assets/sprites/icon.svg" id="1_4i8li"] [ext_resource type="Script" uid="uid://d1bq5f35wptxt" path="res://scenes/dragon_list/dragon_list_entry.gd" id="1_s7he7"] [ext_resource type="FontFile" uid="uid://dn8qanm8tctb2" path="res://assets/fonts/Montserrat-Regular.ttf" id="2_s7he7"] -[ext_resource type="Resource" uid="uid://cnhwn6kfcbjl5" path="res://assets/outfits/hats.tres" id="2_y33em"] -[ext_resource type="Resource" uid="uid://etegcak2sphs" path="res://assets/outfits/shirts.tres" id="3_84ie0"] -[ext_resource type="Resource" uid="uid://ba5684xylts3f" path="res://assets/outfits/shoes.tres" id="4_xvxt0"] +[ext_resource type="SpriteFrames" uid="uid://ccxyplt2t7t6y" path="res://assets/animations/hats/barretina.tres" id="2_xvxt0"] +[ext_resource type="Script" uid="uid://rw26nny160xh" path="res://src/dragon_outfit.gd" id="3_eop0l"] +[ext_resource type="Texture2D" uid="uid://c7nmelv0lx3i3" path="res://assets/sprites/decor/DP_acc_escut_Anim.png" id="4_xvxt0"] +[ext_resource type="Texture2D" uid="uid://drnel2cjwf5dr" path="res://assets/sprites/decor/DP_acc_espasa_Anim.png" id="5_eop0l"] +[ext_resource type="Texture2D" uid="uid://dbbcv076jh4ep" path="res://assets/sprites/decor/DP_acc_rosa_Anim.png" id="6_chh13"] -[node name="DragonProperties" type="Control" node_paths=PackedStringArray("texture_rect", "name_label", "code_label")] +[sub_resource type="Resource" id="Resource_nlx3a"] +script = ExtResource("3_eop0l") +allow_null = true +outfits = Array[SpriteFrames]([ExtResource("2_xvxt0")]) +metadata/_custom_type_script = "uid://rw26nny160xh" + +[sub_resource type="Resource" id="Resource_1dq4x"] +script = ExtResource("3_eop0l") +allow_null = true +outfits = Array[SpriteFrames]([ExtResource("2_xvxt0")]) +metadata/_custom_type_script = "uid://rw26nny160xh" + +[sub_resource type="AtlasTexture" id="AtlasTexture_n1vju"] +atlas = ExtResource("4_xvxt0") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_m1nfd"] +atlas = ExtResource("4_xvxt0") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_3fnsk"] +atlas = ExtResource("4_xvxt0") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_njuvk"] +atlas = ExtResource("4_xvxt0") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_mq26c"] +atlas = ExtResource("4_xvxt0") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_p6fb4"] +atlas = ExtResource("4_xvxt0") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_fwa0p"] +atlas = ExtResource("4_xvxt0") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_26ptf"] +atlas = ExtResource("4_xvxt0") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_amy8y"] +atlas = ExtResource("4_xvxt0") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_knwp6"] +atlas = ExtResource("4_xvxt0") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_yfy00"] +atlas = ExtResource("4_xvxt0") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_bnccx"] +atlas = ExtResource("4_xvxt0") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_hc8ch"] +atlas = ExtResource("4_xvxt0") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_0nuxw"] +atlas = ExtResource("4_xvxt0") +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("5_eop0l") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_1uixo"] +atlas = ExtResource("5_eop0l") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_xccp0"] +atlas = ExtResource("5_eop0l") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_nyede"] +atlas = ExtResource("5_eop0l") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_cxse4"] +atlas = ExtResource("5_eop0l") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_edjcl"] +atlas = ExtResource("5_eop0l") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_jhak8"] +atlas = ExtResource("5_eop0l") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_t2351"] +atlas = ExtResource("5_eop0l") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_uw07h"] +atlas = ExtResource("5_eop0l") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_xcrai"] +atlas = ExtResource("5_eop0l") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_tywya"] +atlas = ExtResource("5_eop0l") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_7pu4u"] +atlas = ExtResource("5_eop0l") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_i1w1o"] +atlas = ExtResource("5_eop0l") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_xsi0i"] +atlas = ExtResource("5_eop0l") +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("6_chh13") +region = Rect2(0, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_uera2"] +atlas = ExtResource("6_chh13") +region = Rect2(108, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_0q8tn"] +atlas = ExtResource("6_chh13") +region = Rect2(216, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_f2bes"] +atlas = ExtResource("6_chh13") +region = Rect2(324, 216, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_albls"] +atlas = ExtResource("6_chh13") +region = Rect2(0, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_mlrdx"] +atlas = ExtResource("6_chh13") +region = Rect2(108, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_dipuj"] +atlas = ExtResource("6_chh13") +region = Rect2(216, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_d0xss"] +atlas = ExtResource("6_chh13") +region = Rect2(324, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_mpdbr"] +atlas = ExtResource("6_chh13") +region = Rect2(432, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_dy3ut"] +atlas = ExtResource("6_chh13") +region = Rect2(540, 0, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_gi66g"] +atlas = ExtResource("6_chh13") +region = Rect2(0, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_am77p"] +atlas = ExtResource("6_chh13") +region = Rect2(108, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_asxml"] +atlas = ExtResource("6_chh13") +region = Rect2(216, 108, 108, 108) + +[sub_resource type="AtlasTexture" id="AtlasTexture_pral7"] +atlas = ExtResource("6_chh13") +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("3_eop0l") +allow_null = true +outfits = Array[SpriteFrames]([SubResource("SpriteFrames_gqmmt"), SubResource("SpriteFrames_yc10j"), SubResource("SpriteFrames_rhebu")]) +metadata/_custom_type_script = "uid://rw26nny160xh" + +[node name="DragonProperties" type="Control" node_paths=PackedStringArray("texture_rect", "name_label", "origin_label")] custom_minimum_size = Vector2(0, 128) layout_mode = 3 anchors_preset = 0 script = ExtResource("1_s7he7") texture_rect = NodePath("TextureRect") name_label = NodePath("Name") -code_label = NodePath("Code") -hat_outfits = ExtResource("2_y33em") -shirt_outfits = ExtResource("3_84ie0") -shoes_outfits = ExtResource("4_xvxt0") +origin_label = NodePath("Origin") +hat_outfits = SubResource("Resource_nlx3a") +shirt_outfits = SubResource("Resource_1dq4x") +shoes_outfits = SubResource("Resource_if2jb") [node name="TextureRect" type="TextureRect" parent="."] layout_mode = 0 @@ -39,7 +407,7 @@ theme_override_fonts/font = ExtResource("2_s7he7") theme_override_font_sizes/font_size = 36 text = "AAAAAAAA" -[node name="Code" type="Label" parent="."] +[node name="Origin" type="Label" parent="."] layout_mode = 0 offset_left = 132.0 offset_top = 8.0 diff --git a/scenes/dragon_sharing.gd b/scenes/dragon_sharing.gd new file mode 100644 index 0000000..b16c6f5 --- /dev/null +++ b/scenes/dragon_sharing.gd @@ -0,0 +1,35 @@ +extends HTTPRequest +class_name DragonSharing + + +signal on_dragon_received(dragon: DragonProperties) + + +func _ready() -> void: + request_completed.connect(_on_request_completed) + + +func _on_request_completed(_result: int, response_code: int, _headers: PackedStringArray, body: PackedByteArray): + if response_code != 200: + print("HTTP request returned error: ", response_code) + on_dragon_received.emit(null) + return + if body.size() != 0: + var json = JSON.parse_string(body.get_string_from_utf8()) + var properties = DragonProperties.new(json['name'], json['origin'], json['color'], json['hat'], json['shirt'], json['decor']) + print(properties) + on_dragon_received.emit(properties) + + +func send(properties: DragonProperties) -> void: + var url: String = 'http://torreta.gerardgascon.com/add/%s/%s/%s/%s/%s/%s/' % [properties.origin, properties.name, properties.color, properties.shirt, properties.hat, properties.decor] + var err: int = request(url) + if err != OK: + print("HTTP request failed: ", err) + + +func receive(origin: String) -> void: + var url: String = 'http://torreta.gerardgascon.com/get/%s/' % origin + var err: int = request(url) + if err != OK: + print("HTTP request failed: ", err) diff --git a/scenes/dragon_sharing.gd.uid b/scenes/dragon_sharing.gd.uid new file mode 100644 index 0000000..dcb5f1b --- /dev/null +++ b/scenes/dragon_sharing.gd.uid @@ -0,0 +1 @@ +uid://bg58e3dobon4j diff --git a/scenes/dragons/dragon_entity_dragger.gd b/scenes/dragons/dragon_entity_dragger.gd index b096621..3d55f9d 100644 --- a/scenes/dragons/dragon_entity_dragger.gd +++ b/scenes/dragons/dragon_entity_dragger.gd @@ -8,11 +8,11 @@ class_name DragonEntity @export var min_exit_time: float @export var max_exit_time: float -signal on_pick(dragon_id: int, position: Vector2, hat: Texture2D, shirt: Texture2D, shoes: Texture2D) +signal on_pick(properties: DragonProperties) signal on_quit(dragon_id: int) var rng: RandomNumberGenerator = RandomNumberGenerator.new() -var id: int +var properties: DragonProperties func _ready() -> void: @@ -22,13 +22,13 @@ func _ready() -> void: func _queue_exit(): await get_tree().create_timer(rng.randf_range(min_exit_time, max_exit_time)).timeout - var tween = get_tree().create_tween() + var tween: Tween = get_tree().create_tween() tween.tween_property($CollisionShape2D, "position", Vector2(get_window().size.x + 200, 0), animation_duration) tween.tween_callback(_proceed_exit) func _proceed_exit(): - on_quit.emit(id) + on_quit.emit(properties.id) queue_free() @@ -39,13 +39,14 @@ func _play_initial_animation() -> void: tween.tween_callback(_queue_exit) -func _input_event(viewport, event, shape_idx) -> void: +func _input_event(_viewport, event, _shape_idx) -> void: if event is InputEventMouseButton \ and event.button_index == MOUSE_BUTTON_LEFT \ and event.is_pressed(): - on_pick.emit(id, position + $CollisionShape2D.position, dragon.hat.texture, dragon.shirt.texture, dragon.shoes.texture) + properties.position = position + $CollisionShape2D.position + on_pick.emit(properties) queue_free() -func dress(hat: Texture2D, shirt: Texture2D, shoes: Texture2D): - dragon.dress(hat, shirt, shoes) +func dress(properties: DragonProperties): + dragon.dress(properties) diff --git a/scenes/dragons/dragon_sprite.gd b/scenes/dragons/dragon_sprite.gd index fe1cfe3..2ee84c8 100644 --- a/scenes/dragons/dragon_sprite.gd +++ b/scenes/dragons/dragon_sprite.gd @@ -2,22 +2,63 @@ extends Node2D class_name DragonSprite -@export var hat: Sprite2D -@export var shirt: Sprite2D -@export var shoes: Sprite2D +@export var hat: AnimatedSprite2D +@export var shirt: AnimatedSprite2D +@export var decor: AnimatedSprite2D +@export var color: AnimatedSprite2D + +@export var hat_outfits: DragonOutfit +@export var shirt_outfits: DragonOutfit +@export var decor_outfits: DragonOutfit +@export var color_outfits: DragonOutfit -func dress(hat: Texture2D, shirt: Texture2D, shoes: Texture2D): - self.hat.texture = hat - self.shirt.texture = shirt - self.shoes.texture = shoes +func dress(properties: DragonProperties): + _set_dress(hat, hat_outfits.get_texture(properties.hat)) + _set_dress(shirt, shirt_outfits.get_texture(properties.shirt)) + _set_dress(decor, decor_outfits.get_texture(properties.decor)) + _set_dress(color, color_outfits.get_texture(properties.color)) + play_walk() + + +func _set_dress(part: AnimatedSprite2D, dress: SpriteFrames): + if dress == null: + part.visible = false + else: + part.visible = true + part.set_sprite_frames(dress) func walk_left(): - $Sprite.scale.x = 1 - $DragonBody.scale.x = 1 + $Dragon.scale.x = 1 func walk_right(): - $Sprite.scale.x = -1 - $DragonBody.scale.x = -1 + $Dragon.scale.x = -1 + + +func _play_animation(animation_name: String, part: AnimatedSprite2D) -> void: + if !part.is_visible(): + return + part.play(animation_name) + + +func play_idle() -> void: + _play_animation("idle", hat) + _play_animation("idle", shirt) + _play_animation("idle", decor) + _play_animation("idle", color) + + +func play_fly() -> void: + _play_animation("fly", hat) + _play_animation("fly", shirt) + _play_animation("fly", decor) + _play_animation("fly", color) + + +func play_walk() -> void: + _play_animation("walk", hat) + _play_animation("walk", shirt) + _play_animation("walk", decor) + _play_animation("walk", color) diff --git a/scenes/dragons/dragon_sprite.tscn b/scenes/dragons/dragon_sprite.tscn index e999b7b..c5718ec 100644 --- a/scenes/dragons/dragon_sprite.tscn +++ b/scenes/dragons/dragon_sprite.tscn @@ -1,46 +1,51 @@ -[gd_scene load_steps=8 format=3 uid="uid://baa8gpicw2yg0"] +[gd_scene load_steps=11 format=3 uid="uid://baa8gpicw2yg0"] [ext_resource type="Script" uid="uid://bjiap06gs02j" path="res://scenes/dragons/dragon_sprite.gd" id="1_oaoux"] -[ext_resource type="Texture2D" uid="uid://dl87ffgh2hl68" path="res://assets/sprites/dragons/DragonPet_drac01.png" id="2_oaoux"] -[ext_resource type="Texture2D" uid="uid://12fv5nymaljj" path="res://assets/sprites/hats/DragonPet_barret_barretina.png" id="3_oaoux"] -[ext_resource type="Texture2D" uid="uid://b3xnii6r00hol" path="res://assets/sprites/shirts/DragonPet_roba_traje.png" id="4_oaoux"] -[ext_resource type="Texture2D" uid="uid://c1b8gp5uf2ehk" path="res://assets/sprites/decor/DragonPet_acc_rosa.png" id="5_stf6f"] -[ext_resource type="SpriteFrames" uid="uid://4cm7picl2gvs" path="res://assets/animations/dragon_green.tres" id="6_yf7bj"] +[ext_resource type="Resource" uid="uid://x063x858re3f" path="res://assets/outfits/hats.tres" id="2_mxc00"] +[ext_resource type="Resource" uid="uid://bsydervvb1jpe" path="res://assets/outfits/shirts.tres" id="3_umqeb"] +[ext_resource type="Resource" uid="uid://dkm7d10c1lp2n" path="res://assets/outfits/decor.tres" id="4_7b2ll"] +[ext_resource type="Resource" uid="uid://c03ejnvavmcj5" path="res://assets/outfits/dragons.tres" id="5_x2k4p"] +[ext_resource type="SpriteFrames" uid="uid://duxxw4mfxql3c" path="res://assets/animations/dragons/verd.tres" id="6_yf7bj"] +[ext_resource type="SpriteFrames" uid="uid://ccxyplt2t7t6y" path="res://assets/animations/hats/barretina.tres" id="10_7b2ll"] +[ext_resource type="SpriteFrames" uid="uid://dsxhfu2ekw7j" path="res://assets/animations/shirts/traje.tres" id="11_x2k4p"] +[ext_resource type="SpriteFrames" uid="uid://c5rqqy7b5ihi5" path="res://assets/animations/decor/rosa.tres" id="12_rhebu"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_oaoux"] -size = Vector2(76, 88) +size = Vector2(108, 88) -[node name="Dragon" type="Node2D" node_paths=PackedStringArray("hat", "shirt", "shoes")] +[node name="Dragon" type="Node2D" node_paths=PackedStringArray("hat", "shirt", "decor", "color")] script = ExtResource("1_oaoux") -hat = NodePath("Sprite/Hat") -shirt = NodePath("Sprite/Shirt") -shoes = NodePath("Sprite/Shoes") +hat = NodePath("Dragon/Hat") +shirt = NodePath("Dragon/Shirt") +decor = NodePath("Dragon/Decor") +color = NodePath("Dragon") +hat_outfits = ExtResource("2_mxc00") +shirt_outfits = ExtResource("3_umqeb") +decor_outfits = ExtResource("4_7b2ll") +color_outfits = ExtResource("5_x2k4p") [node name="Area2D" type="Area2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] -position = Vector2(38, 44) +position = Vector2(54, 44) shape = SubResource("RectangleShape2D_oaoux") -[node name="Sprite" type="Sprite2D" parent="."] -position = Vector2(38, 44) -texture = ExtResource("2_oaoux") - -[node name="Hat" type="Sprite2D" parent="Sprite"] -texture = ExtResource("3_oaoux") - -[node name="Shirt" type="Sprite2D" parent="Sprite"] -texture = ExtResource("4_oaoux") - -[node name="Shoes" type="Sprite2D" parent="Sprite"] -texture = ExtResource("5_stf6f") - -[node name="DragonBody" type="AnimatedSprite2D" parent="."] -position = Vector2(36, 34) +[node name="Dragon" type="AnimatedSprite2D" parent="."] +position = Vector2(54, 34) sprite_frames = ExtResource("6_yf7bj") animation = &"idle" -autoplay = "idle" -frame_progress = 0.10072 + +[node name="Hat" type="AnimatedSprite2D" parent="Dragon"] +sprite_frames = ExtResource("10_7b2ll") +animation = &"idle" + +[node name="Shirt" type="AnimatedSprite2D" parent="Dragon"] +sprite_frames = ExtResource("11_x2k4p") +animation = &"idle" + +[node name="Decor" type="AnimatedSprite2D" parent="Dragon"] +sprite_frames = ExtResource("12_rhebu") +animation = &"idle" [connection signal="mouse_entered" from="Area2D" to="." method="_on_area_2d_mouse_entered"] [connection signal="mouse_exited" from="Area2D" to="." method="_on_area_2d_mouse_exited"] diff --git a/scenes/main.gd b/scenes/main.gd index 13f5ba6..dc859b8 100644 --- a/scenes/main.gd +++ b/scenes/main.gd @@ -4,14 +4,11 @@ class_name GameManager @export var dragon_template: PackedScene @export var dragon_ingame: PackedScene +@export var name_setter: PackedScene @export var dragon_spots: Array[Node2D] var _filled_spots: Dictionary[Node2D, int] -@export var hat_outfits: DragonOutfit -@export var shirt_outfits: DragonOutfit -@export var shoes_outfits: DragonOutfit - var _instantiator: DragonInstantiator var _save_load: SaveLoad var _library: DragonLibrary @@ -23,47 +20,73 @@ var rng: RandomNumberGenerator = RandomNumberGenerator.new() @export var min_dragon_instantiation_time: float @export var max_dragon_instantiation_time: float +@onready var dragon_sharing: DragonSharing = $HTTPRequest + func _ready(): - _library = DragonLibrary.new(hat_outfits, shirt_outfits, shoes_outfits) + _library = DragonLibrary.new() _instantiator = DragonInstantiator.new(dragon_template, get_viewport(), get_window()) _save_load = SaveLoad.new() await get_tree().process_frame move_window_to_bottom_right() _load_game() + if _save_load.get_tower_name() == "": + _show_name_setter_screen() _queue_dragon_instantiation() +func _show_name_setter_screen(): + var setter: NameSetter = name_setter.instantiate() + setter.set_save_load(_save_load) + add_child(setter) + + var display_index: int = DisplayServer.window_get_current_screen() + var work_area_position: Vector2i = DisplayServer.screen_get_usable_rect(display_index).position + var work_area_size: Vector2i = DisplayServer.screen_get_usable_rect(display_index).size + + var new_position: Vector2i = work_area_position + Vector2i(work_area_size.x / 2.0 - setter.size.x / 2.0, work_area_size.y / 2.0 - setter.size.y / 2.0) + setter.position = new_position + + func _queue_dragon_instantiation(): await get_tree().create_timer(rng.randf_range(min_dragon_instantiation_time, max_dragon_instantiation_time)).timeout - _instantiate_random_dragon() - - -func _instantiate_random_dragon(): - for spot in dragon_spots: - if not _filled_spots.has(spot): - var dragon: DragonEntity = _pick_random_dragon(spot.position) - if dragon != null: - _filled_spots[spot] = dragon.id - break + if _save_load.get_tower_name() != "": + _instantiate_random_dragon() _queue_dragon_instantiation() -func _pick_random_dragon(pos: Vector2) -> DragonEntity: - for dragon in _library.dragons: - var id: int = dragon['id'] - if _instantiated_dragons.has(id) or _dragon_entities.has(id): - continue - var dragon_name: String = dragon['name'] - var hat: Texture2D = hat_outfits.get_texture(dragon['hat']) - var shirt: Texture2D = shirt_outfits.get_texture(dragon['shirt']) - var shoes: Texture2D = shoes_outfits.get_texture(dragon['shoes']) - return _instantiate_dragon_ingame(pos, hat, shirt, shoes, dragon_name, id) - +func _instantiate_random_dragon(): + var spot: Node2D = _get_free_spot() + if spot == null: + return + + #TODO: Add also a way to instantiate dragons in your library with a greater probability + for i in range(5): + dragon_sharing.receive(_save_load.get_tower_name()) + var dragon: DragonProperties = await dragon_sharing.on_dragon_received + if dragon == null: + return + for d in _library.dragons: + # TODO: Search for dragon and if is in library or in instantiated dragons continue next iteration + pass + var dragon_entity: DragonEntity = _generate_entity(spot.position, dragon) + _filled_spots[spot] = dragon_entity.properties.id + return + + +func _get_free_spot() -> Node2D: + for spot in dragon_spots: + if not _filled_spots.has(spot): + return spot return null +func _generate_entity(pos: Vector2, properties: DragonProperties) -> DragonEntity: + properties.id = rng.randi() + return _instantiate_dragon_ingame(pos, properties) + + func move_window_to_bottom_right(): var display_index: int = DisplayServer.window_get_current_screen() @@ -78,50 +101,50 @@ func move_window_to_bottom_right(): DisplayServer.window_set_position(new_position) -func add_dragon(hat: Texture2D, shirt: Texture2D, shoes: Texture2D, dragon_name: String): - var id: int = _library.add_dragon(dragon_name, hat, shirt, shoes) +func add_dragon(properties: DragonProperties): + var id: int = _library.add_dragon(properties) + dragon_sharing.send(properties) for spot in dragon_spots: if not _filled_spots.has(spot): - _instantiate_dragon_ingame(spot.position, hat, shirt, shoes, dragon_name, id) + _instantiate_dragon_ingame(spot.position, properties) _filled_spots[spot] = id break func _load_game(): _save_load.load() - var dragons: Array = _save_load.get_dragons() + var dragons: Array[DragonProperties] = _save_load.get_dragons() _library.add_dragons(dragons) - for d in dragons: - if d['pos'] != Vector2i(0, 0): - var hat: Texture2D = hat_outfits.get_texture(d['hat']) - var shirt: Texture2D = shirt_outfits.get_texture(d['shirt']) - var shoes: Texture2D = shoes_outfits.get_texture(d['shoes']) - _pick_dragon(d['id'], d['pos'], hat, shirt, shoes, false) + for d: DragonProperties in dragons: + if d.position != Vector2i(0, 0): + _pick_dragon(d, false) print(_save_load.contents_to_save) -func _instantiate_dragon_ingame(position: Vector2, hat: Texture2D, shirt: Texture2D, shoes: Texture2D, dragon_name: String, id: int) -> DragonEntity: +func _instantiate_dragon_ingame(window_position: Vector2, properties: DragonProperties) -> DragonEntity: var dragon: DragonEntity = dragon_ingame.instantiate() - dragon.dress(hat, shirt, shoes) add_child(dragon) - dragon.id = id - dragon.position = position + dragon.dress(properties) + dragon.properties = properties + dragon.position = window_position dragon.on_pick.connect(_pick_dragon) dragon.on_quit.connect(_quit_dragon) - _instantiated_dragons[id] = dragon + _instantiated_dragons[properties.id] = dragon return dragon -func _pick_dragon(id: int, position: Vector2, hat: Texture2D, shirt: Texture2D, shoes: Texture2D, drag: bool = true): - var dragon: Dragon = _instantiator.instantiate(position, hat, shirt, shoes, drag) - dragon.id = id - _dragon_entities[id] = dragon +func _pick_dragon(properties: DragonProperties, drag: bool = true): + var dragon: Dragon = _instantiator.instantiate(properties, drag) + _dragon_entities[properties.id] = dragon dragon.place_back.connect(_dragon_place_back) add_child(dragon) - _instantiated_dragons.erase(id) + _instantiated_dragons.erase(properties.id) + + if not _library.has(properties): + _library.add_dragon(properties) for spot in _filled_spots: - if _filled_spots[spot] == id: + if _filled_spots[spot] == properties.id: _filled_spots.erase(spot) @@ -134,16 +157,17 @@ func _quit_dragon(id: int): func _dragon_place_back(dragon: Dragon): - _dragon_entities.erase(dragon.id) + _dragon_entities.erase(dragon.properties.id) func _on_close_pressed() -> void: _save_load.clear_dragons() for d in _library.dragons: - if _dragon_entities.has(d['id']) and _dragon_entities[d['id']] != null: - _save_load.add_dragon(d['id'], d['name'], d['hat'], d['shirt'], d['shoes'], _dragon_entities[d['id']].position) + if _dragon_entities.has(d.id) and _dragon_entities[d.id] != null: + _save_load.add_dragon(d) else: - _save_load.add_dragon(d['id'], d['name'], d['hat'], d['shirt'], d['shoes'], Vector2i(0, 0)) + d.position = Vector2i(0, 0) + _save_load.add_dragon(d) _save_load.save() await get_tree().process_frame await get_tree().process_frame diff --git a/scenes/main.tscn b/scenes/main.tscn index ed88f7b..a1e9301 100644 --- a/scenes/main.tscn +++ b/scenes/main.tscn @@ -1,29 +1,24 @@ -[gd_scene load_steps=16 format=3 uid="uid://ctytpqaed0yqx"] +[gd_scene load_steps=13 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="Resource" uid="uid://cnhwn6kfcbjl5" path="res://assets/outfits/hats.tres" id="4_85g3d"] [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://cdlipr8l1k38a" path="res://scenes/name_setter/name_setter.tscn" id="4_trceg"] [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"] [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" path="res://scenes/dragon_sharing.gd" id="17_muem4"] [node name="Base" type="Node2D" node_paths=PackedStringArray("dragon_spots")] script = ExtResource("1_sugp2") dragon_template = ExtResource("2_jyhfs") dragon_ingame = ExtResource("4_jyhfs") +name_setter = ExtResource("4_trceg") dragon_spots = [NodePath("DragonSpot1"), NodePath("DragonSpot2"), NodePath("DragonSpot3")] -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 @@ -69,20 +64,6 @@ 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 = -393.0 -offset_top = 14.0 -offset_right = -329.0 -offset_bottom = 45.0 -grow_horizontal = 0 -focus_mode = 0 -text = "afegeix" -script = ExtResource("11_eb6dy") -dragon_adder = ExtResource("12_trceg") - [node name="Castle" type="Node2D" parent="."] [node name="DpCastleBack" type="Sprite2D" parent="Castle"] @@ -109,9 +90,11 @@ 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"] -[connection signal="pressed" from="CanvasLayer/Adder" to="CanvasLayer/Adder" method="_on_pressed"] diff --git a/scenes/name_setter/name_setter.gd b/scenes/name_setter/name_setter.gd new file mode 100644 index 0000000..26a383a --- /dev/null +++ b/scenes/name_setter/name_setter.gd @@ -0,0 +1,20 @@ +extends Window +class_name NameSetter + + +var save_load: SaveLoad +@onready var name_edit: LineEdit = $Name + + +func _ready() -> void: + pass + + +func set_save_load(save_load: SaveLoad) -> void: + self.save_load = save_load + + +func _on_submit_pressed() -> void: + if not name_edit.text.is_empty(): + save_load.set_tower_name(name_edit.text) + queue_free() diff --git a/scenes/name_setter/name_setter.gd.uid b/scenes/name_setter/name_setter.gd.uid new file mode 100644 index 0000000..b0da722 --- /dev/null +++ b/scenes/name_setter/name_setter.gd.uid @@ -0,0 +1 @@ +uid://drulv5ptupx2w diff --git a/scenes/name_setter/name_setter.tscn b/scenes/name_setter/name_setter.tscn new file mode 100644 index 0000000..9b31da8 --- /dev/null +++ b/scenes/name_setter/name_setter.tscn @@ -0,0 +1,38 @@ +[gd_scene load_steps=2 format=3 uid="uid://cdlipr8l1k38a"] + +[ext_resource type="Script" uid="uid://drulv5ptupx2w" path="res://scenes/name_setter/name_setter.gd" id="1_f3gk5"] + +[node name="NameSetter" type="Window"] +position = Vector2i(0, 36) +size = Vector2i(500, 250) +unresizable = true +always_on_top = true +script = ExtResource("1_f3gk5") + +[node name="Instructions" type="Label" parent="."] +offset_right = 500.0 +offset_bottom = 146.0 +text = "En aquesta torreta, present a la cantonada del teu escriptori, hi viuran uns dracs que t’acompanyaran en el teu dia a dia. Fins i tot et vindran a visitar dracs d'altres torretes! + +Per començar, posa un nom a la teva torreta. +És el primer pas per fer-la teva." +horizontal_alignment = 1 +autowrap_mode = 2 + +[node name="Name" type="LineEdit" parent="."] +offset_left = 84.0 +offset_top = 163.0 +offset_right = 423.0 +offset_bottom = 214.0 +placeholder_text = "Nom" +alignment = 1 +max_length = 16 + +[node name="Button" type="Button" parent="."] +offset_left = 220.0 +offset_top = 218.0 +offset_right = 287.0 +offset_bottom = 249.0 +text = "Assigna" + +[connection signal="pressed" from="Button" to="." method="_on_submit_pressed"] diff --git a/scenes/window/dragon.gd b/scenes/window/dragon.gd index e88030e..50458e0 100644 --- a/scenes/window/dragon.gd +++ b/scenes/window/dragon.gd @@ -17,7 +17,7 @@ var _fall_speed: float signal place_back(dragon: Dragon) -var id: int +var properties: DragonProperties enum State { @@ -35,7 +35,7 @@ var current_state: State = State.WALKING_IDLE func _ready() -> void: draggable.on_drag.connect(_on_drag) draggable.on_drop.connect(_on_drop) - current_state = State.FALLING + _change_state(State.FALLING) func on_place_back() -> void: @@ -50,12 +50,6 @@ func _process(delta: float) -> void: State.DRAGGING: _thinking_path = false _actual_position = position - State.WALKING_IDLE: - if not _thinking_path: - _think_path() - State.FLYING_IDLE: - if not _thinking_path: - _think_path() State.WALKING: _move_to_target(delta) State.FALLING: @@ -63,13 +57,33 @@ func _process(delta: float) -> void: State.FLYING: _move_to_target(delta) + properties.position = position -func dress(hat: Texture2D, shirt: Texture2D, shoes: Texture2D): - dragon.dress(hat, shirt, shoes) + +func _change_state(new_state): + match new_state: + State.DRAGGING: + dragon.play_idle() + State.WALKING_IDLE: + dragon.play_idle() + _think_path() + State.FLYING_IDLE: + _think_path() + State.WALKING: + dragon.play_walk() + State.FALLING: + dragon.play_idle() + State.FLYING: + dragon.play_fly() + + current_state = new_state + + +func dress(): + dragon.dress(properties) func _think_path(): - _thinking_path = true await get_tree().create_timer(rng.randf_range(2, 7)).timeout dragon_speed = rng.randf_range(dragon_speed_min, dragon_speed_max) @@ -84,7 +98,7 @@ func _think_path(): var decision: int = rng.randi_range(0, 99) if decision < 30: _fall_speed = 0 - current_state = State.FALLING + _change_state(State.FALLING) else: _pick_random_screen_fly_position() @@ -96,7 +110,7 @@ func _fall(delta: float) -> void: var ground_height: int = _ground_height() if position.y >= ground_height: - current_state = State.WALKING_IDLE + _change_state(State.WALKING_IDLE) position.y = ground_height _actual_position.y = ground_height @@ -115,24 +129,24 @@ func _move_to_target(delta: float): match current_state: State.FLYING: - current_state = State.FLYING_IDLE + _change_state(State.FLYING_IDLE) State.WALKING: - current_state = State.WALKING_IDLE + _change_state(State.WALKING_IDLE) func _on_drag(): - current_state = State.DRAGGING + _change_state(State.DRAGGING) func _on_drop(): var ground_height: int = _ground_height() if position.y >= ground_height: - current_state = State.WALKING_IDLE + _change_state(State.WALKING_IDLE) position.y = ground_height _actual_position.y = ground_height else: _fall_speed = 0 - current_state = State.FALLING + _change_state(State.FALLING) func _get_display_limits() -> Rect2i: @@ -149,7 +163,7 @@ func _ground_height() -> int: func _pick_random_screen_fly_position() -> void: - current_state = State.FLYING + _change_state(State.FLYING) _thinking_path = false var limits: Rect2i = _get_display_limits() @@ -163,7 +177,7 @@ func _pick_random_screen_fly_position() -> void: func _pick_random_screen_walk_position() -> void: - current_state = State.WALKING + _change_state(State.WALKING) _thinking_path = false var limits: Rect2i = _get_display_limits() diff --git a/scenes/window/dragon_popup.tscn b/scenes/window/dragon_popup.tscn index 8d4ccde..c0bbd64 100644 --- a/scenes/window/dragon_popup.tscn +++ b/scenes/window/dragon_popup.tscn @@ -7,7 +7,7 @@ [node name="DragonPopup" type="Window" node_paths=PackedStringArray("dragon", "draggable")] disable_3d = true transparent_bg = true -size = Vector2i(76, 88) +size = Vector2i(108, 88) unresizable = true borderless = true always_on_top = true diff --git a/src/draggable.gd b/src/draggable.gd new file mode 100644 index 0000000..032275c --- /dev/null +++ b/src/draggable.gd @@ -0,0 +1,32 @@ +extends Control +class_name DraggableWindow + + +var dragging: bool = false +var dragging_start_position: Vector2i = Vector2i() + +signal on_drag(offset: Vector2i) +signal on_drop() + + +func _ready() -> void: + set_process_input(true) + + +func _gui_input(event: InputEvent) -> void: + if event is not InputEventMouseButton: + return + if event.button_index != MOUSE_BUTTON_LEFT: + return + + if event.pressed: + dragging = true + dragging_start_position = Vector2i(get_global_mouse_position()) + else: + dragging = false + on_drop.emit() + + +func _process(_delta) -> void: + if dragging: + on_drag.emit(Vector2i(get_global_mouse_position()) - dragging_start_position) diff --git a/src/draggable.gd.uid b/src/draggable.gd.uid new file mode 100644 index 0000000..2bd709d --- /dev/null +++ b/src/draggable.gd.uid @@ -0,0 +1 @@ +uid://dxl7onk7x6h8b diff --git a/src/dragon_code_generator.gd b/src/dragon_code_generator.gd deleted file mode 100644 index d32f764..0000000 --- a/src/dragon_code_generator.gd +++ /dev/null @@ -1,147 +0,0 @@ -class_name CodeGenerator - -var hat_outfits: DragonOutfit -var shirt_outfits: DragonOutfit -var shoes_outfits: DragonOutfit - -var key: int = 123 - -var alphabet: Dictionary = { - 'A': '00', - 'B': '01', - 'C': '02', - 'D': '03', - 'E': '04', - 'F': '05', - 'G': '06', - 'H': '07', - 'I': '08', - 'J': '09', - 'K': '10', - 'L': '11', - 'M': '12', - 'N': '13', - 'O': '14', - 'P': '15', - 'Q': '16', - 'R': '17', - 'S': '18', - 'T': '19', - 'U': '20', - 'V': '21', - 'W': '22', - 'X': '23', - 'Y': '24', - 'Z': '25', - ' ': '26' -} - -var alphabet_inverse: Dictionary = { - '00': 'A', - '01': 'B', - '02': 'C', - '03': 'D', - '04': 'E', - '05': 'F', - '06': 'G', - '07': 'H', - '08': 'I', - '09': 'J', - '10': 'K', - '11': 'L', - '12': 'M', - '13': 'N', - '14': 'O', - '15': 'P', - '16': 'Q', - '17': 'R', - '18': 'S', - '19': 'T', - '20': 'U', - '21': 'V', - '22': 'W', - '23': 'X', - '24': 'Y', - '25': 'Z', - '26': ' ' -} - - -func _init(hat: DragonOutfit, shirt: DragonOutfit, shoes: DragonOutfit) -> void: - hat_outfits = hat - shirt_outfits = shirt - shoes_outfits = shoes - - -func encrypt(hat: Texture2D, shirt: Texture2D, shoes: Texture2D, name: String) -> String: - var hat_index: int = hat_outfits.get_index(hat) - var shirt_index: int = shirt_outfits.get_index(shirt) - var shoes_index: int = shoes_outfits.get_index(shoes) - var code: String = generate_code(hat_index, shirt_index, shoes_index, name) - return xor_encrypt_decrypt(code) - - -func descrypt(input: String) -> Dictionary: - var decrypted_code: String = xor_encrypt_decrypt(input) - - if len(decrypted_code) % 2 != 0 or len(decrypted_code) <= 6: - return {'hat': null, 'shirt': null, 'shoes': null, 'name': null} - - return read_code(decrypted_code) - - -func generate_code(int1: int, int2: int, int3: int, input_string: String) -> String: - input_string = input_string.substr(0, 8) - - var binary_data: String = "" - binary_data += _int_to_bin(int1) - binary_data += _int_to_bin(int2) - binary_data += _int_to_bin(int3) - - for i in range(input_string.length()): - binary_data += _char_to_bin(input_string[i]) - - return binary_data - - -func _int_to_bin(value: int) -> String: - return "%02X" % value - - -func _bin_to_int(value: String) -> int: - return value.hex_to_int() - - -func _char_to_bin(character: String) -> String: - return alphabet[character] - - -func _bin_to_char(character: String) -> String: - if not alphabet_inverse.has(character): - return "" - return alphabet_inverse[character] - - -func xor_encrypt_decrypt(data: String) -> String: - var result: String = "" - for i in range(data.length()): - var c: int = data[i].unicode_at(0) - var encrypted_char: int = c ^ key - result += char(encrypted_char) - return result - - -func read_code(code: String) -> Dictionary: - var hat: Texture2D = hat_outfits.get_texture(_bin_to_int(code.substr(0, 2))) - var shirt: Texture2D = shirt_outfits.get_texture(_bin_to_int(code.substr(2, 2))) - var shoes: Texture2D = shoes_outfits.get_texture(_bin_to_int(code.substr(4, 2))) - - var name: String = "" - for i in range(code.substr(6).length()): - if i % 2 != 0: - continue - if _bin_to_char(code.substr(6 + i, 2)) == "": - return {'hat': null, 'shirt': null, 'shoes': null, 'name': null} - name += _bin_to_char(code.substr(6 + i, 2)) - - return {'hat': hat, 'shirt': shirt, 'shoes': shoes, 'name': name} diff --git a/src/dragon_code_generator.gd.uid b/src/dragon_code_generator.gd.uid deleted file mode 100644 index b5b6a11..0000000 --- a/src/dragon_code_generator.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://bhnm8ysguu4u4 diff --git a/src/dragon_instantiator.gd b/src/dragon_instantiator.gd index 8d41212..592bc28 100644 --- a/src/dragon_instantiator.gd +++ b/src/dragon_instantiator.gd @@ -10,11 +10,8 @@ func _init(dragon: PackedScene, viewport: Viewport, window: Window) -> void: _dragon_template = dragon -func instantiate(position: Vector2, hat: Texture2D, shirt: Texture2D, shoes: Texture2D, drag: bool) -> Node: - if drag == false: - return _instantiate_dragon(position, hat, shirt, shoes, drag) - var relative_position: Vector2i = _calculate_relative_position(position) - return _instantiate_dragon(relative_position, hat, shirt, shoes, drag) +func instantiate(properties: DragonProperties, drag: bool) -> Node: + return _instantiate_dragon(properties, drag) func _calculate_window_scale() -> Vector2: @@ -29,19 +26,19 @@ func _calculate_relative_position(position: Vector2) -> Vector2i: return Vector2i(Vector2(position) * scale) -func _instantiate_dragon(relative_position: Vector2i, hat: Texture2D, shirt: Texture2D, shoes: Texture2D, drag: bool) -> Node: +func _instantiate_dragon(properties: DragonProperties, drag: bool) -> Node: var dragon: Dragon = _dragon_template.instantiate() + dragon.properties = properties var window_position: Vector2i = DisplayServer.window_get_position() var window_size: Vector2i = DisplayServer.window_get_size() if drag == false: - dragon.position = relative_position + dragon.position = properties.position else: - dragon.position = window_position + relative_position - dragon.size / 2 - dragon.dress(hat, shirt, shoes) - - var size: float = _calculate_window_scale().y + dragon.position = window_position + _calculate_relative_position(properties.position) - dragon.size / 2 + dragon.dress() + dragon.main_window_rect = Rect2i(window_position, window_size) dragon.show() diff --git a/src/dragon_library.gd b/src/dragon_library.gd index 401723e..11bccee 100644 --- a/src/dragon_library.gd +++ b/src/dragon_library.gd @@ -2,34 +2,23 @@ extends Node class_name DragonLibrary -var dragons: Array = [] - -var hat_outfits: DragonOutfit -var shirt_outfits: DragonOutfit -var shoes_outfits: DragonOutfit +var dragons: Array[DragonProperties] = [] -func _init(hat_outfits: DragonOutfit, shirt_outfits: DragonOutfit, shoes_outfits: DragonOutfit) -> void: - self.hat_outfits = hat_outfits - self.shirt_outfits = shirt_outfits - self.shoes_outfits = shoes_outfits +func has(properties: DragonProperties) -> bool: + for dragon in dragons: + if properties.equals(dragon): + return true + return false -func add_dragon(name: String, hat: Texture2D, shirt: Texture2D, shoes: Texture2D) -> int: - var hat_index: int = hat_outfits.get_index(hat) - var shirt_index: int = shirt_outfits.get_index(shirt) - var shoes_index: int = shoes_outfits.get_index(shoes) - var id: int = RandomNumberGenerator.new().randi() - _push_dragon(id, name, hat_index, shirt_index, shoes_index) - return id +func add_dragon(properties: DragonProperties) -> int: + if properties.id == 0: + properties.id = randi() + dragons.push_back(properties) + return properties.id -func add_dragons(dragons: Array) -> void: - for d in dragons: - _push_dragon(d['id'], d['name'], d['hat'], d['shirt'], d['shoes']) - - -func _push_dragon(id: int, name: String, hat: int, shirt: int, shoes: int): - dragons.push_back( - {'id': id, 'name': name, 'hat': hat, 'shirt': shirt, 'shoes': shoes} - ) +func add_dragons(new_dragons: Array[DragonProperties]) -> void: + for d in new_dragons: + dragons.push_back(d) diff --git a/src/dragon_outfit.gd b/src/dragon_outfit.gd index 9015ca2..ca918b5 100644 --- a/src/dragon_outfit.gd +++ b/src/dragon_outfit.gd @@ -3,49 +3,56 @@ class_name DragonOutfit @export var allow_null: bool -@export var outfits: Array[Texture2D] -var index: int = 0 +@export var outfits: Array[SpriteFrames] +var _index: int = 0 -func _init(outfits: Array[Texture2D] = []): +func _init(outfits: Array[SpriteFrames] = []): self.outfits = outfits -func pick_next() -> Texture2D: - index += 1 +func reset() -> void: + _index = 0 + + +func pick_next() -> SpriteFrames: + _index += 1 if allow_null: return _pick_nullable() else: return _pick_non_nullable() -func pick_previous() -> Texture2D: - index -= 1 +func pick_previous() -> SpriteFrames: + _index -= 1 if allow_null: return _pick_nullable() else: return _pick_non_nullable() -func _pick_nullable(): - index %= (len(outfits) + 1) - if index == 0: +func _pick_nullable() -> SpriteFrames: + _index %= (len(outfits) + 1) + if _index == 0: return null - return outfits[index - 1] + return outfits[_index - 1] -func _pick_non_nullable(): - index %= len(outfits) - return outfits[index] +func _pick_non_nullable() -> SpriteFrames: + _index %= len(outfits) + return outfits[_index] -func get_index(texture: Texture2D) -> int: - return outfits.find(texture) - - -func get_texture(index: int) -> Texture2D: +func get_texture(index: int) -> SpriteFrames: if index < 0 or index >= len(outfits): return null return outfits[index] + + +func get_current_index() -> int: + if allow_null: + return _index - 1 + else: + return _index diff --git a/src/dragon_properties.gd b/src/dragon_properties.gd new file mode 100644 index 0000000..2e2cdd5 --- /dev/null +++ b/src/dragon_properties.gd @@ -0,0 +1,28 @@ +extends RefCounted +class_name DragonProperties + +var name: String +var origin: String +var color: int +var hat: int +var shirt: int +var decor: int +var position: Vector2i +var id: int + + +func _init(name: String, origin: String, color: int, hat: int, shirt: int, decor: int) -> void: + self.name = name + self.origin = origin + self.color = color + self.hat = hat + self.shirt = shirt + self.decor = decor + + +func _to_string() -> String: + return '%s: [origin: %s, color: %d, hat: %d, shirt: %d, decor: %d]' % [self.name, self.origin, self.color, self.hat, self.shirt, self.decor] + + +func equals(other: DragonProperties): + return name == other.name and origin == other.origin and color == other.color and hat == other.hat and shirt == other.shirt and decor == other.decor diff --git a/src/dragon_properties.gd.uid b/src/dragon_properties.gd.uid new file mode 100644 index 0000000..943b952 --- /dev/null +++ b/src/dragon_properties.gd.uid @@ -0,0 +1 @@ +uid://jyglnbx4cxwm diff --git a/src/save_load.gd b/src/save_load.gd index 5ef2728..d9d5c5b 100644 --- a/src/save_load.gd +++ b/src/save_load.gd @@ -1,11 +1,10 @@ class_name SaveLoad - const save_location = "user://save.data" var contents_to_save: Dictionary = { -} + } func save() -> void: @@ -20,12 +19,13 @@ func load() -> void: var file: FileAccess = FileAccess.open(save_location, FileAccess.READ) var data: Dictionary = file.get_var() file.close() - + contents_to_save = data.duplicate(true) else: contents_to_save.get_or_add('coins', 0) contents_to_save.get_or_add('dragons', []) contents_to_save.get_or_add('items', []) + contents_to_save.get_or_add('tower_name', "") func get_coins() -> int: @@ -36,16 +36,41 @@ func set_coins(coins: int) -> void: contents_to_save['coins'] = coins +func get_tower_name() -> String: + return contents_to_save['tower_name'] + + +func set_tower_name(name: String) -> void: + contents_to_save['tower_name'] = name + + func clear_dragons() -> void: contents_to_save['dragons'] = [] -func add_dragon(id: int, name: String, hat: int, shirt: int, shoes: int, pos: Vector2i) -> void: - contents_to_save['dragons'].push_back({'id': id, 'name': name, 'hat': hat, 'shirt': shirt, 'shoes': shoes, 'pos': pos}) +func add_dragon(dragon: DragonProperties) -> void: + contents_to_save['dragons'].push_back({'name': dragon.name, 'origin': dragon.origin, 'color': dragon.color, 'hat': dragon.hat, 'shirt': dragon.shirt, 'decor': dragon.decor, 'pos': dragon.position}) -func get_dragons() -> Array: - return contents_to_save['dragons'] +func get_dragon(dragon: Dictionary) -> DragonProperties: + var name: String = dragon['name'] + var origin: String = dragon['origin'] + var hat: int = dragon['hat'] + var shirt: int = dragon['shirt'] + var decor: int = dragon['decor'] + var color: int = dragon['color'] + var position: Vector2i = dragon['pos'] + var properties = DragonProperties.new(name, origin, color, hat, shirt, decor) + properties.position = position + properties.id = randi() + return properties + + +func get_dragons() -> Array[DragonProperties]: + var dragons: Array[DragonProperties] = [] + for dragon in contents_to_save['dragons']: + dragons.push_back(get_dragon(dragon)) + return dragons func add_item(id: int, position: Vector2i) -> void: