Added testing and save/load mechanic to the game. Game is now entering final phase.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user