feat: added dragon animations

This commit is contained in:
Gerard Gascón 2025-04-12 12:31:50 +02:00
parent 98e3b8a1e3
commit a3f86c015a
16 changed files with 496 additions and 15 deletions

View file

@ -0,0 +1,3 @@
[gd_resource type="SpriteFrames" format=3 uid="uid://1yn652crf484"]
[resource]

View file

@ -0,0 +1,119 @@
[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://bdri1wjc6eary"]
[ext_resource type="Texture2D" uid="uid://c0ix7r57l1swx" path="res://assets/sprites/dragons/DP_drac06_Anim.png" id="1_nmisb"]
[sub_resource type="AtlasTexture" id="AtlasTexture_vs0c3"]
atlas = ExtResource("1_nmisb")
region = Rect2(0, 216, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_wiled"]
atlas = ExtResource("1_nmisb")
region = Rect2(108, 216, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_3qimm"]
atlas = ExtResource("1_nmisb")
region = Rect2(216, 216, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_pgupe"]
atlas = ExtResource("1_nmisb")
region = Rect2(324, 216, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_nmisb"]
atlas = ExtResource("1_nmisb")
region = Rect2(0, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_ply4o"]
atlas = ExtResource("1_nmisb")
region = Rect2(108, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_uldnr"]
atlas = ExtResource("1_nmisb")
region = Rect2(216, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_cuv31"]
atlas = ExtResource("1_nmisb")
region = Rect2(324, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_68pbo"]
atlas = ExtResource("1_nmisb")
region = Rect2(432, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_sh07d"]
atlas = ExtResource("1_nmisb")
region = Rect2(540, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_qc1gi"]
atlas = ExtResource("1_nmisb")
region = Rect2(0, 108, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_58c6e"]
atlas = ExtResource("1_nmisb")
region = Rect2(108, 108, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_lvnxr"]
atlas = ExtResource("1_nmisb")
region = Rect2(216, 108, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_6ndl6"]
atlas = ExtResource("1_nmisb")
region = Rect2(324, 108, 108, 108)
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_vs0c3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wiled")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3qimm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pgupe")
}],
"loop": true,
"name": &"fly",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_nmisb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ply4o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uldnr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cuv31")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_68pbo")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_sh07d")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_qc1gi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_58c6e")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lvnxr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6ndl6")
}],
"loop": true,
"name": &"walk",
"speed": 5.0
}]

View file

@ -0,0 +1,119 @@
[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://buvaij5fn2jkk"]
[ext_resource type="Texture2D" uid="uid://blej4jyd3oup1" path="res://assets/sprites/dragons/DP_drac04_Anim.png" id="1_hgmmo"]
[sub_resource type="AtlasTexture" id="AtlasTexture_ub7hq"]
atlas = ExtResource("1_hgmmo")
region = Rect2(0, 216, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_frclk"]
atlas = ExtResource("1_hgmmo")
region = Rect2(108, 216, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_55hsi"]
atlas = ExtResource("1_hgmmo")
region = Rect2(216, 216, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_dhrkn"]
atlas = ExtResource("1_hgmmo")
region = Rect2(324, 216, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_7h6a8"]
atlas = ExtResource("1_hgmmo")
region = Rect2(0, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_hk7mw"]
atlas = ExtResource("1_hgmmo")
region = Rect2(108, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_4rwpa"]
atlas = ExtResource("1_hgmmo")
region = Rect2(216, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_p1ygt"]
atlas = ExtResource("1_hgmmo")
region = Rect2(324, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_3tl36"]
atlas = ExtResource("1_hgmmo")
region = Rect2(432, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_oqwn7"]
atlas = ExtResource("1_hgmmo")
region = Rect2(540, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_21i6q"]
atlas = ExtResource("1_hgmmo")
region = Rect2(0, 108, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_as7nj"]
atlas = ExtResource("1_hgmmo")
region = Rect2(108, 108, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_m3eui"]
atlas = ExtResource("1_hgmmo")
region = Rect2(216, 108, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_i7kqd"]
atlas = ExtResource("1_hgmmo")
region = Rect2(324, 108, 108, 108)
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ub7hq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_frclk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_55hsi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dhrkn")
}],
"loop": true,
"name": &"fly",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_7h6a8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hk7mw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4rwpa")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_p1ygt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3tl36")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_oqwn7")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_21i6q")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_as7nj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_m3eui")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_i7kqd")
}],
"loop": true,
"name": &"walk",
"speed": 5.0
}]

View file

@ -0,0 +1,119 @@
[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://chw5o81g1w8qp"]
[ext_resource type="Texture2D" uid="uid://ig3pbqrpnm7u" path="res://assets/sprites/dragons/DP_drac03_Anim.png" id="1_0rxrn"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mmj1o"]
atlas = ExtResource("1_0rxrn")
region = Rect2(0, 216, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_biwbj"]
atlas = ExtResource("1_0rxrn")
region = Rect2(108, 216, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_e86o5"]
atlas = ExtResource("1_0rxrn")
region = Rect2(216, 216, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_5exht"]
atlas = ExtResource("1_0rxrn")
region = Rect2(324, 216, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_62vta"]
atlas = ExtResource("1_0rxrn")
region = Rect2(0, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_ijluj"]
atlas = ExtResource("1_0rxrn")
region = Rect2(108, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_t186t"]
atlas = ExtResource("1_0rxrn")
region = Rect2(216, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_iei0t"]
atlas = ExtResource("1_0rxrn")
region = Rect2(324, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_u1l6v"]
atlas = ExtResource("1_0rxrn")
region = Rect2(432, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_bk2js"]
atlas = ExtResource("1_0rxrn")
region = Rect2(540, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_11k2n"]
atlas = ExtResource("1_0rxrn")
region = Rect2(0, 108, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_m3pae"]
atlas = ExtResource("1_0rxrn")
region = Rect2(108, 108, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_wfq62"]
atlas = ExtResource("1_0rxrn")
region = Rect2(216, 108, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_0yic0"]
atlas = ExtResource("1_0rxrn")
region = Rect2(324, 108, 108, 108)
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_mmj1o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_biwbj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_e86o5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5exht")
}],
"loop": true,
"name": &"fly",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_62vta")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ijluj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t186t")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_iei0t")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_u1l6v")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bk2js")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_11k2n")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_m3pae")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wfq62")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0yic0")
}],
"loop": true,
"name": &"walk",
"speed": 5.0
}]

View file

@ -0,0 +1,119 @@
[gd_resource type="SpriteFrames" load_steps=16 format=3 uid="uid://dmutxyu7jh3d6"]
[ext_resource type="Texture2D" uid="uid://d21m7gvjn7t2w" path="res://assets/sprites/dragons/DP_drac05_Anim.png" id="2_anvkt"]
[sub_resource type="AtlasTexture" id="AtlasTexture_tey01"]
atlas = ExtResource("2_anvkt")
region = Rect2(0, 216, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_e3p4x"]
atlas = ExtResource("2_anvkt")
region = Rect2(108, 216, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_kxp1n"]
atlas = ExtResource("2_anvkt")
region = Rect2(216, 216, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_c6xgx"]
atlas = ExtResource("2_anvkt")
region = Rect2(324, 216, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_anvkt"]
atlas = ExtResource("2_anvkt")
region = Rect2(0, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_r2n4o"]
atlas = ExtResource("2_anvkt")
region = Rect2(108, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_gfwqi"]
atlas = ExtResource("2_anvkt")
region = Rect2(216, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_vglir"]
atlas = ExtResource("2_anvkt")
region = Rect2(324, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_8p844"]
atlas = ExtResource("2_anvkt")
region = Rect2(432, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_6j6s6"]
atlas = ExtResource("2_anvkt")
region = Rect2(540, 0, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_yy5o8"]
atlas = ExtResource("2_anvkt")
region = Rect2(0, 108, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_df7rw"]
atlas = ExtResource("2_anvkt")
region = Rect2(108, 108, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_j0r56"]
atlas = ExtResource("2_anvkt")
region = Rect2(216, 108, 108, 108)
[sub_resource type="AtlasTexture" id="AtlasTexture_vkmfp"]
atlas = ExtResource("2_anvkt")
region = Rect2(324, 108, 108, 108)
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_tey01")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_e3p4x")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kxp1n")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_c6xgx")
}],
"loop": true,
"name": &"fly",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_anvkt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_r2n4o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gfwqi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vglir")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8p844")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6j6s6")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_yy5o8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_df7rw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_j0r56")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vkmfp")
}],
"loop": true,
"name": &"walk",
"speed": 5.0
}]

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -2,16 +2,16 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://c4l1h6ecobnsu"
path="res://.godot/imported/DragonPet_drac03.png-4c0df3b4fcbc1020139df5f2df1408f0.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_drac03.png"
dest_files=["res://.godot/imported/DragonPet_drac03.png-4c0df3b4fcbc1020139df5f2df1408f0.ctex"]
source_file="res://assets/sprites/dragons/DP_drac04_Anim.png"
dest_files=["res://.godot/imported/DP_drac04_Anim.png-de055384305dd558c2c7e3596141d96e.ctex"]
[params]

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -2,16 +2,16 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://dl87ffgh2hl68"
path="res://.godot/imported/DragonPet_drac01.png-225ecd48e88f7c99a74b06cb880c2607.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_drac01.png"
dest_files=["res://.godot/imported/DragonPet_drac01.png-225ecd48e88f7c99a74b06cb880c2607.ctex"]
source_file="res://assets/sprites/dragons/DP_drac05_Anim.png"
dest_files=["res://.godot/imported/DP_drac05_Anim.png-b6d51be0ef5b910bc705667114108142.ctex"]
[params]

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -2,16 +2,16 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://davsy68qknywo"
path="res://.godot/imported/DragonPet_drac02.png-529be99ec19decf574a0f3715e12aee4.ctex"
uid="uid://c0ix7r57l1swx"
path="res://.godot/imported/DP_drac06_Anim.png-43a5cb7feec3d3315477e7e9e121b3b7.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/dragons/DP_drac06_Anim.png"
dest_files=["res://.godot/imported/DP_drac06_Anim.png-43a5cb7feec3d3315477e7e9e121b3b7.ctex"]
[params]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -2,18 +2,20 @@
[ext_resource type="Script" uid="uid://bjiap06gs02j" path="res://scenes/dragons/dragon_sprite.gd" id="1_oaoux"]
[ext_resource type="Resource" uid="uid://cnhwn6kfcbjl5" path="res://assets/outfits/hats.tres" id="2_mxc00"]
[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="Resource" uid="uid://etegcak2sphs" path="res://assets/outfits/shirts.tres" id="3_umqeb"]
[ext_resource type="Resource" uid="uid://ba5684xylts3f" path="res://assets/outfits/shoes.tres" id="4_7b2ll"]
[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="Resource" uid="uid://bcs60f2k7h0jc" path="res://assets/outfits/dragons.tres" id="5_x2k4p"]
[ext_resource type="SpriteFrames" uid="uid://4cm7picl2gvs" path="res://assets/animations/dragon_green.tres" id="6_yf7bj"]
[ext_resource type="SpriteFrames" uid="uid://4cm7picl2gvs" path="res://assets/animations/dragons/dragon_green.tres" id="6_yf7bj"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_oaoux"]
size = Vector2(76, 88)
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_f0h1k"]
load_path = "res://.godot/imported/DragonPet_drac01.png-225ecd48e88f7c99a74b06cb880c2607.ctex"
[node name="Dragon" type="Node2D" node_paths=PackedStringArray("hat", "shirt", "decor", "color")]
script = ExtResource("1_oaoux")
hat = NodePath("Sprite/Hat")
@ -33,7 +35,7 @@ shape = SubResource("RectangleShape2D_oaoux")
[node name="Sprite" type="Sprite2D" parent="."]
position = Vector2(38, 44)
texture = ExtResource("2_oaoux")
texture = SubResource("CompressedTexture2D_f0h1k")
[node name="Hat" type="Sprite2D" parent="Sprite"]
texture = ExtResource("3_oaoux")