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.
18 lines
436 B
C#
18 lines
436 B
C#
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();
|
|
}
|
|
} |