forked from team-sg/hero-mark-2
add final boss to level select, make bullets hurt famira
This commit is contained in:
parent
c28e105e78
commit
f0a6cb49f3
8 changed files with 160 additions and 8 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue