gun system + minigun

This commit is contained in:
Michael Campbell 2026-02-19 00:04:31 -05:00
parent 84415d5aca
commit f73f093ae2
13 changed files with 84 additions and 24 deletions

View file

@ -9,10 +9,11 @@ var health: int = 1:
health = v
if v == 0:
queue_free()
var damage := 10.
func _on_collision(node: Node3D):
if node.has_method("hit"):
if node.hit(self):
if node.hit(self, damage):
health -= 1
func _ready() -> void: