Added final features for this release. Now only polishing (if needed) remains.

Features: Sacrifice-Node, Maintain-Node, Options for screen type, lightcolor and soundvolume, tied in sound effects, game pause when menu is open, visibly open up gate when opening it.
This commit is contained in:
2026-05-10 14:09:14 +02:00
parent 228e81ab4e
commit 8170b700b2
28 changed files with 797 additions and 14 deletions
+22
View File
@@ -3,7 +3,10 @@
[ext_resource type="Script" uid="uid://br2udyi6t8yvf" path="res://Scripts/World/World.cs" id="1_7lihs"]
[ext_resource type="AudioStream" uid="uid://dcb746ldlm6ta" path="res://Assets/Sound/Background.mp3" id="1_rajel"]
[ext_resource type="Script" uid="uid://dqrdb3bvws6b6" path="res://Scripts/Core/SteamworksHandler.cs" id="2_b2bpf"]
[ext_resource type="AudioStream" uid="uid://d001edcgov542" path="res://Assets/Sound/button.wav" id="2_button"]
[ext_resource type="AudioStream" uid="uid://bo0jlfldvl3fc" path="res://Assets/Sound/mining.wav" id="2_mining"]
[ext_resource type="Script" uid="uid://c7khr6oist3ku" path="res://Scripts/UI/Common/Camera3d.cs" id="3_7lihs"]
[ext_resource type="Script" uid="uid://gvy12mefkwax" path="res://Scripts/Core/SoundManager.cs" id="3_sound"]
[ext_resource type="Script" uid="uid://bm7knir4552j5" path="res://Scripts/UI/Common/UIHandler.cs" id="4_fgofq"]
[ext_resource type="Script" uid="uid://bsd6n6b06a4pe" path="res://Scripts/UI/DSL/CodingWindow.cs" id="6_7lihs"]
[ext_resource type="Script" uid="uid://k6vlo7ulvtep" path="res://Scripts/UI/Robots/RobotList.cs" id="7_2irst"]
@@ -59,6 +62,19 @@ volume_db = -25.0
autoplay = true
parameters/looping = true
[node name="ButtonSound" type="AudioStreamPlayer" parent="." unique_id=696063778]
stream = ExtResource("2_button")
volume_db = -8.0
[node name="MiningSound" type="AudioStreamPlayer" parent="." unique_id=1851503354]
stream = ExtResource("2_mining")
volume_db = -12.0
[node name="SoundManager" type="Node" parent="." unique_id=1220134706 node_paths=PackedStringArray("buttonSound", "miningSound")]
script = ExtResource("3_sound")
buttonSound = NodePath("../ButtonSound")
miningSound = NodePath("../MiningSound")
[node name="World" type="Node3D" parent="." unique_id=770208789]
script = ExtResource("1_7lihs")
@@ -329,6 +345,11 @@ layout_mode = 2
size_flags_horizontal = 3
text = "Save"
[node name="Delete" type="Button" parent="CanvasLayer/UIHandler/MainUI/Content/CodingWindow/VBoxContainer/Scripting/EditorWindow/Saving" unique_id=1891250978]
layout_mode = 2
size_flags_horizontal = 3
text = "Delete"
[node name="Load" type="OptionButton" parent="CanvasLayer/UIHandler/MainUI/Content/CodingWindow/VBoxContainer/Scripting/EditorWindow" unique_id=970393437]
layout_mode = 2
size_flags_horizontal = 3
@@ -679,6 +700,7 @@ text = "Next"
[connection signal="button_up" from="CanvasLayer/UIHandler/MainUI/Content/CodingWindow/VBoxContainer/Scripting/EditorWindow/Buttons/Clear" to="CanvasLayer/UIHandler/MainUI/Content/CodingWindow" method="ClearWindow"]
[connection signal="button_up" from="CanvasLayer/UIHandler/MainUI/Content/CodingWindow/VBoxContainer/Scripting/EditorWindow/Buttons/Compile" to="CanvasLayer/UIHandler/MainUI/Content/CodingWindow" method="CompileProgram"]
[connection signal="pressed" from="CanvasLayer/UIHandler/MainUI/Content/CodingWindow/VBoxContainer/Scripting/EditorWindow/Saving/Save" to="CanvasLayer/UIHandler/MainUI/Content/CodingWindow" method="SaveProgram"]
[connection signal="pressed" from="CanvasLayer/UIHandler/MainUI/Content/CodingWindow/VBoxContainer/Scripting/EditorWindow/Saving/Delete" to="CanvasLayer/UIHandler/MainUI/Content/CodingWindow" method="DeleteProgram"]
[connection signal="item_selected" from="CanvasLayer/UIHandler/MainUI/Content/CodingWindow/VBoxContainer/Scripting/EditorWindow/Load" to="CanvasLayer/UIHandler/MainUI/Content/CodingWindow" method="LoadProgram"]
[connection signal="pressed" from="CanvasLayer/UIHandler/MainUI/Content/CodingWindow/VBoxContainer/Close" to="CanvasLayer/UIHandler/MainUI/Content/CodingWindow" method="CloseWindow"]
[connection signal="item_selected" from="CanvasLayer/UIHandler/MainUI/Content/RobotList/VBoxContainer/Spawning/OptionButton" to="CanvasLayer/UIHandler/MainUI/Content/RobotList" method="OnRobotSelect"]
+8 -1
View File
@@ -6,6 +6,7 @@
[ext_resource type="Texture2D" uid="uid://dt84awx33mulb" path="res://Assets/Images/ResearchSymbol.png" id="3_df05h"]
[ext_resource type="Texture2D" uid="uid://dm0w2gtcsa5l4" path="res://Assets/Images/Items/Batteryv1Symbol.png" id="4_8um5k"]
[ext_resource type="Texture2D" uid="uid://qqprre8xl8gv" path="res://Assets/Images/Items/Dynamov2Symbol.png" id="5_xim88"]
[ext_resource type="PackedScene" uid="uid://cpq7ppe8bw2bq" path="res://Scenes/Options.tscn" id="6_options"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bnhvo"]
bg_color = Color(0.24115604, 0.24115607, 0.24115595, 1)
@@ -27,7 +28,7 @@ corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
[node name="MainMenu" type="Control" unique_id=622011874]
[node name="MainMenu" type="Control" unique_id=622011874 node_paths=PackedStringArray("options")]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
@@ -35,6 +36,7 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_tt5f1")
options = NodePath("Options")
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="." unique_id=1984828000]
stream = ExtResource("2_8um5k")
@@ -152,6 +154,11 @@ theme_override_styles/normal = SubResource("StyleBoxFlat_bnhvo")
theme_override_styles/hover = SubResource("StyleBoxFlat_tt5f1")
text = "Exit Game"
[node name="Options" parent="." instance=ExtResource("6_options")]
visible = false
layout_mode = 1
[connection signal="button_up" from="CenterContainer/VBoxContainer/btnPlay" to="." method="OnPlayPressed"]
[connection signal="button_up" from="CenterContainer/VBoxContainer/btnLoad" to="." method="OnLoadPressed"]
[connection signal="button_up" from="CenterContainer/VBoxContainer/btnOptions" to="." method="OnOptionsPressed"]
[connection signal="button_up" from="CenterContainer/VBoxContainer/btnExit" to="." method="OnQuitPressed"]
+44 -4
View File
@@ -1,16 +1,28 @@
[gd_scene format=3 uid="uid://cpq7ppe8bw2bq"]
[node name="Options" type="PanelContainer" unique_id=230632848]
[ext_resource type="Script" path="res://Scripts/UI/Menus/OptionsMenu.cs" id="1_options"]
[node name="Options" type="PanelContainer" unique_id=230632848 node_paths=PackedStringArray("screenMode", "soundVolume", "lightColor")]
custom_minimum_size = Vector2(420, 260)
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -210.0
offset_top = -130.0
offset_right = 210.0
offset_bottom = 130.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_options")
screenMode = NodePath("VBoxContainer/GridContainer/ScreenMode")
soundVolume = NodePath("VBoxContainer/GridContainer/SoundVolume")
lightColor = NodePath("VBoxContainer/GridContainer/LightColor")
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=1149639381]
layout_mode = 2
theme_override_constants/separation = 10
[node name="Title" type="RichTextLabel" parent="VBoxContainer" unique_id=1694731141]
layout_mode = 2
@@ -24,16 +36,44 @@ horizontal_alignment = 1
layout_mode = 2
columns = 2
[node name="RichTextLabel" type="RichTextLabel" parent="VBoxContainer/GridContainer" unique_id=189106367]
[node name="ScreenModeLabel" type="RichTextLabel" parent="VBoxContainer/GridContainer"]
layout_mode = 2
text = "Light color: "
text = "Screen"
fit_content = true
autowrap_mode = 0
[node name="ColorPickerButton" type="ColorPickerButton" parent="VBoxContainer/GridContainer" unique_id=1830638845]
[node name="ScreenMode" type="OptionButton" parent="VBoxContainer/GridContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="SoundVolumeLabel" type="RichTextLabel" parent="VBoxContainer/GridContainer"]
layout_mode = 2
text = "Sound"
fit_content = true
autowrap_mode = 0
[node name="SoundVolume" type="HSlider" parent="VBoxContainer/GridContainer"]
layout_mode = 2
size_flags_horizontal = 3
max_value = 100.0
step = 1.0
value = 80.0
[node name="LightColorLabel" type="RichTextLabel" parent="VBoxContainer/GridContainer"]
layout_mode = 2
text = "Light color"
fit_content = true
autowrap_mode = 0
[node name="LightColor" type="ColorPickerButton" parent="VBoxContainer/GridContainer" unique_id=1830638845]
layout_mode = 2
size_flags_horizontal = 3
[node name="Button" type="Button" parent="VBoxContainer" unique_id=1183264327]
layout_mode = 2
text = "Close"
[connection signal="item_selected" from="VBoxContainer/GridContainer/ScreenMode" to="." method="OnScreenModeSelected"]
[connection signal="value_changed" from="VBoxContainer/GridContainer/SoundVolume" to="." method="OnSoundVolumeChanged"]
[connection signal="color_changed" from="VBoxContainer/GridContainer/LightColor" to="." method="OnLightColorChanged"]
[connection signal="pressed" from="VBoxContainer/Button" to="." method="CloseOptions"]