Added random seed and ability to enter a seed. Also added a simple/small tutorial screen and unified the UI with UIStyle.cs

This commit is contained in:
2026-05-09 22:09:15 +02:00
parent 7e70471227
commit fc21c7c8d3
12 changed files with 493 additions and 22 deletions
+7 -1
View File
@@ -2,10 +2,15 @@ using Godot;
public partial class MainMenu : Control
{
public override void _Ready()
{
UIStyle.Apply(this);
}
public void OnPlayPressed()
{
GameData.loadSaveOnStart = false;
GetTree().ChangeSceneToFile("res://Scenes/Game.tscn");
GetTree().ChangeSceneToFile("res://Scenes/WorldSetup.tscn");
}
public void OnLoadPressed()
@@ -13,6 +18,7 @@ public partial class MainMenu : Control
if (!SaveGameManager.SaveExists()) return;
GameData.loadSaveOnStart = true;
GameData.showTutorial = false;
GetTree().ChangeSceneToFile("res://Scenes/Game.tscn");
}