forked from unfa/liblast
Added missing Performance script update
This commit is contained in:
parent
8f8f439508
commit
de8747e1ae
1 changed files with 8 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue