hud
This commit is contained in:
parent
a6421235f8
commit
d729c0a7a3
14 changed files with 187 additions and 2 deletions
|
|
@ -21,3 +21,14 @@ func _physics_process(delta: float) -> void:
|
|||
func _on_hurtbox_area_entered(area: Area2D) -> void:
|
||||
%DeathSound.play()
|
||||
position = startpos
|
||||
CurrentGame.change_lives(-1)
|
||||
if CurrentGame.lives < 0:
|
||||
gover()
|
||||
|
||||
func gover():
|
||||
print("yeeeowtch!!!")
|
||||
|
||||
func _on_graze_box_area_entered(area: Area2D) -> void:
|
||||
%GrazeParticles.emitting = true
|
||||
CurrentGame.change_graze(1)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue