Make the postie time configurable on the level
This commit is contained in:
parent
3e1989dc3b
commit
9e9bec12ca
@ -1,7 +1,13 @@
|
|||||||
extends Node2D
|
extends Node2D
|
||||||
|
|
||||||
var coin = 0
|
var coin = 0
|
||||||
|
export var postie_times = [0.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)
|
||||||
|
|
||||||
|
|
||||||
|
func _ready():
|
||||||
|
var sch = $HudInner/Panel/Scheduler
|
||||||
|
sch.postie_times = postie_times
|
||||||
|
@ -8,6 +8,10 @@ func _ready():
|
|||||||
# TODO set up calendar
|
# TODO set up calendar
|
||||||
|
|
||||||
# set up clock
|
# set up clock
|
||||||
|
call_deferred("_real_ready")
|
||||||
|
|
||||||
|
|
||||||
|
func _real_ready():
|
||||||
_set_up_postie_clock()
|
_set_up_postie_clock()
|
||||||
|
|
||||||
_start_schedule()
|
_start_schedule()
|
||||||
|
BIN
ui/clock_postie_region.kra
(Stored with Git LFS)
BIN
ui/clock_postie_region.kra
(Stored with Git LFS)
Binary file not shown.
Loading…
Reference in New Issue
Block a user