add final boss to level select, make bullets hurt famira

This commit is contained in:
Haze Weathers 2024-02-26 15:11:27 -05:00
parent c28e105e78
commit f0a6cb49f3
8 changed files with 160 additions and 8 deletions

View file

@ -108,3 +108,9 @@ func _on_Shooting_state_physics_processing(delta) -> void:
var weight := inverse_lerp(shoot_range_cast.cast_to.x, 0.0, distance)
sg2083.hurt(breath_dps * weight * delta, true)
sg2083.knock_back(breath_knockback * weight * delta, true)
func _on_Hitbox_area_entered(area: Area2D) -> void:
if area.is_in_group("hurt_famira"):
hurt(area.damage)
area.queue_free()