Allow configuring the number of days

main
Olivier 'reivilibre' 2023-01-09 00:11:07 +00:00
parent 9e9bec12ca
commit 9df0fe6c86
1 changed files with 4 additions and 0 deletions

View File

@ -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