Files
TheGame/scenes/Game.tscn
Björn Blomberg 61b03c5801 Add initial project files and implement core game features
- Created README.md with project description and setup instructions
- Added project configuration files (TheGame.csproj, TheGame.sln, project.godot)
- Implemented main game scenes (MainMenu.tscn, Game.tscn, LoadGameMenu.tscn)
- Developed game logic in C# scripts (Game.cs, MainMenu.cs, LoadGameMenu.cs, PauseMenu.cs, SaveManager.cs)
- Introduced save/load functionality and timer display
- Included icon.svg for game branding
2025-10-16 10:50:04 +02:00

120 lines
3.3 KiB
Plaintext

[gd_scene load_steps=3 format=3 uid="uid://bqkwdpfmu7tge"]
[ext_resource type="Script" path="res://scripts/Game.cs" id="1_xncbp"]
[ext_resource type="Script" path="res://scripts/PauseMenu.cs" id="2_a5qiy"]
[node name="Game" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource("1_xncbp")
[node name="Background" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
color = Color(0.2, 0.3, 0.4, 1)
[node name="UI" type="Control" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
[node name="PauseButton" type="Button" parent="UI"]
layout_mode = 0
anchor_right = 0.1
anchor_bottom = 0.08
offset_left = 10.0
offset_top = 10.0
offset_right = -10.0
offset_bottom = -10.0
text = "☰"
[node name="TimerLabel" type="Label" parent="UI"]
layout_mode = 0
anchor_left = 0.85
anchor_right = 1.0
anchor_bottom = 0.08
offset_left = 10.0
offset_top = 10.0
offset_right = -10.0
offset_bottom = -10.0
text = "00:00:00"
horizontal_alignment = 1
vertical_alignment = 1
[node name="GameContent" type="Label" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -100.0
offset_top = -20.0
offset_right = 100.0
offset_bottom = 20.0
text = "GAME CONTENT HERE
Press ESC or click pause button to pause"
horizontal_alignment = 1
vertical_alignment = 1
[node name="PauseMenu" type="Control" parent="."]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource("2_a5qiy")
[node name="Background" type="ColorRect" parent="PauseMenu"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
color = Color(0, 0, 0, 0.8)
[node name="MenuContainer" type="VBoxContainer" parent="PauseMenu"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -100.0
offset_top = -120.0
offset_right = 100.0
offset_bottom = 120.0
[node name="TitleLabel" type="Label" parent="PauseMenu/MenuContainer"]
layout_mode = 2
text = "PAUSED"
horizontal_alignment = 1
[node name="HSeparator" type="HSeparator" parent="PauseMenu/MenuContainer"]
layout_mode = 2
[node name="ResumeButton" type="Button" parent="PauseMenu/MenuContainer"]
layout_mode = 2
text = "Resume"
[node name="SaveButton" type="Button" parent="PauseMenu/MenuContainer"]
layout_mode = 2
text = "Save Game"
[node name="MainMenuButton" type="Button" parent="PauseMenu/MenuContainer"]
layout_mode = 2
text = "Exit to Main Menu"
[node name="DesktopButton" type="Button" parent="PauseMenu/MenuContainer"]
layout_mode = 2
text = "Exit to Desktop"
[connection signal="pressed" from="UI/PauseButton" to="." method="_on_pause_button_pressed"]
[connection signal="pressed" from="PauseMenu/MenuContainer/ResumeButton" to="PauseMenu" method="_on_resume_button_pressed"]
[connection signal="pressed" from="PauseMenu/MenuContainer/SaveButton" to="PauseMenu" method="_on_save_button_pressed"]
[connection signal="pressed" from="PauseMenu/MenuContainer/MainMenuButton" to="PauseMenu" method="_on_main_menu_button_pressed"]
[connection signal="pressed" from="PauseMenu/MenuContainer/DesktopButton" to="PauseMenu" method="_on_desktop_button_pressed"]