-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer.tscn
44 lines (37 loc) · 1.23 KB
/
player.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[gd_scene load_steps=6 format=3 uid="uid://dxvii0preo332"]
[ext_resource type="Script" path="res://player.gd" id="1_s7jf8"]
[ext_resource type="Texture2D" uid="uid://p4gr4jfo442t" path="res://art/playerGrey_walk[1-2].png" id="2_xi3pw"]
[ext_resource type="Texture2D" uid="uid://dpxojfqdrurt8" path="res://art/playerGrey_walk[2-2].png" id="3_1q6hp"]
[sub_resource type="SpriteFrames" id="SpriteFrames_co62y"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_xi3pw")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_1q6hp")
}, {
"duration": 1.0,
"texture": ExtResource("2_xi3pw")
}],
"loop": true,
"name": &"walk",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_oonrx"]
[node name="Player" type="Area2D"]
script = ExtResource("1_s7jf8")
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
scale = Vector2(0.5, 0.5)
sprite_frames = SubResource("SpriteFrames_co62y")
animation = &"walk"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
scale = Vector2(3.25, 3.25)
shape = SubResource("CapsuleShape2D_oonrx")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]