-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer.tscn
100 lines (90 loc) · 3.44 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
[gd_scene load_steps=17 format=3 uid="uid://y3gu5hodxly3"]
[ext_resource type="Script" path="res://player.gd" id="1_e32xx"]
[ext_resource type="Texture2D" uid="uid://cbto6du6xfmpw" path="res://assets/player/hurt/player-hurt-1.png" id="1_xjy8o"]
[ext_resource type="Texture2D" uid="uid://bi21ok5qq8nq5" path="res://assets/player/hurt/player-hurt-2.png" id="2_o5g7j"]
[ext_resource type="Texture2D" uid="uid://xdus3voo8tfw" path="res://assets/player/idle/player-idle-1.png" id="3_ypmd7"]
[ext_resource type="Texture2D" uid="uid://cscatts446v4d" path="res://assets/player/idle/player-idle-2.png" id="4_2ch82"]
[ext_resource type="Texture2D" uid="uid://co4m6xl4wqsyc" path="res://assets/player/idle/player-idle-3.png" id="5_7mmyl"]
[ext_resource type="Texture2D" uid="uid://d048sqn63b8dw" path="res://assets/player/idle/player-idle-4.png" id="6_lmjoo"]
[ext_resource type="Texture2D" uid="uid://dy6nvykwsloqt" path="res://assets/player/run/player-run-1.png" id="7_lqfk1"]
[ext_resource type="Texture2D" uid="uid://4lf73g2mufgm" path="res://assets/player/run/player-run-2.png" id="8_hwknc"]
[ext_resource type="Texture2D" uid="uid://bs03ufg6fcv1s" path="res://assets/player/run/player-run-3.png" id="9_mlior"]
[ext_resource type="Texture2D" uid="uid://bki46o174wrlx" path="res://assets/player/run/player-run-4.png" id="10_o541o"]
[ext_resource type="Texture2D" uid="uid://82671pwr8g1" path="res://assets/player/run/player-run-5.png" id="11_oi1tx"]
[ext_resource type="Texture2D" uid="uid://r8j1s02xeaur" path="res://assets/player/run/player-run-6.png" id="12_6rjce"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_fs8yi"]
size = Vector2(58, 51)
[sub_resource type="SpriteFrames" id="SpriteFrames_xvahn"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_xjy8o")
}, {
"duration": 1.0,
"texture": ExtResource("2_o5g7j")
}],
"loop": true,
"name": &"hurt",
"speed": 8.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_ypmd7")
}, {
"duration": 1.0,
"texture": ExtResource("4_2ch82")
}, {
"duration": 1.0,
"texture": ExtResource("5_7mmyl")
}, {
"duration": 1.0,
"texture": ExtResource("6_lmjoo")
}],
"loop": true,
"name": &"idle",
"speed": 8.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("7_lqfk1")
}, {
"duration": 1.0,
"texture": ExtResource("8_hwknc")
}, {
"duration": 1.0,
"texture": ExtResource("9_mlior")
}, {
"duration": 1.0,
"texture": ExtResource("10_o541o")
}, {
"duration": 1.0,
"texture": ExtResource("11_oi1tx")
}, {
"duration": 1.0,
"texture": ExtResource("12_6rjce")
}],
"loop": true,
"name": &"run",
"speed": 8.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ea284"]
size = Vector2(13, 20)
[node name="Player" type="Area2D" groups=["player"]]
script = ExtResource("1_e32xx")
metadata/_edit_group_ = true
[node name="SpawnCheck" type="Area2D" parent="." groups=["no_spawn", "player_area"]]
[node name="CollisionShape2D" type="CollisionShape2D" parent="SpawnCheck"]
top_level = true
position = Vector2(0, -1.5)
shape = SubResource("RectangleShape2D_fs8yi")
debug_color = Color(0.779536, 0.288729, 0.821584, 0.42)
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_xvahn")
animation = &"idle"
autoplay = "idle"
frame_progress = 0.718394
offset = Vector2(0, -5)
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-0.5, 0)
shape = SubResource("RectangleShape2D_ea284")
[connection signal="area_entered" from="." to="." method="_on_area_entered"]