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:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user