blocks now break upon colliding once their health is depleted

This commit is contained in:
2024-07-23 20:33:27 +02:00
parent 091d957d26
commit eeffba61b6
3 changed files with 40 additions and 6 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ func _update_text():
func take_damage(damage):
health -= damage
_update_text()
if health < 0:
if health <= 0:
die()
func die():