dodge-the-creeps/Scenes/Player.tscn

52 lines
1.5 KiB
Text
Raw Normal View History

2024-02-20 18:56:39 +03:00
[gd_scene load_steps=8 format=3 uid="uid://crjb0i1rbk4uc"]
[ext_resource type="Script" path="res://Scripts/Player.gd" id="1_4wya0"]
[ext_resource type="Texture2D" uid="uid://nds5sm5auoqq" path="res://Assets/Art/playerGrey_up1.png" id="1_imnpc"]
[ext_resource type="Texture2D" uid="uid://cd3g16yyhsjl5" path="res://Assets/Art/playerGrey_up2.png" id="2_s3d58"]
[ext_resource type="Texture2D" uid="uid://cwtobikm2wo88" path="res://Assets/Art/playerGrey_walk1.png" id="3_pj2oi"]
[ext_resource type="Texture2D" uid="uid://b5bi75t4sll0q" path="res://Assets/Art/playerGrey_walk2.png" id="4_oefjy"]
[sub_resource type="SpriteFrames" id="SpriteFrames_5pe4i"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_imnpc")
}, {
"duration": 1.0,
"texture": ExtResource("2_s3d58")
}],
"loop": true,
"name": &"up",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_pj2oi")
}, {
"duration": 1.0,
"texture": ExtResource("4_oefjy")
}],
"loop": true,
"name": &"walk",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_8ityq"]
radius = 27.0
height = 68.0
[node name="Player" type="Area2D"]
script = ExtResource("1_4wya0")
metadata/_edit_group_ = true
[node name="Sprite" type="AnimatedSprite2D" parent="."]
scale = Vector2(0.5, 0.5)
sprite_frames = SubResource("SpriteFrames_5pe4i")
animation = &"walk"
frame_progress = 0.556076
[node name="Shape" type="CollisionShape2D" parent="."]
shape = SubResource("CapsuleShape2D_8ityq")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]