Skip to content

Commit

Permalink
fix: start game deferred, fix Godot SDK version to previous working o…
Browse files Browse the repository at this point in the history
…ne for tests
  • Loading branch information
jolexxa committed Dec 23, 2023
1 parent d001a90 commit f3de12a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"msbuild-sdks": {
"Godot.NET.Sdk": "4.2.0"
"Godot.NET.Sdk": "4.2.0-beta.5"
},
"sdk": {
"rollForward": "major",
Expand Down
4 changes: 4 additions & 0 deletions src/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public override void _Ready() {
#endif

// If we don't need to run tests, we can just switch to the game scene.
CallDeferred("StartApp");
}

private void StartApp() {
GetTree().ChangeSceneToFile("res://src/app/App.tscn");
}

Expand Down

0 comments on commit f3de12a

Please sign in to comment.