small racing game im working on
Diffstat (limited to 'ui/revs.gd')
-rw-r--r--ui/revs.gd7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/revs.gd b/ui/revs.gd
new file mode 100644
index 0000000..deb2188
--- /dev/null
+++ b/ui/revs.gd
@@ -0,0 +1,7 @@
+extends Label
+
+@export var f_string = " %drpm"
+@export var car: Node3D
+
+func _process(_delta: float) -> void:
+ text = f_string % car.calculate_rpm()