Make the postie time configurable on the level
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
extends Node2D
|
||||
|
||||
var coin = 0
|
||||
export var postie_times = [0.5]
|
||||
|
||||
func add_coin(amount: int):
|
||||
coin += amount
|
||||
$HudInner/Panel/LabelCoin.text = str(coin)
|
||||
|
||||
|
||||
func _ready():
|
||||
var sch = $HudInner/Panel/Scheduler
|
||||
sch.postie_times = postie_times
|
||||
|
||||
@@ -8,6 +8,10 @@ func _ready():
|
||||
# TODO set up calendar
|
||||
|
||||
# set up clock
|
||||
call_deferred("_real_ready")
|
||||
|
||||
|
||||
func _real_ready():
|
||||
_set_up_postie_clock()
|
||||
|
||||
_start_schedule()
|
||||
|
||||
BIN
ui/clock_postie_region.kra
LFS
BIN
ui/clock_postie_region.kra
LFS
Binary file not shown.
Reference in New Issue
Block a user