added money and money counter
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
extends Label
|
||||
|
||||
@onready var player = $"../../.."
|
||||
@onready var level_control = $"../../../.."
|
||||
|
||||
const ASPECT_RATIO_STD = .5625 #9/16 for standard ratio
|
||||
@export var padding_amount = .05 #multiplied by screen size
|
||||
@@ -17,4 +18,4 @@ func _ready():
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
text = "Stamina: " + str(int((player.remaining_stamina/player.MAX_STAMINA)*100)) + "%"
|
||||
text = "$" + str(int(level_control.money)) + "\nStamina: " + str(int((player.remaining_stamina/player.MAX_STAMINA)*100)) + "%"
|
||||
|
||||
Reference in New Issue
Block a user