Background character and enemy

This commit is contained in:
2024-10-26 11:32:56 +02:00
parent 706c85338a
commit f55a15e24e
89 changed files with 1616 additions and 0 deletions

72
scenes/player.tscn Normal file
View File

@ -0,0 +1,72 @@
[gd_scene load_steps=11 format=3 uid="uid://c3i6a6ji8i1q8"]
[ext_resource type="Texture2D" uid="uid://dl1pu82xwqw3m" path="res://sprites/characters/player.png" id="1_6xeiv"]
[ext_resource type="Script" path="res://scripts/playerscript.gd" id="1_sty7f"]
[sub_resource type="AtlasTexture" id="AtlasTexture_0xuex"]
atlas = ExtResource("1_6xeiv")
region = Rect2(16, 22, 16, 22)
[sub_resource type="AtlasTexture" id="AtlasTexture_xrgwn"]
atlas = ExtResource("1_6xeiv")
region = Rect2(64, 22, 16, 22)
[sub_resource type="AtlasTexture" id="AtlasTexture_2b67c"]
atlas = ExtResource("1_6xeiv")
region = Rect2(112, 22, 16, 22)
[sub_resource type="AtlasTexture" id="AtlasTexture_tq7ih"]
atlas = ExtResource("1_6xeiv")
region = Rect2(160, 22, 16, 22)
[sub_resource type="AtlasTexture" id="AtlasTexture_g88tw"]
atlas = ExtResource("1_6xeiv")
region = Rect2(208, 22, 16, 22)
[sub_resource type="AtlasTexture" id="AtlasTexture_w0a6x"]
atlas = ExtResource("1_6xeiv")
region = Rect2(256, 22, 16, 22)
[sub_resource type="SpriteFrames" id="SpriteFrames_gatfb"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_0xuex")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xrgwn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2b67c")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tq7ih")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g88tw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_w0a6x")
}],
"loop": true,
"name": &"idle",
"speed": 15.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_4lp1q"]
radius = 5.0
height = 18.0
[node name="player" type="CharacterBody2D"]
script = ExtResource("1_sty7f")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(0, -8)
sprite_frames = SubResource("SpriteFrames_gatfb")
animation = &"idle"
autoplay = "idle"
frame_progress = 0.0176069
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -9)
shape = SubResource("CapsuleShape2D_4lp1q")