Added fps counter
for some reason high score just wont save and the ultra berry doesnt give u score but I am NOT fucking dealing with this rn cuz I'm already in a horrible mood.
This commit is contained in:
1 parent
cbefe77af7
commit
b67f9ca2d4
3 files changed
+45
-15
No files matched your search
@@ -0,0 +1,18 @@
|
||||
using Godot;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
public partial class Fps : Label {
|
||||
public override void _Ready() {
|
||||
List<string> settings = Utils.LoadSettings();
|
||||
bool showFPS = settings.ElementAtOrDefault(2) == "1";
|
||||
|
||||
if (!showFPS) {
|
||||
Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
public override void _Process(double delta) {
|
||||
Text = "FPS: " + Engine.GetFramesPerSecond();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
uid://c6eb8owotqy45
|
||||
Reference in new issue
Block a user