Allow configuring the number of days

This commit is contained in:
Olivier 'reivilibre' 2023-01-09 00:11:07 +00:00
parent 9e9bec12ca
commit 9df0fe6c86

View File

@ -3,6 +3,9 @@ extends Node2D
var coin = 0 var coin = 0
export var postie_times = [0.5] 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): func add_coin(amount: int):
coin += amount coin += amount
$HudInner/Panel/LabelCoin.text = str(coin) $HudInner/Panel/LabelCoin.text = str(coin)
@ -11,3 +14,4 @@ func add_coin(amount: int):
func _ready(): func _ready():
var sch = $HudInner/Panel/Scheduler var sch = $HudInner/Panel/Scheduler
sch.postie_times = postie_times sch.postie_times = postie_times
sch.days_on_this_level = num_days