Graphics pass

This commit is contained in:
Dan 2024-05-07 15:51:31 +01:00
parent 51af0ea751
commit fb47693a99
42 changed files with 821 additions and 95 deletions

View file

@ -0,0 +1,10 @@
[gd_scene load_steps=2 format=3 uid="uid://d1uawawum16b0"]
[ext_resource type="Texture2D" uid="uid://dosamt1emh6o4" path="res://resources/textures/grass.png" id="1_neh17"]
[node name="Grass" type="Sprite2D"]
texture_repeat = 2
position = Vector2(640, 360)
texture = ExtResource("1_neh17")
region_enabled = true
region_rect = Rect2(0, 0, 1280, 720)

View file

@ -0,0 +1,15 @@
[gd_scene load_steps=4 format=3 uid="uid://ddf2mkkw1trkj"]
[ext_resource type="Script" path="res://scenes/scripts/bee_spawner.gd" id="1_uaq7f"]
[ext_resource type="AudioStream" uid="uid://jdk681m35wt4" path="res://resources/SFX/bee.ogg" id="2_ghw8w"]
[ext_resource type="AudioStream" uid="uid://dpgl5huwc4yl8" path="res://resources/SFX/mixkit-big-bee-hard-flying-sound-42.wav" id="3_w50i8"]
[node name="BeeSpawner" type="Node2D"]
script = ExtResource("1_uaq7f")
[node name="BeeSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource("2_ghw8w")
[node name="BigBeeSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3_w50i8")
volume_db = -10.138

View file

@ -0,0 +1,71 @@
[gd_scene load_steps=4 format=3 uid="uid://ct3c16xm33r2a"]
[ext_resource type="Script" path="res://scenes/scripts/drone_manager.gd" id="1_jkvsa"]
[ext_resource type="Theme" uid="uid://cpkvret5gi66h" path="res://resources/theme/game_theme.tres" id="2_l0re0"]
[ext_resource type="Script" path="res://scenes/scripts/drone_controls.gd" id="3_idi5h"]
[node name="DroneManager" type="Node2D" groups=["dronemanager"]]
z_index = 50
script = ExtResource("1_jkvsa")
[node name="SpawnedDrones" type="Node2D" parent="."]
[node name="Control" type="Control" parent="."]
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="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("2_l0re0")
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="Control/MarginContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 10
alignment = 1
script = ExtResource("3_idi5h")
[node name="SpawnDirector" type="Button" parent="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="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="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="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"
[connection signal="pressed" from="Control/MarginContainer/DroneControls/SpawnDirector" to="." method="_on_spawn_director_pressed"]
[connection signal="pressed" from="Control/MarginContainer/DroneControls/SpawnCollector" to="." method="_on_spawn_collector_pressed"]
[connection signal="pressed" from="Control/MarginContainer/DroneControls/SpawnDistractor" to="." method="_on_spawn_distractor_pressed"]
[connection signal="pressed" from="Control/MarginContainer/DroneControls/SpawnDancer" to="." method="_on_spawn_dancer_pressed"]