Made refinement to CRT enemy movement logic.
This commit is contained in:
parent
004e1063b8
commit
448009b6e4
5 changed files with 37 additions and 37 deletions
|
|
@ -25,21 +25,16 @@ func _on_area_entered(area: Area2D) -> void:
|
|||
match enemy.enemy_type:
|
||||
"crt":
|
||||
if area.is_in_group("enemies"):
|
||||
if enemy.vulnerable == true:
|
||||
area.hit_detection()
|
||||
queue_free()
|
||||
print("CRT hit!")
|
||||
area.hit_detection()
|
||||
queue_free()
|
||||
|
||||
if enemy.vulnerable == false:
|
||||
print("blocked!")
|
||||
enemy.block()
|
||||
#await bullet_fx()
|
||||
queue_free()
|
||||
|
||||
"shards":
|
||||
if area.is_in_group("shards"):
|
||||
print("Shards hit!")
|
||||
area.hit_detection()
|
||||
|
||||
|
||||
|
||||
|
||||
"mirror":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue