-
Notifications
You must be signed in to change notification settings - Fork 0
/
player.tscn
89 lines (82 loc) · 2.94 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
[gd_scene load_steps=16 format=3 uid="uid://dv1kbrsm8ktxv"]
[ext_resource type="Texture2D" uid="uid://ilcms6ypbamt" path="res://player/hurt/player-hurt-1.png" id="1_3bms1"]
[ext_resource type="Script" path="res://player.gd" id="1_5hk0b"]
[ext_resource type="Texture2D" uid="uid://cu1y8oawdriyl" path="res://player/hurt/player-hurt-2.png" id="2_tb0s7"]
[ext_resource type="Texture2D" uid="uid://b2vh1ghqq4afj" path="res://player/idle/player-idle-1.png" id="3_isdhn"]
[ext_resource type="Texture2D" uid="uid://c6urdigc7ktej" path="res://player/idle/player-idle-2.png" id="4_7j5p1"]
[ext_resource type="Texture2D" uid="uid://db3mhwn37nlg2" path="res://player/idle/player-idle-3.png" id="5_385d4"]
[ext_resource type="Texture2D" uid="uid://w3skrk32tdne" path="res://player/idle/player-idle-4.png" id="6_0qu3r"]
[ext_resource type="Texture2D" uid="uid://dbrqx2ja1hpli" path="res://player/run/player-run-1.png" id="7_8lot7"]
[ext_resource type="Texture2D" uid="uid://bx01byd5aghhm" path="res://player/run/player-run-2.png" id="8_2mbm8"]
[ext_resource type="Texture2D" uid="uid://bsu7ggd4x1ran" path="res://player/run/player-run-3.png" id="9_to3br"]
[ext_resource type="Texture2D" uid="uid://b4ollbbta2w8g" path="res://player/run/player-run-4.png" id="10_cmy48"]
[ext_resource type="Texture2D" uid="uid://brbaq08w3e03r" path="res://player/run/player-run-5.png" id="11_t5wl1"]
[ext_resource type="Texture2D" uid="uid://ckg3qx8o4t5g7" path="res://player/run/player-run-6.png" id="12_m4bqe"]
[sub_resource type="SpriteFrames" id="SpriteFrames_rdrop"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_3bms1")
}, {
"duration": 1.0,
"texture": ExtResource("2_tb0s7")
}],
"loop": true,
"name": &"hurt",
"speed": 8.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_isdhn")
}, {
"duration": 1.0,
"texture": ExtResource("4_7j5p1")
}, {
"duration": 1.0,
"texture": ExtResource("5_385d4")
}, {
"duration": 1.0,
"texture": ExtResource("6_0qu3r")
}],
"loop": true,
"name": &"idle",
"speed": 8.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("7_8lot7")
}, {
"duration": 1.0,
"texture": ExtResource("8_2mbm8")
}, {
"duration": 1.0,
"texture": ExtResource("9_to3br")
}, {
"duration": 1.0,
"texture": ExtResource("10_cmy48")
}, {
"duration": 1.0,
"texture": ExtResource("11_t5wl1")
}, {
"duration": 1.0,
"texture": ExtResource("12_m4bqe")
}],
"loop": true,
"name": &"run",
"speed": 8.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_iv3ma"]
size = Vector2(30, 44)
[node name="Player" type="Area2D"]
texture_filter = 1
script = ExtResource("1_5hk0b")
speed = null
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
scale = Vector2(2, 2)
sprite_frames = SubResource("SpriteFrames_rdrop")
animation = &"idle"
autoplay = "idle"
offset = Vector2(2.08165e-12, -5)
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_iv3ma")
[connection signal="area_entered" from="." to="." method="_on_area_entered"]