Added Character including Sprites

Signed-off-by: Adrian Pegler <adrian.pegler@mail.de>
master
Adrian Pegler 2024-07-11 10:06:23 +02:00
parent 036b6575b8
commit d394279be2
4 changed files with 153 additions and 0 deletions

119
player.tscn Normal file
View File

@ -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="."]

BIN
sprites/CharacterSprite.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

View File

@ -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

BIN
sprites/CharacterSprite.xcf Normal file

Binary file not shown.