knockback; base enemy scene; police van

This commit is contained in:
Michael Campbell 2026-03-18 16:14:34 -04:00
parent 370eb54163
commit d0bfe8d1be
13 changed files with 218 additions and 111 deletions

View file

@ -21,7 +21,7 @@ func _process(delta: float) -> void:
shake_duration = move_toward(shake_duration, 0., delta)
func hit(_proj: PlayerProjectile, damage: float) -> bool:
func hit(_proj: Node3D, damage: float) -> bool:
health -= damage
if health <= 0.:
SignalBus.building_destroyed.emit(self)