Make the postie time configurable on the level

main
Olivier 'reivilibre' 2023-01-09 00:03:31 +00:00
parent 3e1989dc3b
commit 9e9bec12ca
3 changed files with 12 additions and 2 deletions

View File

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

View File

@ -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 (Stored with Git LFS)

Binary file not shown.