summaryrefslogtreecommitdiff
path: root/guide.tscn
blob: c15a9c82daa82639e9fddc540d2d4e2f300aebf3 (plain)
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[gd_scene load_steps=10 format=3 uid="uid://cik38e6miyh17"]

[ext_resource type="Script" uid="uid://bm8spheg1euql" path="res://guide.gd" id="1_4mqed"]
[ext_resource type="Texture2D" uid="uid://bmra2qpibkr2u" path="res://assets/placeholders/6266.png" id="1_kce4j"]

[sub_resource type="CircleShape2D" id="CircleShape2D_kce4j"]
radius = 9.0

[sub_resource type="Animation" id="Animation_4mqed"]
resource_name = "up"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:region_rect")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Rect2(144, 310, 16, 24)]
}

[sub_resource type="Animation" id="Animation_feuw2"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:region_rect")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Rect2(144, 310, 16, 24)]
}

[sub_resource type="Animation" id="Animation_gajip"]
resource_name = "down"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:region_rect")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Rect2(162, 310, 16, 24)]
}

[sub_resource type="Animation" id="Animation_83y8a"]
resource_name = "left"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:region_rect")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Rect2(144, 336, 16, 24)]
}

[sub_resource type="Animation" id="Animation_utvnm"]
resource_name = "right"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:region_rect")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Rect2(162, 336, 16, 24)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_gajip"]
_data = {
&"RESET": SubResource("Animation_feuw2"),
&"down": SubResource("Animation_gajip"),
&"left": SubResource("Animation_83y8a"),
&"right": SubResource("Animation_utvnm"),
&"up": SubResource("Animation_4mqed")
}

[node name="Guide" type="Area2D" groups=["guide"]]
gravity_space_override = 1
gravity = 300.0
script = ExtResource("1_4mqed")

[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_kce4j")
centered = false
region_enabled = true
region_rect = Rect2(144, 310, 16, 24)

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(8, 11)
shape = SubResource("CircleShape2D_kce4j")

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_gajip")
}

[node name="Timer" type="Timer" parent="."]
autostart = true

[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]