-
Notifications
You must be signed in to change notification settings - Fork 0
/
player.tscn
51 lines (44 loc) · 1.52 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
50
51
[gd_scene load_steps=8 format=3 uid="uid://b23ksgv7hj16k"]
[ext_resource type="Script" path="res://player.gd" id="1_c36fd"]
[ext_resource type="Texture2D" uid="uid://b8b2q8b7tkqe" path="res://art/playerGrey_up1.png" id="1_sg4tp"]
[ext_resource type="Texture2D" uid="uid://c1xadw7gqorcg" path="res://art/playerGrey_up2.png" id="2_qn8kw"]
[ext_resource type="Texture2D" uid="uid://bqyvn7gb5p65s" path="res://art/playerGrey_walk1.png" id="3_rjaqn"]
[ext_resource type="Texture2D" uid="uid://c7l0yx6pfsa18" path="res://art/playerGrey_walk2.png" id="4_68kpp"]
[sub_resource type="SpriteFrames" id="SpriteFrames_aehxf"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_sg4tp")
}, {
"duration": 1.0,
"texture": ExtResource("2_qn8kw")
}],
"loop": true,
"name": &"up",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_rjaqn")
}, {
"duration": 1.0,
"texture": ExtResource("4_68kpp")
}],
"loop": true,
"name": &"walk",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_sng3d"]
radius = 25.0
height = 64.0
[node name="Player" type="Area2D"]
script = ExtResource("1_c36fd")
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
modulate = Color(0.968627, 0.341176, 1, 1)
scale = Vector2(0.5, 0.5)
sprite_frames = SubResource("SpriteFrames_aehxf")
animation = &"walk"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CapsuleShape2D_sng3d")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]