From 9df0fe6c867ea82791c6fcf6955b26f3d7a4de68 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Mon, 9 Jan 2023 00:11:07 +0000 Subject: [PATCH] Allow configuring the number of days --- ui/Hud.gd | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/Hud.gd b/ui/Hud.gd index 2553852..0c22142 100644 --- a/ui/Hud.gd +++ b/ui/Hud.gd @@ -3,6 +3,9 @@ extends Node2D var coin = 0 export var postie_times = [0.5] +# Anything above 10 can't be rendered (for now?) +export var num_days = 5 + func add_coin(amount: int): coin += amount $HudInner/Panel/LabelCoin.text = str(coin) @@ -11,3 +14,4 @@ func add_coin(amount: int): func _ready(): var sch = $HudInner/Panel/Scheduler sch.postie_times = postie_times + sch.days_on_this_level = num_days