prototype
This commit is contained in:
commit
5bac9ddd2a
33 changed files with 956 additions and 0 deletions
12
score_label.gd
Normal file
12
score_label.gd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
extends Label
|
||||
|
||||
var score := 0:
|
||||
set(v):
|
||||
score = v
|
||||
text = "Score: %d" % v
|
||||
|
||||
func _ready() -> void:
|
||||
score = score
|
||||
SignalBus.building_destroyed.connect(func(_building):
|
||||
score += 10
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue