Allow configuring the number of days
This commit is contained in:
parent
9e9bec12ca
commit
9df0fe6c86
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user