pollen-not-included/scenes/test_level.tscn
2024-05-06 14:37:38 +01:00

152 lines
6.2 KiB
Text

[gd_scene load_steps=15 format=3 uid="uid://mk5n0hrwk4yi"]
[ext_resource type="Script" path="res://scenes/scripts/test_level.gd" id="1_lgt1m"]
[ext_resource type="PackedScene" uid="uid://dyu4mucawjlu6" path="res://entities/Beehive.tscn" id="2_5ueyo"]
[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/pesticide.gd" id="3_gg2a6"]
[ext_resource type="Script" path="res://scenes/scripts/drone_controls.gd" id="3_rqkyv"]
[ext_resource type="PackedScene" uid="uid://cfhoi2rqxa3up" path="res://entities/Dog.tscn" id="4_xlyy4"]
[ext_resource type="Theme" uid="uid://cpkvret5gi66h" path="res://resources/theme/game_theme.tres" id="6_1kbwe"]
[ext_resource type="PackedScene" uid="uid://b7eeptlk47ymd" path="res://ui/UiComponent.tscn" id="6_xuemm"]
[ext_resource type="PackedScene" uid="uid://cwutwy11pityw" path="res://ui/LevelCompleteComponent.tscn" id="8_4k5cm"]
[ext_resource type="Script" path="res://ui/scripts/level_complete_component.gd" id="9_qrlto"]
[ext_resource type="AudioStream" uid="uid://bgcbd6xf0lyrr" path="res://resources/music/bee_background.ogg" id="12_5cn5j"]
[sub_resource type="CircleShape2D" id="CircleShape2D_usqp5"]
radius = 142.316
[sub_resource type="CircleShape2D" id="CircleShape2D_ewfly"]
radius = 252.15
[node name="TestLevel" type="Node2D"]
script = ExtResource("1_lgt1m")
[node name="Background" type="Polygon2D" parent="."]
position = Vector2(52, -26)
color = Color(0.329412, 0.494118, 0.392157, 1)
polygon = PackedVector2Array(-141, -86, 1456, -97, 1337, 753, -193, 771)
[node name="Beehive" parent="." groups=["beehive"] instance=ExtResource("2_5ueyo")]
unique_name_in_owner = true
position = Vector2(163, 489)
[node name="Flower" type="Polygon2D" parent="."]
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(561, 76)
color = Color(0.682353, 0.137255, 0.203922, 1)
polygon = PackedVector2Array(-201, -145, 111, -237, 250, -30, 185, 172, -80, 253, -259, 82)
script = ExtResource("3_gg2a6")
[node name="DeathBox" type="Area2D" parent="Pesticide"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Pesticide/DeathBox"]
shape = SubResource("CircleShape2D_ewfly")
[node name="Dog" parent="." instance=ExtResource("4_xlyy4")]
position = Vector2(705, 491)
[node name="BeeSpawner" type="Node2D" parent="."]
script = ExtResource("2_qqqq4")
[node name="UiComponent" parent="." instance=ExtResource("6_xuemm")]
offset_right = 1280.0
offset_bottom = 720.0
[node name="DroneManager" type="Node2D" parent="." groups=["dronemanager"]]
unique_name_in_owner = true
z_index = 50
script = ExtResource("2_474nc")
[node name="SpawnedDrones" type="Node2D" parent="DroneManager"]
[node name="Control" type="Control" parent="DroneManager"]
top_level = true
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
metadata/_edit_use_anchors_ = true
[node name="MarginContainer" type="MarginContainer" parent="DroneManager/Control"]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -155.5
offset_top = -31.0
offset_right = 155.5
grow_horizontal = 2
grow_vertical = 0
theme = ExtResource("6_1kbwe")
theme_override_constants/margin_left = 10
theme_override_constants/margin_top = 10
theme_override_constants/margin_right = 10
theme_override_constants/margin_bottom = 10
[node name="DroneControls" type="HBoxContainer" parent="DroneManager/Control/MarginContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 10
alignment = 1
script = ExtResource("3_rqkyv")
[node name="SpawnDirector" type="Button" parent="DroneManager/Control/MarginContainer/DroneControls"]
layout_mode = 2
tooltip_text = "Place a director drone, these are the main drones that define the path bees should follow. The order bees should visit these drones can be defined by clicking on them."
text = "Director"
[node name="SpawnCollector" type="Button" parent="DroneManager/Control/MarginContainer/DroneControls"]
layout_mode = 2
tooltip_text = "Place a drone that encourages bees to collect pollen near this area."
text = "Collector"
[node name="SpawnDistractor" type="Button" parent="DroneManager/Control/MarginContainer/DroneControls"]
layout_mode = 2
tooltip_text = "Place a distracting drone that will (hopefully) divert threats attention so they ignore the bees."
text = "Distractor"
[node name="SpawnDancer" type="Button" parent="DroneManager/Control/MarginContainer/DroneControls"]
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="LevelCompleteComponent" parent="." instance=ExtResource("8_4k5cm")]
unique_name_in_owner = true
visible = false
offset_right = 1280.0
offset_bottom = 720.0
script = ExtResource("9_qrlto")
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("12_5cn5j")
volume_db = -18.0
autoplay = true
[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"]
[connection signal="pressed" from="DroneManager/Control/MarginContainer/DroneControls/SpawnDancer" to="DroneManager" method="_on_spawn_dancer_pressed"]