51 lines
1.5 KiB
Plaintext
51 lines
1.5 KiB
Plaintext
[gd_scene load_steps=8 format=3 uid="uid://d00fo6b251wcw"]
|
|
|
|
[ext_resource type="Script" path="res://Player.cs" id="1_mgaa1"]
|
|
[ext_resource type="Texture2D" uid="uid://db6mab25aal6q" path="res://art/playerGrey_up1.png" id="2_32w0g"]
|
|
[ext_resource type="Texture2D" uid="uid://b8kh0buu0upig" path="res://art/playerGrey_up2.png" id="3_el3c6"]
|
|
[ext_resource type="Texture2D" uid="uid://c5ur1y2mkttva" path="res://art/playerGrey_walk1.png" id="4_eu144"]
|
|
[ext_resource type="Texture2D" uid="uid://ddsx0k2fxid2s" path="res://art/playerGrey_walk2.png" id="5_jefcq"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_3elgu"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_32w0g")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_el3c6")
|
|
}],
|
|
"loop": true,
|
|
"name": &"up",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_eu144")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("5_jefcq")
|
|
}],
|
|
"loop": true,
|
|
"name": &"walk",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_ebpgb"]
|
|
radius = 27.0
|
|
height = 68.0
|
|
|
|
[node name="Player" type="Area2D"]
|
|
script = ExtResource("1_mgaa1")
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
scale = Vector2(0.5, 0.5)
|
|
sprite_frames = SubResource("SpriteFrames_3elgu")
|
|
animation = &"up"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CapsuleShape2D_ebpgb")
|
|
|
|
[connection signal="body_entered" from="." to="." method="OnBodyEntered"]
|