Updated mirror wave; tweaked CRT movement

This commit is contained in:
Henry 2026-02-27 01:05:55 +00:00
parent 7e75a96795
commit 78472ee95c
28 changed files with 938 additions and 32 deletions

View file

@ -22,22 +22,38 @@ func _on_area_entered(area: Area2D) -> void:
var enemies = get_tree().get_nodes_in_group("enemies")
for enemy in enemies:
match enemy.enemy_type:
"crt":
if area.is_in_group("enemies"):
if enemy.vulnerable == true:
area.explode()
queue_free()
if enemy.vulnerable == false:
print("blocked!")
enemy.block()
#await bullet_fx()
queue_free()
match enemy.enemy_type:
"crt":
if area.is_in_group("enemies"):
if enemy.vulnerable == true:
area.hit_detection()
queue_free()
if enemy.vulnerable == false:
print("blocked!")
enemy.block()
#await bullet_fx()
queue_free()
_:
if area.is_in_group("enemies"):
area.explode()
queue_free()
"shards":
if area.is_in_group("shards"):
print("Shards hit!")
area.hit_detection()
"mirror":
if area.is_in_group("enemies"):
print("Mirror hit!")
area.hit_detection()
queue_free()
"chicken":
if area.is_in_group("enemies"):
print("Chicken hit!")
area.hit_detection()
queue_free()
#func bullet_fx():
#shader_active = true