diff --git a/player.tscn b/player.tscn new file mode 100644 index 0000000..7ad33e9 --- /dev/null +++ b/player.tscn @@ -0,0 +1,119 @@ +[gd_scene load_steps=15 format=3 uid="uid://bguqy4rmdkgcn"] + +[ext_resource type="Texture2D" uid="uid://i8naxj4e757h" path="res://sprites/CharacterSprite.png" id="1_r1rn1"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_ont3v"] +atlas = ExtResource("1_r1rn1") +region = Rect2(0, 0, 188, 188) + +[sub_resource type="AtlasTexture" id="AtlasTexture_7axox"] +atlas = ExtResource("1_r1rn1") +region = Rect2(376, 0, 188, 188) + +[sub_resource type="AtlasTexture" id="AtlasTexture_mrbs0"] +atlas = ExtResource("1_r1rn1") +region = Rect2(0, 188, 188, 188) + +[sub_resource type="AtlasTexture" id="AtlasTexture_bxq4p"] +atlas = ExtResource("1_r1rn1") +region = Rect2(188, 188, 188, 188) + +[sub_resource type="AtlasTexture" id="AtlasTexture_iumh0"] +atlas = ExtResource("1_r1rn1") +region = Rect2(376, 188, 188, 188) + +[sub_resource type="AtlasTexture" id="AtlasTexture_8b1ni"] +atlas = ExtResource("1_r1rn1") +region = Rect2(564, 188, 188, 188) + +[sub_resource type="AtlasTexture" id="AtlasTexture_0pi6b"] +atlas = ExtResource("1_r1rn1") +region = Rect2(752, 188, 188, 188) + +[sub_resource type="AtlasTexture" id="AtlasTexture_02e04"] +atlas = ExtResource("1_r1rn1") +region = Rect2(940, 188, 188, 188) + +[sub_resource type="AtlasTexture" id="AtlasTexture_spv1i"] +atlas = ExtResource("1_r1rn1") +region = Rect2(0, 376, 188, 188) + +[sub_resource type="AtlasTexture" id="AtlasTexture_y3b0m"] +atlas = ExtResource("1_r1rn1") +region = Rect2(188, 376, 188, 188) + +[sub_resource type="AtlasTexture" id="AtlasTexture_po7hs"] +atlas = ExtResource("1_r1rn1") +region = Rect2(376, 376, 188, 188) + +[sub_resource type="AtlasTexture" id="AtlasTexture_pd231"] +atlas = ExtResource("1_r1rn1") +region = Rect2(564, 376, 188, 188) + +[sub_resource type="SpriteFrames" id="SpriteFrames_q70xl"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_ont3v") +}], +"loop": true, +"name": &"falling", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_7axox") +}], +"loop": true, +"name": &"idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_mrbs0") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_bxq4p") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_iumh0") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_8b1ni") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_0pi6b") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_02e04") +}], +"loop": true, +"name": &"stand up", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_spv1i") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_y3b0m") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_po7hs") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_pd231") +}], +"loop": true, +"name": &"walking", +"speed": 5.0 +}] + +[node name="player" type="CharacterBody2D"] + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] +sprite_frames = SubResource("SpriteFrames_q70xl") +animation = &"walking" +frame_progress = 0.29238 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] diff --git a/sprites/CharacterSprite.png b/sprites/CharacterSprite.png new file mode 100644 index 0000000..9775afb Binary files /dev/null and b/sprites/CharacterSprite.png differ diff --git a/sprites/CharacterSprite.png.import b/sprites/CharacterSprite.png.import new file mode 100644 index 0000000..e69c8c2 --- /dev/null +++ b/sprites/CharacterSprite.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://i8naxj4e757h" +path="res://.godot/imported/CharacterSprite.png-6a4b1fb240ef6378b62dd091eda3afe4.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://sprites/CharacterSprite.png" +dest_files=["res://.godot/imported/CharacterSprite.png-6a4b1fb240ef6378b62dd091eda3afe4.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 diff --git a/sprites/CharacterSprite.xcf b/sprites/CharacterSprite.xcf new file mode 100644 index 0000000..5331924 Binary files /dev/null and b/sprites/CharacterSprite.xcf differ