aboutsummaryrefslogtreecommitdiff
path: root/game/FPS.gd
diff options
context:
space:
mode:
Diffstat (limited to 'game/FPS.gd')
-rw-r--r--game/FPS.gd16
1 files changed, 16 insertions, 0 deletions
diff --git a/game/FPS.gd b/game/FPS.gd
new file mode 100644
index 0000000..8b4c50f
--- /dev/null
+++ b/game/FPS.gd
@@ -0,0 +1,16 @@
+extends Label
+
+
+# Declare member variables here. Examples:
+# var a = 2
+# var b = "text"
+
+
+# Called when the node enters the scene tree for the first time.
+func _ready():
+ pass # Replace with function body.
+
+
+# Called every frame. 'delta' is the elapsed time since the previous frame.
+func _process(_delta: float) -> void:
+ set_text("FPS " + String(Engine.get_frames_per_second()))