This commit is contained in:
2025-09-08 14:49:21 +02:00
parent 1290cd19fb
commit 9ee0d4708b
10 changed files with 54 additions and 33 deletions

View File

@@ -68,4 +68,10 @@ func _on_body_entered(body: Node) -> void:
GameController.emit_signal("point_gain", type)
split()
elif body is Ship and !body.is_inv():
GameController.emit_signal("player_hit")
body.is_currently_hit = true
#GameController.emit_signal("player_hit")
func _on_body_exited(body: Node) -> void:
if body is Ship:
body.is_currently_hit = false