clean up file structure
This commit is contained in:
parent
1318fdd9fc
commit
324e7d437b
28 changed files with 102 additions and 125 deletions
12
player/score_label.gd
Normal file
12
player/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