-
Notifications
You must be signed in to change notification settings - Fork 0
/
player.tscn
49 lines (42 loc) · 1.45 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
45
46
47
48
49
[gd_scene load_steps=8 format=3 uid="uid://8tsprmv60pxi"]
[ext_resource type="Texture2D" uid="uid://c4sh53fv7c4fe" path="res://art/playerGrey_up1.png" id="1_5ooup"]
[ext_resource type="Script" path="res://player.gd" id="1_nbo81"]
[ext_resource type="Texture2D" uid="uid://3xhk4qgxjhw0" path="res://art/playerGrey_up2.png" id="2_7uipo"]
[ext_resource type="Texture2D" uid="uid://dt2ql7ue5oble" path="res://art/playerGrey_walk1.png" id="3_msdej"]
[ext_resource type="Texture2D" uid="uid://bpqy3bodypax5" path="res://art/playerGrey_walk2.png" id="4_cg615"]
[sub_resource type="SpriteFrames" id="SpriteFrames_ne2ld"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_5ooup")
}, {
"duration": 1.0,
"texture": ExtResource("2_7uipo")
}],
"loop": true,
"name": &"up",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_msdej")
}, {
"duration": 1.0,
"texture": ExtResource("4_cg615")
}],
"loop": true,
"name": &"walk",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_s0aif"]
radius = 27.0
height = 70.0
[node name="Player" type="Area2D"]
script = ExtResource("1_nbo81")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
scale = Vector2(0.5, 0.5)
sprite_frames = SubResource("SpriteFrames_ne2ld")
animation = &"walk"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CapsuleShape2D_s0aif")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]