diff --git a/resources/sprites/saffron.png b/resources/sprites/saffron.png new file mode 100644 index 0000000..fea978e Binary files /dev/null and b/resources/sprites/saffron.png differ diff --git a/resources/sprites/saffron.png.import b/resources/sprites/saffron.png.import new file mode 100644 index 0000000..0d016af --- /dev/null +++ b/resources/sprites/saffron.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b8ptokcqwpdud" +path="res://.godot/imported/saffron.png-08618f643ff841fee63c702137c759b3.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://resources/sprites/saffron.png" +dest_files=["res://.godot/imported/saffron.png-08618f643ff841fee63c702137c759b3.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +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/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +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/scenes/Player.tscn b/scenes/Player.tscn new file mode 100644 index 0000000..3036663 --- /dev/null +++ b/scenes/Player.tscn @@ -0,0 +1,140 @@ +[gd_scene load_steps=17 format=3 uid="uid://642nm6c4mpxx"] + +[ext_resource type="Script" uid="uid://rdqmsvofiots" path="res://scenes/player.gd" id="1_v6fml"] +[ext_resource type="Texture2D" uid="uid://b8ptokcqwpdud" path="res://resources/sprites/saffron.png" id="2_3li8b"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_g2els"] +atlas = ExtResource("2_3li8b") +region = Rect2(0, 64, 24, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_qhqgy"] +atlas = ExtResource("2_3li8b") +region = Rect2(24, 64, 24, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_dqkch"] +atlas = ExtResource("2_3li8b") +region = Rect2(48, 64, 24, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_qlg0r"] +atlas = ExtResource("2_3li8b") +region = Rect2(0, 96, 24, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_tuyoq"] +atlas = ExtResource("2_3li8b") +region = Rect2(24, 96, 24, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_fjrip"] +atlas = ExtResource("2_3li8b") +region = Rect2(48, 96, 24, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_smehm"] +atlas = ExtResource("2_3li8b") +region = Rect2(0, 32, 24, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ur7pv"] +atlas = ExtResource("2_3li8b") +region = Rect2(24, 32, 24, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_y4r1p"] +atlas = ExtResource("2_3li8b") +region = Rect2(48, 32, 24, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_d2wvv"] +atlas = ExtResource("2_3li8b") +region = Rect2(48, 0, 24, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_3v2ag"] +atlas = ExtResource("2_3li8b") +region = Rect2(24, 0, 24, 32) + +[sub_resource type="AtlasTexture" id="AtlasTexture_jej6c"] +atlas = ExtResource("2_3li8b") +region = Rect2(0, 0, 24, 32) + +[sub_resource type="SpriteFrames" id="SpriteFrames_f1ej7"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_g2els") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_qhqgy") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_dqkch") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_qhqgy") +}], +"loop": true, +"name": &"down", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_qlg0r") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_tuyoq") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_fjrip") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_tuyoq") +}], +"loop": true, +"name": &"left", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_smehm") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ur7pv") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_y4r1p") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ur7pv") +}], +"loop": true, +"name": &"right", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_d2wvv") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_3v2ag") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_jej6c") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_3v2ag") +}], +"loop": true, +"name": &"up", +"speed": 5.0 +}] + +[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_oprun"] +radius = 5.0 +height = 16.0 + +[node name="Player" type="CharacterBody2D"] +script = ExtResource("1_v6fml") + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] +sprite_frames = SubResource("SpriteFrames_f1ej7") +animation = &"down" +frame_progress = 0.29168898 +offset = Vector2(0, -16) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +position = Vector2(0, -8) +shape = SubResource("CapsuleShape2D_oprun")