spittin fiend
This commit is contained in:
parent
6825cd59c9
commit
dd66cc2a84
6 changed files with 65 additions and 4 deletions
25
objects/enemies/spitting_fiend/spitting_fiend.gd
Normal file
25
objects/enemies/spitting_fiend/spitting_fiend.gd
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue