enemy tweaks

This commit is contained in:
derek
2024-07-18 16:59:14 -05:00
parent acdfae4777
commit 0676e28e89
43 changed files with 1208 additions and 56 deletions

View File

@@ -41,6 +41,8 @@ func _process(delta):
if ray.is_colliding() and ray.get_collider().is_in_group("player"):
var player = ray.get_collider()
player.level_control.health -= bullet_damage
player.hurt_audio.play()
queue_free()
print(player.level_control.health)
if ray.is_colliding() and !ray.get_collider().is_in_group("player"):