-
Notifications
You must be signed in to change notification settings - Fork 1
/
anthill.tscn
43 lines (34 loc) · 1.36 KB
/
anthill.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
[gd_scene load_steps=4 format=3 uid="uid://4n72njshbbvc"]
[ext_resource type="Texture2D" uid="uid://bjojfl6octk2h" path="res://resources/sprites/anthill.png" id="1_6cc8v"]
[ext_resource type="Script" path="res://anthill.gd" id="1_tmo8a"]
[sub_resource type="CircleShape2D" id="CircleShape2D_p4jp4"]
radius = 130.062
[node name="Anthill" type="Area2D"]
script = ExtResource("1_tmo8a")
[node name="Sprite2D" type="Sprite2D" parent="."]
scale = Vector2(0.5, 0.5)
texture = ExtResource("1_6cc8v")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_p4jp4")
[node name="AnthillSizeLabel" type="RichTextLabel" parent="."]
offset_left = -159.0
offset_top = 101.0
offset_right = 156.0
offset_bottom = 172.0
theme_override_font_sizes/normal_font_size = 40
bbcode_enabled = true
text = "[center]Anthill size: 0[/center]"
[node name="AntSpawnTimer" type="Timer" parent="."]
wait_time = 0.2
[node name="AntsCountLabel" type="RichTextLabel" parent="."]
visible = false
offset_left = -112.0
offset_top = 169.0
offset_right = 111.0
offset_bottom = 224.0
theme_override_font_sizes/normal_font_size = 40
bbcode_enabled = true
text = "[center]0[/center]"
scroll_active = false
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="timeout" from="AntSpawnTimer" to="." method="_on_ant_spawn_timer_timeout"]