Bee State Machine
This commit is contained in:
parent
20bcab01b1
commit
752131c955
16 changed files with 467 additions and 13 deletions
|
|
@ -1,8 +1,13 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://mk5n0hrwk4yi"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://mk5n0hrwk4yi"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/scripts/test_level.gd" id="1_lgt1m"]
|
||||
[ext_resource type="Script" path="res://scenes/scripts/drone_manager.gd" id="2_474nc"]
|
||||
[ext_resource type="Script" path="res://scenes/scripts/bee_spawner.gd" id="2_qqqq4"]
|
||||
[ext_resource type="Script" path="res://scenes/scripts/drone_controls.gd" id="3_rqkyv"]
|
||||
[ext_resource type="PackedScene" uid="uid://deek6uv574xas" path="res://entities/Bee.tscn" id="4_336fp"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_usqp5"]
|
||||
radius = 142.316
|
||||
|
||||
[node name="TestLevel" type="Node2D"]
|
||||
script = ExtResource("1_lgt1m")
|
||||
|
|
@ -18,11 +23,25 @@ color = Color(0.588235, 0.423529, 0.423529, 1)
|
|||
polygon = PackedVector2Array(95, 146, 203, 134, 186, 274, 78, 287)
|
||||
|
||||
[node name="Flower" type="Polygon2D" parent="."]
|
||||
position = Vector2(648, 225)
|
||||
scale = Vector2(0.435897, 0.276596)
|
||||
position = Vector2(278, -97)
|
||||
color = Color(0.301961, 0.607843, 0.901961, 1)
|
||||
polygon = PackedVector2Array(752, 145, 875, 200, 893, 272, 866, 359, 781, 427, 715, 362, 659, 226)
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="Flower" groups=["flowers"]]
|
||||
position = Vector2(777.707, 282)
|
||||
collision_layer = 7
|
||||
collision_mask = 7
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Flower/Area2D"]
|
||||
shape = SubResource("CircleShape2D_usqp5")
|
||||
|
||||
[node name="Label" type="Label" parent="Flower"]
|
||||
offset_left = 721.0
|
||||
offset_top = 243.0
|
||||
offset_right = 852.0
|
||||
offset_bottom = 266.0
|
||||
text = "Flower patch bro"
|
||||
|
||||
[node name="Pesticide" type="Polygon2D" parent="."]
|
||||
position = Vector2(74.7948, -103.963)
|
||||
scale = Vector2(0.851611, 0.815599)
|
||||
|
|
@ -34,7 +53,11 @@ position = Vector2(-354, 53)
|
|||
color = Color(0.803922, 0.407843, 0.239216, 1)
|
||||
polygon = PackedVector2Array(819, 301, 866, 278, 888, 364, 842, 319, 832, 373, 806, 423, 775, 424, 754, 377, 762, 319, 728, 360, 739, 263, 765, 284)
|
||||
|
||||
[node name="DroneManager" type="Node2D" parent="."]
|
||||
[node name="BeeSpawner" type="Node2D" parent="."]
|
||||
script = ExtResource("2_qqqq4")
|
||||
|
||||
[node name="DroneManager" type="Node2D" parent="." groups=["dronemanager"]]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("2_474nc")
|
||||
|
||||
[node name="SpawnedDrones" type="Node2D" parent="DroneManager"]
|
||||
|
|
@ -89,6 +112,9 @@ layout_mode = 2
|
|||
tooltip_text = "Spawn a dancing drone that will encourage bees to leave the hive. Best to put this near to the hive. "
|
||||
text = "Dancer"
|
||||
|
||||
[node name="Bee" parent="." instance=ExtResource("4_336fp")]
|
||||
position = Vector2(704, 196)
|
||||
|
||||
[connection signal="pressed" from="DroneManager/Control/MarginContainer/DroneControls/SpawnDirector" to="DroneManager" method="_on_spawn_director_pressed"]
|
||||
[connection signal="pressed" from="DroneManager/Control/MarginContainer/DroneControls/SpawnCollector" to="DroneManager" method="_on_spawn_collector_pressed"]
|
||||
[connection signal="pressed" from="DroneManager/Control/MarginContainer/DroneControls/SpawnDistractor" to="DroneManager" method="_on_spawn_distractor_pressed"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue