Added floating animation

This commit is contained in:
theskywinds 2025-05-17 18:46:57 +02:00
parent 6132e5600d
commit 9973d48041
19 changed files with 22 additions and 60 deletions

View File

@ -1,16 +1,15 @@
[gd_scene load_steps=15 format=3 uid="uid://tpe1cb4ucx0b"]
[gd_scene load_steps=14 format=3 uid="uid://tpe1cb4ucx0b"]
[ext_resource type="Texture2D" uid="uid://b8l378t64365q" path="res://playerSprite.png" id="1_4flbx"]
[ext_resource type="Texture2D" uid="uid://cgls65agualgs" path="res://playerSprites/playerSprite_0001.png" id="2_nvl01"]
[ext_resource type="Texture2D" uid="uid://bmh0heje40ykd" path="res://playerSprites/playerSprite_0002.png" id="3_ivps1"]
[ext_resource type="Texture2D" uid="uid://bao85imrx0f03" path="res://playerSprites/playerSprite_0003.png" id="4_urp6f"]
[ext_resource type="Texture2D" uid="uid://c6cl0gxxi0qit" path="res://playerSprites/playerSprite_0004.png" id="5_bwjto"]
[ext_resource type="Texture2D" uid="uid://b17ier27c0rl3" path="res://playerSprites/playerSprite_0005.png" id="6_606se"]
[ext_resource type="Texture2D" uid="uid://conrfwtlx2efh" path="res://playerSprites/playerSprite_0006.png" id="7_u1c27"]
[ext_resource type="Texture2D" uid="uid://dr02wvaqua2bn" path="res://playerSprites/playerSprite_0007.png" id="8_op7ga"]
[ext_resource type="Texture2D" uid="uid://d6fs7c2vhkrp" path="res://playerSprites/playerSprite_0008.png" id="9_q13i1"]
[ext_resource type="Texture2D" uid="uid://drob7tjjr8w2g" path="res://playerSprites/playerSprite_0009.png" id="10_pylmc"]
[ext_resource type="Texture2D" uid="uid://c4aoelxphmcvo" path="res://playerSprites/playerSprite_0010.png" id="11_pbfsw"]
[ext_resource type="Texture2D" uid="uid://dimdd34ldpix5" path="res://playerSprites/playerSprite_0001.png" id="2_nvl01"]
[ext_resource type="Texture2D" uid="uid://cmga6fl4uer1m" path="res://playerSprites/playerSprite_0002.png" id="3_ivps1"]
[ext_resource type="Texture2D" uid="uid://cw0ntcoynkr0w" path="res://playerSprites/playerSprite_0003.png" id="4_urp6f"]
[ext_resource type="Texture2D" uid="uid://dt3rv4x30n4ru" path="res://playerSprites/playerSprite_0004.png" id="5_bwjto"]
[ext_resource type="Texture2D" uid="uid://bvnodga8epycb" path="res://playerSprites/playerSprite_0005.png" id="6_606se"]
[ext_resource type="Texture2D" uid="uid://d5qpoa8wadrp" path="res://playerSprites/playerSprite_0006.png" id="7_u1c27"]
[ext_resource type="Texture2D" uid="uid://jfhpkm78lqyx" path="res://playerSprites/playerSprite_0007.png" id="8_op7ga"]
[ext_resource type="Texture2D" uid="uid://jssqmb4832pr" path="res://playerSprites/playerSprite_0008.png" id="9_q13i1"]
[ext_resource type="Texture2D" uid="uid://dxeg6715vly1v" path="res://playerSprites/playerSprite_0009.png" id="10_pylmc"]
[ext_resource type="Texture2D" uid="uid://b8eut6fnru722" path="res://playerSprites/playerSprite_0010.png" id="11_pbfsw"]
[sub_resource type="GDScript" id="GDScript_4flbx"]
resource_name = "movementScript"
@ -31,9 +30,6 @@ func _physics_process(delta: float) -> void:
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_4flbx")
}, {
"duration": 1.0,
"texture": ExtResource("2_nvl01")
}, {
"duration": 1.0,
@ -78,7 +74,7 @@ script = SubResource("GDScript_4flbx")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_onrkg")
autoplay = "default"
frame_progress = 0.796774
frame_progress = 0.910845
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_i3pqv")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 829 B

View File

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cusdtoyr8nlq7"
path="res://.godot/imported/playerSprite.png-e4aafc57398a68d6c57ac75d374809b6.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://playerSprites/playerSprite.png"
dest_files=["res://.godot/imported/playerSprite.png-e4aafc57398a68d6c57ac75d374809b6.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

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://cgls65agualgs"
uid="uid://dimdd34ldpix5"
path="res://.godot/imported/playerSprite_0001.png-da00a24ab6ecb089d99d0918f421520e.ctex"
metadata={
"vram_texture": false

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://bmh0heje40ykd"
uid="uid://cmga6fl4uer1m"
path="res://.godot/imported/playerSprite_0002.png-06b470b982640789aa7a8587da3f0db7.ctex"
metadata={
"vram_texture": false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 887 B

After

Width:  |  Height:  |  Size: 887 B

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://bao85imrx0f03"
uid="uid://cw0ntcoynkr0w"
path="res://.godot/imported/playerSprite_0003.png-9964678ded3d0f1fe1cd89f17d6c1916.ctex"
metadata={
"vram_texture": false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 935 B

After

Width:  |  Height:  |  Size: 937 B

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://c6cl0gxxi0qit"
uid="uid://dt3rv4x30n4ru"
path="res://.godot/imported/playerSprite_0004.png-b7e47d56969f878647f3575ce9193664.ctex"
metadata={
"vram_texture": false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1020 B

After

Width:  |  Height:  |  Size: 1019 B

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://b17ier27c0rl3"
uid="uid://bvnodga8epycb"
path="res://.godot/imported/playerSprite_0005.png-b8032d23925b2eab664808e1a25dbc3f.ctex"
metadata={
"vram_texture": false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://conrfwtlx2efh"
uid="uid://d5qpoa8wadrp"
path="res://.godot/imported/playerSprite_0006.png-2d97d9849e1856c513243b9bd86c14fd.ctex"
metadata={
"vram_texture": false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1020 B

After

Width:  |  Height:  |  Size: 1022 B

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://dr02wvaqua2bn"
uid="uid://jfhpkm78lqyx"
path="res://.godot/imported/playerSprite_0007.png-7d8c43827cedaf36aca375d2af32217d.ctex"
metadata={
"vram_texture": false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 935 B

After

Width:  |  Height:  |  Size: 937 B

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://d6fs7c2vhkrp"
uid="uid://jssqmb4832pr"
path="res://.godot/imported/playerSprite_0008.png-b250779bffb839557389dbcb341e711e.ctex"
metadata={
"vram_texture": false

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://drob7tjjr8w2g"
uid="uid://dxeg6715vly1v"
path="res://.godot/imported/playerSprite_0009.png-90ec5e73d17ac38495b5dea9727bd0d2.ctex"
metadata={
"vram_texture": false

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://c4aoelxphmcvo"
uid="uid://b8eut6fnru722"
path="res://.godot/imported/playerSprite_0010.png-03e90516b17a49e251e9001cb184a1c6.ctex"
metadata={
"vram_texture": false