lose screen UI; needs animation
This commit is contained in:
parent
28e8a4b6ac
commit
1d0032b587
10 changed files with 300 additions and 45 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -28,4 +28,6 @@ func hit(proj: Node3D, _damage: float) -> bool:
|
|||
|
||||
parent.queue_free()
|
||||
|
||||
SignalBus.perfect_shot_hit.emit()
|
||||
|
||||
return weak_point_hit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue