Added missing Performance script update

This commit is contained in:
unfa 2021-12-06 21:24:21 +01:00
parent 8f8f439508
commit de8747e1ae

View file

@ -5,10 +5,15 @@ extends Label
# var b = "text"
@onready var main = get_tree().root.get_node("Main")
var version: String # game build version
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
OS.execute('bash', ["./version.sh"])
var file = File.new()
file.open("res://version", File.READ)
version = file.get_as_text()
file.close()
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
@ -34,4 +39,4 @@ func _process(delta):
text += "\nFPS: " + str(Engine.get_frames_per_second())
text += "\nLiblast 0.1.1 pre-alpha"
text += "\n" + version + " · https://git.gieszer.link/unfa/liblast"