Finish player_scene of first 2D game

This commit is contained in:
Daniel Siepmann 2024-03-26 11:35:03 +01:00
parent 09876f57dd
commit c64931fd86
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

46
first_2d_game/Player.tscn Normal file
View file

@ -0,0 +1,46 @@
[gd_scene load_steps=7 format=3 uid="uid://ckfhsdod4ghug"]
[ext_resource type="Texture2D" uid="uid://cj2a3ls4jlkjk" path="res://art/playerGrey_up1.png" id="1_fur7b"]
[ext_resource type="Texture2D" uid="uid://cx65oby2yhlus" path="res://art/playerGrey_up2.png" id="2_vhw1d"]
[ext_resource type="Texture2D" uid="uid://d05l3yu0vp17w" path="res://art/playerGrey_walk1.png" id="3_wjp5t"]
[ext_resource type="Texture2D" uid="uid://c2ndsc14p6skg" path="res://art/playerGrey_walk2.png" id="4_bmoxy"]
[sub_resource type="SpriteFrames" id="SpriteFrames_igb4f"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_fur7b")
}, {
"duration": 1.0,
"texture": ExtResource("2_vhw1d")
}],
"loop": true,
"name": &"up",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_wjp5t")
}, {
"duration": 1.0,
"texture": ExtResource("4_bmoxy")
}],
"loop": true,
"name": &"walk",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_lftd4"]
radius = 27.0
height = 68.0
[node name="Player" type="Area2D"]
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
scale = Vector2(0.5, 0.5)
sprite_frames = SubResource("SpriteFrames_igb4f")
animation = &"walk"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CapsuleShape2D_lftd4")