feat: added first animations

This commit is contained in:
Gerard Gascón 2025-04-11 11:33:29 +02:00
parent ac57671737
commit 8e93ec5db9
8 changed files with 230 additions and 1 deletions

View file

@ -0,0 +1,119 @@
[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
}]

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://f4c3ib4p7gcy"
path="res://.godot/imported/DP_drac01_Anim.png-60a5ddf1e97cde6f7f2625d93373df40.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/sprites/dragons/DP_drac01_Anim.png"
dest_files=["res://.godot/imported/DP_drac01_Anim.png-60a5ddf1e97cde6f7f2625d93373df40.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://clp02nlyac2g8"
path="res://.godot/imported/DP_drac02_Anim.png-70db6510895342f569c493135dca104e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/sprites/dragons/DP_drac02_Anim.png"
dest_files=["res://.godot/imported/DP_drac02_Anim.png-70db6510895342f569c493135dca104e.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 9 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ig3pbqrpnm7u"
path="res://.godot/imported/DP_drac03_Anim.png-79cff0a97c84dce7285ce35af0b23534.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/sprites/dragons/DP_drac03_Anim.png"
dest_files=["res://.godot/imported/DP_drac03_Anim.png-79cff0a97c84dce7285ce35af0b23534.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

View file

@ -1,10 +1,11 @@
[gd_scene load_steps=7 format=3 uid="uid://baa8gpicw2yg0"]
[gd_scene load_steps=8 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"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_oaoux"]
size = Vector2(76, 88)
@ -34,5 +35,12 @@ texture = ExtResource("4_oaoux")
[node name="Shoes" type="Sprite2D" parent="Sprite"]
texture = ExtResource("5_stf6f")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(36, 34)
sprite_frames = ExtResource("6_yf7bj")
animation = &"idle"
autoplay = "idle"
frame_progress = 0.467887
[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"]