spittin fiend

This commit is contained in:
pennyrigate 2025-11-01 23:26:00 -04:00
parent 6825cd59c9
commit dd66cc2a84
6 changed files with 65 additions and 4 deletions

View file

@ -0,0 +1,25 @@
extends Enemy
@export var multi_shoot_speed = 0.0
func multi_shoot():
shoot_speed.x = multi_shoot_speed
shoot_speed.y = 0.0
shoot(%Right.global_position)
shoot_speed.x = -multi_shoot_speed
shoot_speed.y = 0.0
shoot(%Left.global_position)
shoot_speed.y = multi_shoot_speed
shoot_speed.x = 0.0
shoot(%Down.global_position)
shoot_speed.y = -multi_shoot_speed
shoot_speed.x = 0.0
shoot(%Up.global_position)
func _on_timer_timeout() -> void:
multi_shoot()