Fix high score

This commit is contained in:
Lncvrt committed 2026-02-24 11:56:02 -07:00
1 parent fb4e4083bf
commit 34380b2370
3 files changed
+2 -9

No files matched your search

+2 -1
View File
@@ -15,10 +15,11 @@ public partial class FirstLoad : Control {
LatestVersionLabel.Text = "Latest Version: " + Globals.LatestVersion; LatestVersionLabel.Text = "Latest Version: " + Globals.LatestVersion;
} else { } else {
//Load settings //Load savefile stuff
List<string> settings = Utils.LoadSettings(); List<string> settings = Utils.LoadSettings();
string fullscreen = settings.ElementAtOrDefault(0) ?? "1"; string fullscreen = settings.ElementAtOrDefault(0) ?? "1";
Utils.ToggleFullscreen(fullscreen == "1", settings); //This will also load VSync Utils.ToggleFullscreen(fullscreen == "1", settings); //This will also load VSync
Globals.HighScore = int.Parse(BazookaManager.Read(BazookaManager.HighScore, "0"));
//Version checking //Version checking
HttpRequest GetLatestVersionNode = GetNode<HttpRequest>("VersionText/LatestVersion/HTTPRequest"); HttpRequest GetLatestVersionNode = GetNode<HttpRequest>("VersionText/LatestVersion/HTTPRequest");
-7
View File
@@ -1,7 +0,0 @@
using Godot;
public partial class LoadSaveFIle : Control {
public override void _Ready() {
Globals.HighScore = int.Parse(BazookaManager.Read(BazookaManager.HighScore, "0"));
}
}
-1
View File
@@ -1 +0,0 @@
uid://crsloi4abxhqh