Files
berry-dash-godot-remake/Scripts/Fps.cs
T
Puppet b67f9ca2d4 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.
2026-02-23 23:51:49 -08:00

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();
}
}