Player crash when hit comet

This commit is contained in:
2024-05-12 01:03:18 -04:00
parent 41dc281b66
commit c7ce3be782
6 changed files with 98 additions and 1 deletions

View File

@ -42,5 +42,9 @@ func fire_gun(pos : Vector2, rot : float) -> void:
can_shoot = false
$ShotCooldown.start()
func crash():
$AnimationPlayer.play("crash")
func _on_shot_cooldown_timeout() -> void:
can_shoot = true