51 lines
1.5 KiB
Text
51 lines
1.5 KiB
Text
[gd_scene load_steps=8 format=3 uid="uid://ckfhsdod4ghug"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://cj2a3ls4jlkjk" path="res://art/playerGrey_up1.png" id="1_fur7b"]
|
|
[ext_resource type="Script" path="res://Player.gd" id="1_t1lbd"]
|
|
[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"]
|
|
position = Vector2(98, 106)
|
|
script = ExtResource("1_t1lbd")
|
|
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")
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|