Implemented additional audio for mirror from Maggie; fixed shader flash
on damage from hitting glass shards.
This commit is contained in:
parent
78472ee95c
commit
004e1063b8
9 changed files with 69 additions and 4 deletions
|
|
@ -116,13 +116,13 @@ func _on_gun_cooldown_timeout() -> void:
|
|||
func _on_area_entered(area):
|
||||
if area.is_in_group("enemies"):
|
||||
shield -= int(max_shield / 2)
|
||||
# damage_taken.emit()
|
||||
_on_damage_taken()
|
||||
area.hit_detection()
|
||||
if area.is_in_group("enemy_bullets") and self.monitoring == true:
|
||||
damage_taken.emit()
|
||||
|
||||
if area.is_in_group("shards"):
|
||||
shield -= int(max_shield / 2)
|
||||
#if area.is_in_group("shards"):
|
||||
# shield -= int(max_shield / 2)
|
||||
|
||||
func _on_damage_taken():
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue