Added testing and save/load mechanic to the game. Game is now entering final phase.

This commit is contained in:
2026-05-09 21:25:36 +02:00
parent e7de2433de
commit 7e70471227
18 changed files with 1073 additions and 46 deletions
+9
View File
@@ -4,6 +4,15 @@ public partial class MainMenu : Control
{
public void OnPlayPressed()
{
GameData.loadSaveOnStart = false;
GetTree().ChangeSceneToFile("res://Scenes/Game.tscn");
}
public void OnLoadPressed()
{
if (!SaveGameManager.SaveExists()) return;
GameData.loadSaveOnStart = true;
GetTree().ChangeSceneToFile("res://Scenes/Game.tscn");
}