-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCapturableBase.tscn
58 lines (47 loc) · 1.76 KB
/
CapturableBase.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
[gd_scene load_steps=7 format=2]
[ext_resource path="res://UI/roboto_mono_36.tres" type="DynamicFont" id=1]
[ext_resource path="res://Team.tscn" type="PackedScene" id=2]
[ext_resource path="res://CapturableBase.gd" type="Script" id=3]
[ext_resource path="res://assets/topdown-shooter/Tilesheet/tilesheet_complete.png" type="Texture" id=4]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 250, 250 )
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 4 )
region = Rect2( 1484, 268, 40, 40 )
[node name="CapturableBase" type="Area2D"]
position = Vector2( 539.46, 267.255 )
script = ExtResource( 3 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
texture = SubResource( 2 )
[node name="Team" parent="." instance=ExtResource( 2 )]
[node name="CaptureTimer" type="Timer" parent="."]
wait_time = 6.0
one_shot = true
[node name="PlayerLabel" type="Label" parent="."]
margin_left = -59.46
margin_top = 20.745
margin_right = -15.46
margin_bottom = 68.745
custom_colors/font_color = Color( 0.454902, 0.670588, 0.466667, 1 )
custom_fonts/font = ExtResource( 1 )
text = "0"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="EnemyLabel" type="Label" parent="."]
margin_left = 12.54
margin_top = 20.745
margin_right = 56.54
margin_bottom = 68.745
custom_colors/font_color = Color( 0.513726, 0.533333, 0.772549, 1 )
custom_fonts/font = ExtResource( 1 )
text = "0"
align = 2
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="body_entered" from="." to="." method="_on_CapturableBase_body_entered"]
[connection signal="body_exited" from="." to="." method="_on_CapturableBase_body_exited"]
[connection signal="timeout" from="CaptureTimer" to="." method="_on_CaptureTimer_timeout"]