Tutorial finished
This commit is contained in:
7
ScoreLabel.gd
Normal file
7
ScoreLabel.gd
Normal file
@@ -0,0 +1,7 @@
|
||||
extends Label
|
||||
|
||||
var score = 0
|
||||
|
||||
func _on_mob_squashed():
|
||||
score += 1
|
||||
text = "Score: %s" % score
|
||||
Reference in New Issue
Block a user