lose screen UI; needs animation

This commit is contained in:
Michael Campbell 2026-04-14 13:46:24 -04:00
parent 28e8a4b6ac
commit 1d0032b587
10 changed files with 300 additions and 45 deletions

View file

@ -62,6 +62,7 @@ func hit(proj: Node3D, damage: float) -> bool:
health -= damage
if health <= 0:
queue_free()
SignalBus.enemy_destroyed.emit()
else:
if proj is PlayerProjectile:
knockback = proj.velocity * 2. * knockback_mul * proj.knockback_mul

View file

@ -28,4 +28,6 @@ func hit(proj: Node3D, _damage: float) -> bool:
parent.queue_free()
SignalBus.perfect_shot_hit.emit()
return weak_point_hit