Compare commits

..

2 Commits

Author SHA1 Message Date
Just Dzhi a1668dc8f2 Merge branch 'main' of http://meowo.cc:3000/meowo/ld54 2023-10-01 17:56:37 +04:00
Just Dzhi 016da80a59 Player anim 2023-10-01 17:56:36 +04:00
7 changed files with 44 additions and 41 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -1,35 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/trash_can.png-0987d8f67e93f5b32fac39729f87305a.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://src/models/enemies/trash_can/sprites/trash_can.png"
dest_files=[ "res://.import/trash_can.png-0987d8f67e93f5b32fac39729f87305a.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

View File

@ -1,6 +1,6 @@
[gd_scene load_steps=8 format=2] [gd_scene load_steps=8 format=2]
[ext_resource path="res://src/models/player/sprite.png" type="Texture" id=1] [ext_resource path="res://src/models/player/sprites/player_spriteframes.tres" type="SpriteFrames" id=1]
[ext_resource path="res://src/models/player/player.gd" type="Script" id=2] [ext_resource path="res://src/models/player/player.gd" type="Script" id=2]
[ext_resource path="res://res/shaders/colorize.tres" type="Material" id=3] [ext_resource path="res://res/shaders/colorize.tres" type="Material" id=3]
@ -69,9 +69,12 @@ tracks/1/keys = {
[node name="Player" type="KinematicBody2D" groups=["player"]] [node name="Player" type="KinematicBody2D" groups=["player"]]
script = ExtResource( 2 ) script = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."] [node name="Sprite" type="AnimatedSprite" parent="."]
material = ExtResource( 3 ) material = ExtResource( 3 )
texture = ExtResource( 1 ) frames = ExtResource( 1 )
animation = "run"
frame = 2
playing = true
centered = false centered = false
[node name="WallCollision" type="CollisionShape2D" parent="."] [node name="WallCollision" type="CollisionShape2D" parent="."]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -0,0 +1,35 @@
[gd_resource type="SpriteFrames" load_steps=8 format=2]
[ext_resource path="res://src/models/player/sprites/run.png" type="Texture" id=1]
[sub_resource type="AtlasTexture" id=1]
atlas = ExtResource( 1 )
region = Rect2( 0, 0, 22, 25 )
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 1 )
region = Rect2( 22, 0, 22, 25 )
[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 1 )
region = Rect2( 44, 0, 22, 25 )
[sub_resource type="AtlasTexture" id=4]
atlas = ExtResource( 1 )
region = Rect2( 66, 0, 22, 25 )
[sub_resource type="AtlasTexture" id=5]
atlas = ExtResource( 1 )
region = Rect2( 88, 0, 22, 25 )
[sub_resource type="AtlasTexture" id=6]
atlas = ExtResource( 1 )
region = Rect2( 110, 0, 22, 25 )
[resource]
animations = [ {
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ) ],
"loop": true,
"name": "run",
"speed": 12.0
} ]

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -2,15 +2,15 @@
importer="texture" importer="texture"
type="StreamTexture" type="StreamTexture"
path="res://.import/sprite.png-d1a953a55fa409c61c2d0834450a9346.stex" path="res://.import/run.png-345781115512817e4a25318657a4c97e.stex"
metadata={ metadata={
"vram_texture": false "vram_texture": false
} }
[deps] [deps]
source_file="res://src/models/player/sprite.png" source_file="res://src/models/player/sprites/run.png"
dest_files=[ "res://.import/sprite.png-d1a953a55fa409c61c2d0834450a9346.stex" ] dest_files=[ "res://.import/run.png-345781115512817e4a25318657a4c97e.stex" ]
[params] [params]