added money and money counter

This commit is contained in:
derek
2024-07-17 12:22:05 -05:00
parent 119d12b3da
commit a917dd2c88
17 changed files with 217 additions and 31 deletions

View File

@@ -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)) + "%"