feat: animations working

This commit is contained in:
Gerard Gascón 2025-04-12 17:12:04 +02:00
parent 2a9e824a9e
commit 2445a71f0c
63 changed files with 3023 additions and 1408 deletions

View file

@ -1,32 +1,32 @@
[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,9 +62,23 @@ 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_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,
@ -72,20 +86,6 @@ animations = [{
}, {
"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")