mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-13 21:51:05 -05:00
18 lines
507 B
GDScript
18 lines
507 B
GDScript
extends Label3D
|
|
|
|
@export var spawner : Node
|
|
|
|
var textEnabled : bool = true
|
|
|
|
# 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):
|
|
if Autoload.highscorefps_lost == true:
|
|
text = "You lost!\nYour final score was: " + str(spawner.honey_count)
|
|
else:
|
|
text = "Score: " + str(spawner.honey_count) + "\nFPS: " + str(Engine.get_frames_per_second())
|