add animation

This commit is contained in:
2025-08-03 18:35:52 +04:00
parent 2589f9f73f
commit 7951a42c88
14 changed files with 305 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cowabod6jrn47"
path="res://.godot/imported/Skeleton Attack.png-049662b12bed4ec69aa7828712b2b871.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://resources/animated sprite/Skeleton Sprite/Skeleton Attack.png"
dest_files=["res://.godot/imported/Skeleton Attack.png-049662b12bed4ec69aa7828712b2b871.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: 2.4 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://660wqxgwh8dr"
path="res://.godot/imported/Skeleton Dead.png-d7a83435b157e05a1d13265f37b1daa6.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://resources/animated sprite/Skeleton Sprite/Skeleton Dead.png"
dest_files=["res://.godot/imported/Skeleton Dead.png-d7a83435b157e05a1d13265f37b1daa6.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: 1.6 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://btfjyc4jfhiii"
path="res://.godot/imported/Skeleton Hit.png-1c1b2b67a260111c2ac7c3f48618da2e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://resources/animated sprite/Skeleton Sprite/Skeleton Hit.png"
dest_files=["res://.godot/imported/Skeleton Hit.png-1c1b2b67a260111c2ac7c3f48618da2e.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: 1.3 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bcr4bokw87m5n"
path="res://.godot/imported/Skeleton Idle.png-3aae60d292addc7af911333cb2fced6a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://resources/animated sprite/Skeleton Sprite/Skeleton Idle.png"
dest_files=["res://.godot/imported/Skeleton Idle.png-3aae60d292addc7af911333cb2fced6a.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: 673 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cuo2o785qopo3"
path="res://.godot/imported/Skeleton React.png-e4462e4ebc0bd8edc6e0657880709951.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://resources/animated sprite/Skeleton Sprite/Skeleton React.png"
dest_files=["res://.godot/imported/Skeleton React.png-e4462e4ebc0bd8edc6e0657880709951.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: 1.8 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b0dqy1at078ct"
path="res://.godot/imported/Skeleton Walk.png-8ad85ceee01590d6218dedb5245e9634.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://resources/animated sprite/Skeleton Sprite/Skeleton Walk.png"
dest_files=["res://.godot/imported/Skeleton Walk.png-8ad85ceee01590d6218dedb5245e9634.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

@@ -5,3 +5,5 @@
commonUrl: https://freesound.org/people/SilverDubloons/sounds/817587/ commonUrl: https://freesound.org/people/SilverDubloons/sounds/817587/
- fileName: resources/textures/beanstalk-dark.webp - fileName: resources/textures/beanstalk-dark.webp
commonUrl: https://www.toptal.com/designers/subtlepatterns/beanstalk-dark-pattern/ commonUrl: https://www.toptal.com/designers/subtlepatterns/beanstalk-dark-pattern/
- fileName: resources/animated sprite/Skeleton Sprite
commonUrl: https://jesse-m.itch.io/skeleton-pack

View File

@@ -1,6 +1,92 @@
[gd_scene load_steps=2 format=3 uid="uid://gbe1jarrwqsi"] [gd_scene load_steps=15 format=3 uid="uid://gbe1jarrwqsi"]
[ext_resource type="Script" uid="uid://buak21ajgvevl" path="res://scripts/PressAnyKeyScreen.gd" id="1_0a4p2"] [ext_resource type="Script" uid="uid://buak21ajgvevl" path="res://scripts/PressAnyKeyScreen.gd" id="1_0a4p2"]
[ext_resource type="Texture2D" uid="uid://bcr4bokw87m5n" path="res://resources/animated sprite/Skeleton Sprite/Skeleton Idle.png" id="2_rjjcb"]
[sub_resource type="AtlasTexture" id="AtlasTexture_l6pue"]
atlas = ExtResource("2_rjjcb")
region = Rect2(0, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_3h5mc"]
atlas = ExtResource("2_rjjcb")
region = Rect2(24, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_gqpp5"]
atlas = ExtResource("2_rjjcb")
region = Rect2(48, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ff5uo"]
atlas = ExtResource("2_rjjcb")
region = Rect2(72, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_e7oxa"]
atlas = ExtResource("2_rjjcb")
region = Rect2(96, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_urgkb"]
atlas = ExtResource("2_rjjcb")
region = Rect2(120, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_xfg50"]
atlas = ExtResource("2_rjjcb")
region = Rect2(144, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_sy0v8"]
atlas = ExtResource("2_rjjcb")
region = Rect2(168, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_kfv8w"]
atlas = ExtResource("2_rjjcb")
region = Rect2(192, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_lvvje"]
atlas = ExtResource("2_rjjcb")
region = Rect2(216, 0, 24, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_vvh7w"]
atlas = ExtResource("2_rjjcb")
region = Rect2(240, 0, 24, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_wtrhp"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_l6pue")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3h5mc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gqpp5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ff5uo")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_e7oxa")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_urgkb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xfg50")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_sy0v8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kfv8w")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lvvje")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vvh7w")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[node name="PressAnyKeyScreen" type="Control" groups=["localizable"]] [node name="PressAnyKeyScreen" type="Control" groups=["localizable"]]
layout_mode = 3 layout_mode = 3
@@ -35,6 +121,18 @@ grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
metadata/_edit_use_anchors_ = true metadata/_edit_use_anchors_ = true
[node name="AspectRatioContainer" type="AspectRatioContainer" parent="PressKeyContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 0
alignment_horizontal = 0
alignment_vertical = 0
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="PressKeyContainer/AspectRatioContainer"]
sprite_frames = SubResource("SpriteFrames_wtrhp")
autoplay = "default"
offset = Vector2(0, -30)
[node name="TitleLabel" type="Label" parent="PressKeyContainer"] [node name="TitleLabel" type="Label" parent="PressKeyContainer"]
layout_mode = 2 layout_mode = 2
text = "Skelly" text = "Skelly"