blocks now break upon colliding once their health is depleted
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ func _update_text():
|
||||
func take_damage(damage):
|
||||
health -= damage
|
||||
_update_text()
|
||||
if health < 0:
|
||||
if health <= 0:
|
||||
die()
|
||||
|
||||
func die():
|
||||
|
||||
Reference in New Issue
Block a user