summaryrefslogtreecommitdiffhomepage
path: root/Racing-Game/Interface/RichTextLabel.gd
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2020-03-14 17:47:27 -0400
committerrealtradam <[email protected]>2020-03-14 17:47:27 -0400
commitace8100600de99aed17c5de718b582749f126168 (patch)
tree28caece492919039b26167bf61026618dc17688c /Racing-Game/Interface/RichTextLabel.gd
parentf435ce10e93d7798ad4fe43be33cd01a4edd3dfb (diff)
downloadoptimal-direction-ace8100600de99aed17c5de718b582749f126168.tar.gz
optimal-direction-ace8100600de99aed17c5de718b582749f126168.zip
Some file refactoring was completed.
Diffstat (limited to 'Racing-Game/Interface/RichTextLabel.gd')
-rw-r--r--Racing-Game/Interface/RichTextLabel.gd20
1 files changed, 20 insertions, 0 deletions
diff --git a/Racing-Game/Interface/RichTextLabel.gd b/Racing-Game/Interface/RichTextLabel.gd
new file mode 100644
index 0000000..99856bd
--- /dev/null
+++ b/Racing-Game/Interface/RichTextLabel.gd
@@ -0,0 +1,20 @@
+extends RichTextLabel
+
+# 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
+# Called every frame. 'delta' is the elapsed time since the previous frame.
+func _process(delta):
+ set_rotation(0)
+ pass
+
+func displaySpeed(var velocity):
+ print(velocity)
+
+
+func updateSpeed(var velocity):
+ text = str(velocity)