added simple ui

This commit is contained in:
2024-03-23 17:17:44 +01:00
parent 6308195224
commit 015f86cec1
4 changed files with 103 additions and 3 deletions

11
Scenes/FPSLabel.cs Normal file
View File

@@ -0,0 +1,11 @@
using Godot;
public partial class FPSLabel : Label
{
bool ShowFPS = true;
// Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(double delta) {
Text = ShowFPS ? $"FPS: {Engine.GetFramesPerSecond()}" : "";
}
}