Commit 2445a71f authored by Gerard Gascón's avatar Gerard Gascón
Browse files

feat: animations working

parent 2a9e824a
Loading
Loading
Loading
Loading
+15 −15
Original line number Diff line number Diff line
[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://b52ph2qg7ovgc"]
[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_n1vju"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mq26c"]
atlas = ExtResource("1_p6fb4")
region = Rect2(0, 216, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_m1nfd"]
[sub_resource type="AtlasTexture" id="AtlasTexture_p6fb4"]
atlas = ExtResource("1_p6fb4")
region = Rect2(108, 216, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_3fnsk"]
[sub_resource type="AtlasTexture" id="AtlasTexture_fwa0p"]
atlas = ExtResource("1_p6fb4")
region = Rect2(216, 216, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_njuvk"]
[sub_resource type="AtlasTexture" id="AtlasTexture_n1vju"]
atlas = ExtResource("1_p6fb4")
region = Rect2(324, 216, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_mq26c"]
[sub_resource type="AtlasTexture" id="AtlasTexture_m1nfd"]
atlas = ExtResource("1_p6fb4")
region = Rect2(0, 0, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_p6fb4"]
[sub_resource type="AtlasTexture" id="AtlasTexture_3fnsk"]
atlas = ExtResource("1_p6fb4")
region = Rect2(108, 0, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_fwa0p"]
[sub_resource type="AtlasTexture" id="AtlasTexture_njuvk"]
atlas = ExtResource("1_p6fb4")
region = Rect2(216, 0, 108, 108)

@@ -62,16 +62,16 @@ region = Rect2(324, 108, 108, 108)
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_n1vju")
"texture": SubResource("AtlasTexture_mq26c")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_m1nfd")
"texture": SubResource("AtlasTexture_p6fb4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3fnsk")
"texture": SubResource("AtlasTexture_fwa0p")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_njuvk")
"texture": SubResource("AtlasTexture_n1vju")
}],
"loop": true,
"name": &"fly",
@@ -79,13 +79,13 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_mq26c")
"texture": SubResource("AtlasTexture_m1nfd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_p6fb4")
"texture": SubResource("AtlasTexture_3fnsk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fwa0p")
"texture": SubResource("AtlasTexture_njuvk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_26ptf")
+24 −24
Original line number Diff line number Diff line
[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://d3q17wrt8ii17"]
[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_qwppa"]
[sub_resource type="AtlasTexture" id="AtlasTexture_qqvla"]
atlas = ExtResource("1_qqvla")
region = Rect2(0, 216, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_1uixo"]
[sub_resource type="AtlasTexture" id="AtlasTexture_qwppa"]
atlas = ExtResource("1_qqvla")
region = Rect2(108, 216, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_xccp0"]
[sub_resource type="AtlasTexture" id="AtlasTexture_1uixo"]
atlas = ExtResource("1_qqvla")
region = Rect2(216, 216, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_nyede"]
[sub_resource type="AtlasTexture" id="AtlasTexture_xccp0"]
atlas = ExtResource("1_qqvla")
region = Rect2(324, 216, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_cxse4"]
[sub_resource type="AtlasTexture" id="AtlasTexture_nyede"]
atlas = ExtResource("1_qqvla")
region = Rect2(0, 0, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_edjcl"]
[sub_resource type="AtlasTexture" id="AtlasTexture_cxse4"]
atlas = ExtResource("1_qqvla")
region = Rect2(108, 0, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_jhak8"]
[sub_resource type="AtlasTexture" id="AtlasTexture_edjcl"]
atlas = ExtResource("1_qqvla")
region = Rect2(216, 0, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_t2351"]
[sub_resource type="AtlasTexture" id="AtlasTexture_jhak8"]
atlas = ExtResource("1_qqvla")
region = Rect2(324, 0, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_uw07h"]
[sub_resource type="AtlasTexture" id="AtlasTexture_t2351"]
atlas = ExtResource("1_qqvla")
region = Rect2(432, 0, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_xcrai"]
[sub_resource type="AtlasTexture" id="AtlasTexture_uw07h"]
atlas = ExtResource("1_qqvla")
region = Rect2(540, 0, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_tywya"]
[sub_resource type="AtlasTexture" id="AtlasTexture_xcrai"]
atlas = ExtResource("1_qqvla")
region = Rect2(0, 108, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_7pu4u"]
[sub_resource type="AtlasTexture" id="AtlasTexture_tywya"]
atlas = ExtResource("1_qqvla")
region = Rect2(108, 108, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_i1w1o"]
[sub_resource type="AtlasTexture" id="AtlasTexture_7pu4u"]
atlas = ExtResource("1_qqvla")
region = Rect2(216, 108, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_xsi0i"]
[sub_resource type="AtlasTexture" id="AtlasTexture_i1w1o"]
atlas = ExtResource("1_qqvla")
region = Rect2(324, 108, 108, 108)

@@ -62,6 +62,9 @@ region = Rect2(324, 108, 108, 108)
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_qqvla")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qwppa")
}, {
"duration": 1.0,
@@ -69,9 +72,6 @@ animations = [{
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xccp0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nyede")
}],
"loop": true,
"name": &"fly",
@@ -79,6 +79,9 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_nyede")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cxse4")
}, {
"duration": 1.0,
@@ -92,9 +95,6 @@ animations = [{
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uw07h")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xcrai")
}],
"loop": true,
"name": &"idle",
@@ -102,6 +102,9 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_xcrai")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tywya")
}, {
"duration": 1.0,
@@ -109,9 +112,6 @@ animations = [{
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_i1w1o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xsi0i")
}],
"loop": true,
"name": &"walk",
+24 −24
Original line number Diff line number Diff line
[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://cjoufnwxcvvf4"]
[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_ifv4k"]
[sub_resource type="AtlasTexture" id="AtlasTexture_ewn65"]
atlas = ExtResource("1_ewn65")
region = Rect2(0, 216, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_uera2"]
[sub_resource type="AtlasTexture" id="AtlasTexture_ifv4k"]
atlas = ExtResource("1_ewn65")
region = Rect2(108, 216, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_0q8tn"]
[sub_resource type="AtlasTexture" id="AtlasTexture_uera2"]
atlas = ExtResource("1_ewn65")
region = Rect2(216, 216, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_f2bes"]
[sub_resource type="AtlasTexture" id="AtlasTexture_0q8tn"]
atlas = ExtResource("1_ewn65")
region = Rect2(324, 216, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_albls"]
[sub_resource type="AtlasTexture" id="AtlasTexture_f2bes"]
atlas = ExtResource("1_ewn65")
region = Rect2(0, 0, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_mlrdx"]
[sub_resource type="AtlasTexture" id="AtlasTexture_albls"]
atlas = ExtResource("1_ewn65")
region = Rect2(108, 0, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_dipuj"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mlrdx"]
atlas = ExtResource("1_ewn65")
region = Rect2(216, 0, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_d0xss"]
[sub_resource type="AtlasTexture" id="AtlasTexture_dipuj"]
atlas = ExtResource("1_ewn65")
region = Rect2(324, 0, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_mpdbr"]
[sub_resource type="AtlasTexture" id="AtlasTexture_d0xss"]
atlas = ExtResource("1_ewn65")
region = Rect2(432, 0, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_dy3ut"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mpdbr"]
atlas = ExtResource("1_ewn65")
region = Rect2(540, 0, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_gi66g"]
[sub_resource type="AtlasTexture" id="AtlasTexture_dy3ut"]
atlas = ExtResource("1_ewn65")
region = Rect2(0, 108, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_am77p"]
[sub_resource type="AtlasTexture" id="AtlasTexture_gi66g"]
atlas = ExtResource("1_ewn65")
region = Rect2(108, 108, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_asxml"]
[sub_resource type="AtlasTexture" id="AtlasTexture_am77p"]
atlas = ExtResource("1_ewn65")
region = Rect2(216, 108, 108, 108)

[sub_resource type="AtlasTexture" id="AtlasTexture_pral7"]
[sub_resource type="AtlasTexture" id="AtlasTexture_asxml"]
atlas = ExtResource("1_ewn65")
region = Rect2(324, 108, 108, 108)

@@ -62,6 +62,9 @@ region = Rect2(324, 108, 108, 108)
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ewn65")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ifv4k")
}, {
"duration": 1.0,
@@ -69,9 +72,6 @@ animations = [{
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0q8tn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_f2bes")
}],
"loop": true,
"name": &"fly",
@@ -79,6 +79,9 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_f2bes")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_albls")
}, {
"duration": 1.0,
@@ -92,9 +95,6 @@ animations = [{
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mpdbr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dy3ut")
}],
"loop": true,
"name": &"idle",
@@ -102,6 +102,9 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_dy3ut")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gi66g")
}, {
"duration": 1.0,
@@ -109,9 +112,6 @@ animations = [{
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_asxml")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pral7")
}],
"loop": true,
"name": &"walk",
+119 −0
Original line number Diff line number Diff line
[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
}]
+0 −3
Original line number Diff line number Diff line
[gd_resource type="SpriteFrames" format=3 uid="uid://1yn652crf484"]

[resource]
Loading