diff options
Diffstat (limited to 'CoinCount.gd')
| -rw-r--r-- | CoinCount.gd | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/CoinCount.gd b/CoinCount.gd index fadd9ba..e826496 100644 --- a/CoinCount.gd +++ b/CoinCount.gd @@ -1,19 +1,7 @@ extends Label - -# Declare member variables here. Examples: -# var a = 2 -# var b = "text" -var score = 0 - - -# Called when the node enters the scene tree for the first time. -func _ready(): - pass # Replace with function body. +var coins = 0 func _on_coin_hit(): - score += 1 - self.text = str(score) -# Called every frame. 'delta' is the elapsed time since the previous frame. -#func _process(delta): -# pass + coins += 1 + self.text = str(coins) |
