-
Notifications
You must be signed in to change notification settings - Fork 1
/
target.tscn
37 lines (30 loc) · 1.1 KB
/
target.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
[gd_scene load_steps=4 format=2]
[ext_resource path="res://data/target.png" type="Texture" id=1]
[ext_resource path="res://target.gd" type="Script" id=2]
[sub_resource type="CircleShape2D" id=1]
radius = 36.0555
[node name="target" type="Area2D"]
script = ExtResource( 2 )
[node name="target" type="Sprite" parent="."]
position = Vector2( -0.499992, -0.999992 )
scale = Vector2( 0.203409, 0.20303 )
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="." groups=[
"enemy",
"target",
]]
shape = SubResource( 1 )
[node name="RichTextLabel" type="RichTextLabel" parent="."]
margin_left = -20.4274
margin_top = -46.0
margin_right = 35.5726
margin_bottom = -25.0
custom_colors/default_color = Color( 1, 0, 0, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Timer" type="Timer" parent="."]
one_shot = true
[connection signal="area_shape_entered" from="." to="." method="_on_target_area_shape_entered"]
[connection signal="body_shape_entered" from="." to="." method="_on_target_body_shape_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]